1// Copyright (C) 2023 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package { 16 // See: http://go/android-license-faq 17 // A large-scale-change added 'default_applicable_licenses' to import 18 // all of the 'license_kinds' from "external_cronet_license" 19 // to get the below license kinds: 20 // SPDX-license-identifier-Apache-2.0 21 default_applicable_licenses: ["external_cronet_license"], 22} 23 24java_test_host { 25 name: "net_unittests_tester", 26 srcs: ["src/**/*.java"], 27 auto_gen_config: false, 28 test_config: "AndroidNetTest.xml", 29 libs: [ 30 "tradefed", 31 "framework-annotations-lib", 32 ], 33 data: [ 34 ":net_unittests_data", 35 ], 36 device_common_data: [ 37 ":cronet_net_tester_app", 38 ], 39 test_suites: [ 40 "general-tests", 41 "mts-tethering", 42 ], 43 // This build fails on windows targets with "windows_common" depends on some disabled modules 44 // that are used by this test. Thus, disable this on target windows. 45 // TODO(aymanm): Remove this when b/201754360 is fixed. 46 target: { 47 windows: { 48 enabled: false, 49 }, 50 }, 51} 52 53java_test_host { 54 name: "cronet_unittests_tester", 55 srcs: ["src/**/*.java"], 56 auto_gen_config: false, 57 test_config: "AndroidTest.xml", 58 libs: [ 59 "tradefed", 60 "framework-annotations-lib", 61 ], 62 test_suites: [ 63 "general-tests", 64 "mts-tethering", 65 ], 66 // This build fails on windows targets with "windows_common" depends on some disabled modules 67 // that are used by this test. Thus, disable this on target windows. 68 // TODO(aymanm): Remove this when b/201754360 is fixed. 69 target: { 70 windows: { 71 enabled: false, 72 }, 73 }, 74 device_common_data: [ 75 ":cronet_tester_app", 76 ], 77} 78