blob: 5e08abac94e4c9dd1958bd68b0d91a07530ad09f [file] [log] [blame]
Lorenzo Colitti4896e322020-03-17 01:07:47 +09001//
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//
Bob Badour97e6be22021-02-12 14:45:04 -080016package {
17 default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
paulhu64632652020-04-06 14:58:12 +080020java_defaults {
21 name: "TetheringIntegrationTestsDefaults",
markchien2fbd3e72021-08-17 23:59:09 +080022 defaults: ["framework-connectivity-test-defaults"],
Lorenzo Colitti4896e322020-03-17 01:07:47 +090023 srcs: [
Hungming Chen31eab2f2022-11-27 21:17:04 +080024 "base/**/*.java",
Lorenzo Colitti4896e322020-03-17 01:07:47 +090025 ],
markchien7193a1b2021-04-27 01:50:31 +080026 min_sdk_version: "30",
Lorenzo Colitti4896e322020-03-17 01:07:47 +090027 static_libs: [
28 "NetworkStackApiStableLib",
29 "androidx.test.rules",
Hungming Chend09bb072022-08-29 21:43:55 +080030 "cts-net-utils",
Lorenzo Colitti4896e322020-03-17 01:07:47 +090031 "mockito-target-extended-minus-junit4",
32 "net-tests-utils",
Hungming Chena525e242021-10-21 17:58:44 +080033 "net-utils-device-common-bpf",
Lorenzo Colitti4896e322020-03-17 01:07:47 +090034 "testables",
Hungming Chen01f25502022-06-28 22:47:00 +080035 "connectivity-net-module-utils-bpf",
Lorenzo Colitti4896e322020-03-17 01:07:47 +090036 ],
37 libs: [
38 "android.test.runner",
39 "android.test.base",
40 "android.test.mock",
41 ],
paulhud584d2f2020-04-08 09:57:57 +080042 jni_libs: [
43 // For mockito extended
44 "libdexmakerjvmtiagent",
45 "libstaticjvmtiagent",
46 ],
Lorenzo Colitti4896e322020-03-17 01:07:47 +090047}
paulhu64632652020-04-06 14:58:12 +080048
Hungming Chen31eab2f2022-11-27 21:17:04 +080049android_library {
50 name: "TetheringIntegrationTestsBaseLib",
51 target_sdk_version: "current",
52 platform_apis: true,
53 defaults: ["TetheringIntegrationTestsDefaults"],
54 visibility: [
55 "//packages/modules/Connectivity/Tethering/tests/mts",
56 ]
57}
58
Remi NGUYEN VAN0015f042021-07-27 14:30:14 +090059// Library including tethering integration tests targeting the latest stable SDK.
60// Use with NetworkStackJarJarRules.
paulhu64632652020-04-06 14:58:12 +080061android_library {
markchien7193a1b2021-04-27 01:50:31 +080062 name: "TetheringIntegrationTestsLatestSdkLib",
Mark Chiend25a1e02022-05-19 01:01:26 +080063 target_sdk_version: "33",
paulhu64632652020-04-06 14:58:12 +080064 platform_apis: true,
65 defaults: ["TetheringIntegrationTestsDefaults"],
Hungming Chen31eab2f2022-11-27 21:17:04 +080066 srcs: [
67 "src/**/*.java",
68 ],
Baligh Uddin661ae392020-11-04 05:34:06 +000069 visibility: [
Baligh Uddin661ae392020-11-04 05:34:06 +000070 "//packages/modules/Connectivity/tests/cts/tethering",
Remi NGUYEN VANfe20e132021-06-07 13:10:49 +090071 "//packages/modules/Connectivity/tests:__subpackages__",
72 "//packages/modules/Connectivity/Tethering/tests:__subpackages__",
markchien7193a1b2021-04-27 01:50:31 +080073 ]
74}
75
Remi NGUYEN VAN0015f042021-07-27 14:30:14 +090076// Library including tethering integration tests targeting current development SDK.
77// Use with NetworkStackJarJarRules.
markchien7193a1b2021-04-27 01:50:31 +080078android_library {
79 name: "TetheringIntegrationTestsLib",
80 target_sdk_version: "current",
81 platform_apis: true,
82 defaults: ["TetheringIntegrationTestsDefaults"],
Hungming Chen31eab2f2022-11-27 21:17:04 +080083 srcs: [
84 "src/**/*.java",
85 ],
markchien7193a1b2021-04-27 01:50:31 +080086 visibility: [
87 "//packages/modules/Connectivity/tests/cts/tethering",
88 "//packages/modules/Connectivity/Tethering/tests/mts",
Baligh Uddin661ae392020-11-04 05:34:06 +000089 ]
paulhu64632652020-04-06 14:58:12 +080090}
91
Hungming Chen31eab2f2022-11-27 21:17:04 +080092// TODO: remove because TetheringIntegrationTests has been covered by ConnectivityCoverageTests.
paulhu64632652020-04-06 14:58:12 +080093android_test {
94 name: "TetheringIntegrationTests",
95 platform_apis: true,
96 defaults: ["TetheringIntegrationTestsDefaults"],
97 test_suites: [
98 "device-tests",
paulhu64632652020-04-06 14:58:12 +080099 ],
Hungming Chen31eab2f2022-11-27 21:17:04 +0800100 srcs: [
101 "src/**/*.java",
102 ],
paulhu64632652020-04-06 14:58:12 +0800103 compile_multilib: "both",
Remi NGUYEN VAN0015f042021-07-27 14:30:14 +0900104 jarjar_rules: ":NetworkStackJarJarRules",
paulhu64632652020-04-06 14:58:12 +0800105}