blob: 221154638b635a02657a19b506051a0a477b6e58 [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 {
Aditya Choudhary01b5ede2024-01-31 11:08:57 +000017 default_team: "trendy_team_fwk_core_networking",
Bob Badour97e6be22021-02-12 14:45:04 -080018 default_applicable_licenses: ["Android-Apache-2.0"],
19}
20
paulhu64632652020-04-06 14:58:12 +080021java_defaults {
22 name: "TetheringIntegrationTestsDefaults",
markchien2fbd3e72021-08-17 23:59:09 +080023 defaults: ["framework-connectivity-test-defaults"],
Lorenzo Colitti4896e322020-03-17 01:07:47 +090024 srcs: [
Hungming Chen31eab2f2022-11-27 21:17:04 +080025 "base/**/*.java",
Lorenzo Colitti4896e322020-03-17 01:07:47 +090026 ],
markchien7193a1b2021-04-27 01:50:31 +080027 min_sdk_version: "30",
Lorenzo Colitti4896e322020-03-17 01:07:47 +090028 static_libs: [
Yuyang Huang5c2126e2023-08-23 15:38:06 +090029 "DhcpPacketLib",
Lorenzo Colitti4896e322020-03-17 01:07:47 +090030 "androidx.test.rules",
Hungming Chend09bb072022-08-29 21:43:55 +080031 "cts-net-utils",
Yuyang Huangfca402a2023-05-24 14:45:59 +090032 "mockito-target-minus-junit4",
Lorenzo Colitti4896e322020-03-17 01:07:47 +090033 "net-tests-utils",
Yuyang Huang5c2126e2023-08-23 15:38:06 +090034 "net-utils-device-common",
Hungming Chena525e242021-10-21 17:58:44 +080035 "net-utils-device-common-bpf",
Yang Sun3aa62e62024-03-12 21:23:19 +080036 "net-utils-device-common-struct-base",
Lorenzo Colitti4896e322020-03-17 01:07:47 +090037 "testables",
Hungming Chen01f25502022-06-28 22:47:00 +080038 "connectivity-net-module-utils-bpf",
Lorenzo Colitti4896e322020-03-17 01:07:47 +090039 ],
40 libs: [
Jihoon Kang8401b6a2024-08-30 00:29:58 +000041 "android.test.runner.stubs",
42 "android.test.base.stubs",
43 "android.test.mock.stubs",
Lorenzo Colitti4896e322020-03-17 01:07:47 +090044 ],
Lorenzo Colitti4896e322020-03-17 01:07:47 +090045}
paulhu64632652020-04-06 14:58:12 +080046
Hungming Chen31eab2f2022-11-27 21:17:04 +080047android_library {
48 name: "TetheringIntegrationTestsBaseLib",
49 target_sdk_version: "current",
Hungming Chen31eab2f2022-11-27 21:17:04 +080050 defaults: ["TetheringIntegrationTestsDefaults"],
51 visibility: [
52 "//packages/modules/Connectivity/Tethering/tests/mts",
Yuyang Huangfca402a2023-05-24 14:45:59 +090053 "//packages/modules/Connectivity/tests/cts/net",
Aditya Choudhary01b5ede2024-01-31 11:08:57 +000054 ],
Hungming Chen31eab2f2022-11-27 21:17:04 +080055}
56
Remi NGUYEN VAN0015f042021-07-27 14:30:14 +090057// Library including tethering integration tests targeting the latest stable SDK.
58// Use with NetworkStackJarJarRules.
paulhu64632652020-04-06 14:58:12 +080059android_library {
markchien7193a1b2021-04-27 01:50:31 +080060 name: "TetheringIntegrationTestsLatestSdkLib",
Mark Chiend25a1e02022-05-19 01:01:26 +080061 target_sdk_version: "33",
paulhu64632652020-04-06 14:58:12 +080062 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__",
Aditya Choudhary01b5ede2024-01-31 11:08:57 +000070 ],
markchien7193a1b2021-04-27 01:50:31 +080071}
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",
markchien7193a1b2021-04-27 01:50:31 +080078 defaults: ["TetheringIntegrationTestsDefaults"],
Hungming Chen31eab2f2022-11-27 21:17:04 +080079 srcs: [
80 "src/**/*.java",
81 ],
markchien7193a1b2021-04-27 01:50:31 +080082 visibility: [
83 "//packages/modules/Connectivity/tests/cts/tethering",
84 "//packages/modules/Connectivity/Tethering/tests/mts",
Aditya Choudhary01b5ede2024-01-31 11:08:57 +000085 ],
paulhu64632652020-04-06 14:58:12 +080086}
87
Hungming Chen31eab2f2022-11-27 21:17:04 +080088// TODO: remove because TetheringIntegrationTests has been covered by ConnectivityCoverageTests.
paulhu64632652020-04-06 14:58:12 +080089android_test {
90 name: "TetheringIntegrationTests",
91 platform_apis: true,
92 defaults: ["TetheringIntegrationTestsDefaults"],
93 test_suites: [
94 "device-tests",
paulhu64632652020-04-06 14:58:12 +080095 ],
Hungming Chen31eab2f2022-11-27 21:17:04 +080096 srcs: [
97 "src/**/*.java",
98 ],
paulhu64632652020-04-06 14:58:12 +080099 compile_multilib: "both",
Remi NGUYEN VAN0015f042021-07-27 14:30:14 +0900100 jarjar_rules: ":NetworkStackJarJarRules",
paulhu64632652020-04-06 14:58:12 +0800101}