1// Copyright (C) 2014 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 default_team: "trendy_team_fwk_core_networking", 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20java_defaults { 21 name: "CtsHostsideNetworkTestsAllAppDefaults", 22 platform_apis: true, 23 min_sdk_version: "30", 24 // Set target SDK to 10000 so that all the test helper apps are always subject to the most 25 // recent (and possibly most restrictive) target SDK behaviour. Also, this matches the target 26 // SDK of the tests themselves, and of other tests such as CtsNetTestCases. 27 // Note that some of the test helper apps (e.g., CtsHostsideNetworkCapTestsAppSdk33) override 28 // this with older SDK versions. 29 // Also note that unlike android_test targets, "current" does not work: the target SDK is set to 30 // something like "VanillaIceCream" instead of 100000. This means that the tests will not run on 31 // released devices with errors such as "Requires development platform VanillaIceCream but this 32 // is a release platform". 33 target_sdk_version: "10000", 34} 35 36java_test_host { 37 name: "CtsHostsideNetworkTests", 38 defaults: ["cts_defaults"], 39 // Only compile source java files in this apk. 40 srcs: [ 41 "src/**/*.java", 42 ], 43 libs: [ 44 "net-tests-utils-host-device-common", 45 "cts-tradefed", 46 "tradefed", 47 ], 48 static_libs: [ 49 "modules-utils-build-testing", 50 ], 51 // Tag this module as a cts test artifact 52 test_suites: [ 53 "cts", 54 "general-tests", 55 "mcts-tethering", 56 "mts-tethering", 57 "sts", 58 ], 59 device_common_data: [ 60 ":CtsHostsideNetworkTestsApp", 61 ":CtsHostsideNetworkTestsApp2", 62 ":CtsHostsideNetworkCapTestsAppWithoutProperty", 63 ":CtsHostsideNetworkCapTestsAppWithProperty", 64 ":CtsHostsideNetworkCapTestsAppSdk33", 65 ], 66 per_testcase_directory: true, 67} 68