blob: 2594a5e13c5ee8932cf56c61936778c9e648ad42 [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: [
Yuyang Huang5c2126e2023-08-23 15:38:06 +090028 "DhcpPacketLib",
Lorenzo Colitti4896e322020-03-17 01:07:47 +090029 "androidx.test.rules",
Hungming Chend09bb072022-08-29 21:43:55 +080030 "cts-net-utils",
Yuyang Huangfca402a2023-05-24 14:45:59 +090031 "mockito-target-minus-junit4",
Lorenzo Colitti4896e322020-03-17 01:07:47 +090032 "net-tests-utils",
Yuyang Huang5c2126e2023-08-23 15:38:06 +090033 "net-utils-device-common",
Hungming Chena525e242021-10-21 17:58:44 +080034 "net-utils-device-common-bpf",
Lorenzo Colitti4896e322020-03-17 01:07:47 +090035 "testables",
Hungming Chen01f25502022-06-28 22:47:00 +080036 "connectivity-net-module-utils-bpf",
Lorenzo Colitti4896e322020-03-17 01:07:47 +090037 ],
38 libs: [
39 "android.test.runner",
40 "android.test.base",
41 "android.test.mock",
42 ],
Lorenzo Colitti4896e322020-03-17 01:07:47 +090043}
paulhu64632652020-04-06 14:58:12 +080044
Hungming Chen31eab2f2022-11-27 21:17:04 +080045android_library {
46 name: "TetheringIntegrationTestsBaseLib",
47 target_sdk_version: "current",
48 platform_apis: true,
49 defaults: ["TetheringIntegrationTestsDefaults"],
50 visibility: [
51 "//packages/modules/Connectivity/Tethering/tests/mts",
Yuyang Huangfca402a2023-05-24 14:45:59 +090052 "//packages/modules/Connectivity/tests/cts/net",
Hungming Chen31eab2f2022-11-27 21:17:04 +080053 ]
54}
55
Remi NGUYEN VAN0015f042021-07-27 14:30:14 +090056// Library including tethering integration tests targeting the latest stable SDK.
57// Use with NetworkStackJarJarRules.
paulhu64632652020-04-06 14:58:12 +080058android_library {
markchien7193a1b2021-04-27 01:50:31 +080059 name: "TetheringIntegrationTestsLatestSdkLib",
Mark Chiend25a1e02022-05-19 01:01:26 +080060 target_sdk_version: "33",
paulhu64632652020-04-06 14:58:12 +080061 platform_apis: true,
62 defaults: ["TetheringIntegrationTestsDefaults"],
Hungming Chen31eab2f2022-11-27 21:17:04 +080063 srcs: [
64 "src/**/*.java",
65 ],
Baligh Uddin661ae392020-11-04 05:34:06 +000066 visibility: [
Baligh Uddin661ae392020-11-04 05:34:06 +000067 "//packages/modules/Connectivity/tests/cts/tethering",
Remi NGUYEN VANfe20e132021-06-07 13:10:49 +090068 "//packages/modules/Connectivity/tests:__subpackages__",
69 "//packages/modules/Connectivity/Tethering/tests:__subpackages__",
markchien7193a1b2021-04-27 01:50:31 +080070 ]
71}
72
Remi NGUYEN VAN0015f042021-07-27 14:30:14 +090073// Library including tethering integration tests targeting current development SDK.
74// Use with NetworkStackJarJarRules.
markchien7193a1b2021-04-27 01:50:31 +080075android_library {
76 name: "TetheringIntegrationTestsLib",
77 target_sdk_version: "current",
78 platform_apis: true,
79 defaults: ["TetheringIntegrationTestsDefaults"],
Hungming Chen31eab2f2022-11-27 21:17:04 +080080 srcs: [
81 "src/**/*.java",
82 ],
markchien7193a1b2021-04-27 01:50:31 +080083 visibility: [
84 "//packages/modules/Connectivity/tests/cts/tethering",
85 "//packages/modules/Connectivity/Tethering/tests/mts",
Baligh Uddin661ae392020-11-04 05:34:06 +000086 ]
paulhu64632652020-04-06 14:58:12 +080087}
88
Hungming Chen31eab2f2022-11-27 21:17:04 +080089// TODO: remove because TetheringIntegrationTests has been covered by ConnectivityCoverageTests.
paulhu64632652020-04-06 14:58:12 +080090android_test {
91 name: "TetheringIntegrationTests",
92 platform_apis: true,
93 defaults: ["TetheringIntegrationTestsDefaults"],
94 test_suites: [
95 "device-tests",
paulhu64632652020-04-06 14:58:12 +080096 ],
Hungming Chen31eab2f2022-11-27 21:17:04 +080097 srcs: [
98 "src/**/*.java",
99 ],
paulhu64632652020-04-06 14:58:12 +0800100 compile_multilib: "both",
Remi NGUYEN VAN0015f042021-07-27 14:30:14 +0900101 jarjar_rules: ":NetworkStackJarJarRules",
paulhu64632652020-04-06 14:58:12 +0800102}