1//
2// Copyright (C) 2019 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17package {
18    default_team: "trendy_team_fwk_core_networking",
19    // See: http://go/android-license-faq
20    default_applicable_licenses: ["Android-Apache-2.0"],
21}
22
23// FrameworksNetDeflakeTest depends on FrameworksNetTests so it should be disabled
24// if FrameworksNetTests is disabled.
25enable_frameworks_net_deflake_test = true
26// Placeholder
27// This is a placeholder comment to minimize merge conflicts, as enable_frameworks_net_deflake_test
28// may have different values depending on the branch
29// Placeholder
30
31java_test_host {
32    name: "FrameworksNetDeflakeTest",
33    enabled: enable_frameworks_net_deflake_test,
34    srcs: ["src/**/*.kt"],
35    libs: [
36        "junit",
37        "tradefed",
38    ],
39    static_libs: [
40        "kotlin-test",
41        "net-host-tests-utils",
42    ],
43    data: [":FrameworksNetTests"],
44    test_suites: ["device-tests"],
45    // It will get build error if just set enabled to true. It fails with "windows_common"
46    // depends on some disabled modules that are used by this test and it looks like set
47    // enable_frameworks_net_deflake_test to true also enables "windows" variant. Thus,
48    // disable this on target windows.
49    // TODO: Remove this when b/201754360 is fixed.
50    target: {
51        windows: {
52            enabled: false,
53        },
54    },
55}
56