1// 2// Copyright (C) 2020 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// 16package { 17 default_team: "trendy_team_fwk_core_networking", 18 default_applicable_licenses: ["Android-Apache-2.0"], 19} 20 21java_defaults { 22 name: "TetheringIntegrationTestsDefaults", 23 defaults: ["framework-connectivity-test-defaults"], 24 srcs: [ 25 "base/**/*.java", 26 ], 27 min_sdk_version: "30", 28 static_libs: [ 29 "DhcpPacketLib", 30 "androidx.test.rules", 31 "cts-net-utils", 32 "mockito-target-minus-junit4", 33 "net-tests-utils", 34 "net-utils-device-common", 35 "net-utils-device-common-bpf", 36 "net-utils-device-common-struct-base", 37 "testables", 38 "connectivity-net-module-utils-bpf", 39 ], 40 libs: [ 41 "android.test.runner", 42 "android.test.base", 43 "android.test.mock", 44 ], 45} 46 47android_library { 48 name: "TetheringIntegrationTestsBaseLib", 49 target_sdk_version: "current", 50 defaults: ["TetheringIntegrationTestsDefaults"], 51 visibility: [ 52 "//packages/modules/Connectivity/Tethering/tests/mts", 53 "//packages/modules/Connectivity/tests/cts/net", 54 ], 55} 56 57// Library including tethering integration tests targeting the latest stable SDK. 58// Use with NetworkStackJarJarRules. 59android_library { 60 name: "TetheringIntegrationTestsLatestSdkLib", 61 target_sdk_version: "33", 62 defaults: ["TetheringIntegrationTestsDefaults"], 63 srcs: [ 64 "src/**/*.java", 65 ], 66 visibility: [ 67 "//packages/modules/Connectivity/tests/cts/tethering", 68 "//packages/modules/Connectivity/tests:__subpackages__", 69 "//packages/modules/Connectivity/Tethering/tests:__subpackages__", 70 ], 71} 72 73// Library including tethering integration tests targeting current development SDK. 74// Use with NetworkStackJarJarRules. 75android_library { 76 name: "TetheringIntegrationTestsLib", 77 target_sdk_version: "current", 78 defaults: ["TetheringIntegrationTestsDefaults"], 79 srcs: [ 80 "src/**/*.java", 81 ], 82 visibility: [ 83 "//packages/modules/Connectivity/tests/cts/tethering", 84 "//packages/modules/Connectivity/Tethering/tests/mts", 85 ], 86} 87 88// TODO: remove because TetheringIntegrationTests has been covered by ConnectivityCoverageTests. 89android_test { 90 name: "TetheringIntegrationTests", 91 platform_apis: true, 92 defaults: ["TetheringIntegrationTestsDefaults"], 93 test_suites: [ 94 "device-tests", 95 ], 96 srcs: [ 97 "src/**/*.java", 98 ], 99 compile_multilib: "both", 100 jarjar_rules: ":NetworkStackJarJarRules", 101} 102