1// Copyright (C) 2019 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: "CtsTetheringTestDefaults", 22 defaults: [ 23 "cts_defaults", 24 "framework-connectivity-test-defaults", 25 ], 26 27 libs: [ 28 "android.test.base.stubs.system", 29 ], 30 31 srcs: [ 32 "src/**/*.java", 33 ], 34 35 static_libs: [ 36 "TetheringCommonTests", 37 "compatibility-device-util-axt", 38 "cts-net-utils", 39 "net-tests-utils", 40 "ctstestrunner-axt", 41 "junit", 42 "junit-params", 43 ], 44 45 jni_libs: [ 46 // For mockito extended 47 "libdexmakerjvmtiagent", 48 "libstaticjvmtiagent", 49 ], 50 51 // Change to system current when TetheringManager move to bootclass path. 52 platform_apis: true, 53 min_sdk_version: "30", 54 host_required: ["net-tests-utils-host-common"], 55} 56 57// Tethering CTS tests that target the latest released SDK. These tests can be installed on release 58// devices which has equal or lowner sdk version than target sdk and are useful for qualifying 59// mainline modules on release devices. 60android_test { 61 name: "CtsTetheringTestLatestSdk", 62 defaults: [ 63 "ConnectivityTestsLatestSdkDefaults", 64 "CtsTetheringTestDefaults", 65 ], 66 67 min_sdk_version: "30", 68 69 static_libs: [ 70 "TetheringIntegrationTestsLatestSdkLib", 71 ], 72 73 test_suites: [ 74 "general-tests", 75 "mts-tethering", 76 ], 77 78 test_config_template: "AndroidTestTemplate.xml", 79 80 // Include both the 32 and 64 bit versions 81 compile_multilib: "both", 82 jarjar_rules: ":NetworkStackJarJarRules", 83} 84 85// Tethering CTS tests for development and release. These tests always target the platform SDK 86// version, and are subject to all the restrictions appropriate to that version. Before SDK 87// finalization, these tests have a min_sdk_version of 10000, but they can still be installed on 88// release devices as their min_sdk_version is set to a production version. 89android_test { 90 name: "CtsTetheringTest", 91 defaults: ["CtsTetheringTestDefaults"], 92 93 static_libs: [ 94 "TetheringIntegrationTestsLib", 95 ], 96 97 // Tag this module as a cts test artifact 98 test_suites: [ 99 "cts", 100 "mts-tethering", 101 "mcts-tethering", 102 "general-tests", 103 ], 104 105 test_config_template: "AndroidTestTemplate.xml", 106 107 // Include both the 32 and 64 bit versions 108 compile_multilib: "both", 109 jarjar_rules: ":NetworkStackJarJarRules", 110} 111