blob: c890197227edefce1ab22f561b76f5a1fc07207a [file] [log] [blame]
markchien88f04282020-06-20 17:37:22 +08001//
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
Bob Badour97e6be22021-02-12 14:45:04 -080017package {
18 default_applicable_licenses: ["Android-Apache-2.0"],
19}
20
Tyler Wear90e40632020-03-13 11:38:38 -070021java_defaults {
22 name: "TetheringPrivilegedTestsJniDefaults",
23 jni_libs: [
24 "libdexmakerjvmtiagent",
25 "libstaticjvmtiagent",
markchienf967b112021-11-09 16:56:23 +080026 "libcom_android_networkstack_tethering_util_jni",
Tyler Wear90e40632020-03-13 11:38:38 -070027 ],
28 jni_uses_sdk_apis: true,
markchien45dc7942021-11-04 16:40:18 +080029 jarjar_rules: ":TetheringTestsJarJarRules",
Tyler Wear90e40632020-03-13 11:38:38 -070030 visibility: ["//visibility:private"],
31}
32
markchien88f04282020-06-20 17:37:22 +080033android_test {
34 name: "TetheringPrivilegedTests",
Tyler Wear90e40632020-03-13 11:38:38 -070035 defaults: [
36 "TetheringPrivilegedTestsJniDefaults",
markchien598a75b2021-11-22 10:36:32 +080037 "ConnectivityNextEnableDefaults",
Tyler Wear90e40632020-03-13 11:38:38 -070038 ],
markchien88f04282020-06-20 17:37:22 +080039 srcs: [
40 "src/**/*.java",
41 "src/**/*.kt",
42 ],
43 certificate: "networkstack",
44 platform_apis: true,
45 test_suites: [
Tyler Wear90e40632020-03-13 11:38:38 -070046 "device-tests",
Kimberly Kreiderc5b3f342021-10-20 18:16:59 +000047 "mts-tethering",
markchien88f04282020-06-20 17:37:22 +080048 ],
Tyler Wear90e40632020-03-13 11:38:38 -070049 static_libs: [
50 "androidx.test.rules",
51 "net-tests-utils",
52 "TetheringApiCurrentLib",
53 ],
markchien88f04282020-06-20 17:37:22 +080054 compile_multilib: "both",
55}