blob: 8205f1cf2f4f97974e96e5b2b0bb7be6d2ef5f99 [file] [log] [blame]
Remi NGUYEN VAN31022d62021-05-11 13:37:06 +00001//
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 // See: http://go/android-license-faq
Baligh Uddin36847132021-05-23 16:38:40 +000019 default_applicable_licenses: ["Android-Apache-2.0"],
Remi NGUYEN VAN31022d62021-05-11 13:37:06 +000020}
21
Aaron Huang1ed8aff2021-09-28 15:37:49 +080022// FrameworksNetDeflakeTest depends on FrameworksNetTests so it should be disabled
23// if FrameworksNetTests is disabled.
24enable_frameworks_net_deflake_test = true
25// Placeholder
26// This is a placeholder comment to minimize merge conflicts, as enable_frameworks_net_deflake_test
27// may have different values depending on the branch
28// Placeholder
29
Remi NGUYEN VAN31022d62021-05-11 13:37:06 +000030java_test_host {
31 name: "FrameworksNetDeflakeTest",
Aaron Huang1ed8aff2021-09-28 15:37:49 +080032 enabled: enable_frameworks_net_deflake_test,
Remi NGUYEN VAN31022d62021-05-11 13:37:06 +000033 srcs: ["src/**/*.kt"],
34 libs: [
35 "junit",
36 "tradefed",
37 ],
38 static_libs: [
39 "kotlin-test",
40 "net-host-tests-utils",
41 ],
42 data: [":FrameworksNetTests"],
43 test_suites: ["device-tests"],
Aaron Huang1ed8aff2021-09-28 15:37:49 +080044 // It will get build error if just set enabled to true. It fails with "windows_common"
45 // depends on some disabled modules that are used by this test and it looks like set
46 // enable_frameworks_net_deflake_test to true also enables "windows" variant. Thus,
47 // disable this on target windows.
48 // TODO: Remove this when b/201754360 is fixed.
49 target: {
50 windows: {
51 enabled: false,
52 },
53 },
Remi NGUYEN VAN31022d62021-05-11 13:37:06 +000054}