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 // See: http://go/android-license-faq 19 default_applicable_licenses: ["Android-Apache-2.0"], 20} 21 22// 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 30java_test_host { 31 name: "FrameworksNetDeflakeTest", 32 enabled: enable_frameworks_net_deflake_test, 33 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"], 44 // 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 }, 54} 55