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// 16 17package { 18 default_applicable_licenses: ["Android-Apache-2.0"], 19} 20 21java_defaults { 22 name: "TetheringPrivilegedTestsJniDefaults", 23 jni_libs: [ 24 "libdexmakerjvmtiagent", 25 "libstaticjvmtiagent", 26 "libtetherutilsjni", 27 ], 28 jni_uses_sdk_apis: true, 29 visibility: ["//visibility:private"], 30} 31 32android_test { 33 name: "TetheringPrivilegedTests", 34 defaults: [ 35 "TetheringPrivilegedTestsJniDefaults", 36 ], 37 srcs: [ 38 "src/**/*.java", 39 "src/**/*.kt", 40 ], 41 certificate: "networkstack", 42 platform_apis: true, 43 test_suites: [ 44 "device-tests", 45 "mts", 46 ], 47 static_libs: [ 48 "androidx.test.rules", 49 "net-tests-utils", 50 "TetheringApiCurrentLib", 51 ], 52 compile_multilib: "both", 53} 54