blob: 214b014c14d27ce3156abba357b1745996acb8c0 [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",
37 ],
markchien88f04282020-06-20 17:37:22 +080038 srcs: [
39 "src/**/*.java",
40 "src/**/*.kt",
41 ],
42 certificate: "networkstack",
43 platform_apis: true,
44 test_suites: [
Tyler Wear90e40632020-03-13 11:38:38 -070045 "device-tests",
Kimberly Kreiderc5b3f342021-10-20 18:16:59 +000046 "mts-tethering",
markchien88f04282020-06-20 17:37:22 +080047 ],
Tyler Wear90e40632020-03-13 11:38:38 -070048 static_libs: [
49 "androidx.test.rules",
50 "net-tests-utils",
51 "TetheringApiCurrentLib",
52 ],
markchien88f04282020-06-20 17:37:22 +080053 compile_multilib: "both",
54}