Lorenzo Colitti | 4896e32 | 2020-03-17 01:07:47 +0900 | [diff] [blame] | 1 | // |
| 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 Badour | 97e6be2 | 2021-02-12 14:45:04 -0800 | [diff] [blame] | 16 | package { |
Aditya Choudhary | 01b5ede | 2024-01-31 11:08:57 +0000 | [diff] [blame] | 17 | default_team: "trendy_team_fwk_core_networking", |
Bob Badour | 97e6be2 | 2021-02-12 14:45:04 -0800 | [diff] [blame] | 18 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 19 | } |
| 20 | |
paulhu | 6463265 | 2020-04-06 14:58:12 +0800 | [diff] [blame] | 21 | java_defaults { |
| 22 | name: "TetheringIntegrationTestsDefaults", |
markchien | 2fbd3e7 | 2021-08-17 23:59:09 +0800 | [diff] [blame] | 23 | defaults: ["framework-connectivity-test-defaults"], |
Lorenzo Colitti | 4896e32 | 2020-03-17 01:07:47 +0900 | [diff] [blame] | 24 | srcs: [ |
Hungming Chen | 31eab2f | 2022-11-27 21:17:04 +0800 | [diff] [blame] | 25 | "base/**/*.java", |
Lorenzo Colitti | 4896e32 | 2020-03-17 01:07:47 +0900 | [diff] [blame] | 26 | ], |
markchien | 7193a1b | 2021-04-27 01:50:31 +0800 | [diff] [blame] | 27 | min_sdk_version: "30", |
Lorenzo Colitti | 4896e32 | 2020-03-17 01:07:47 +0900 | [diff] [blame] | 28 | static_libs: [ |
Yuyang Huang | 5c2126e | 2023-08-23 15:38:06 +0900 | [diff] [blame] | 29 | "DhcpPacketLib", |
Lorenzo Colitti | 4896e32 | 2020-03-17 01:07:47 +0900 | [diff] [blame] | 30 | "androidx.test.rules", |
Hungming Chen | d09bb07 | 2022-08-29 21:43:55 +0800 | [diff] [blame] | 31 | "cts-net-utils", |
Yuyang Huang | fca402a | 2023-05-24 14:45:59 +0900 | [diff] [blame] | 32 | "mockito-target-minus-junit4", |
Lorenzo Colitti | 4896e32 | 2020-03-17 01:07:47 +0900 | [diff] [blame] | 33 | "net-tests-utils", |
Yuyang Huang | 5c2126e | 2023-08-23 15:38:06 +0900 | [diff] [blame] | 34 | "net-utils-device-common", |
Hungming Chen | a525e24 | 2021-10-21 17:58:44 +0800 | [diff] [blame] | 35 | "net-utils-device-common-bpf", |
Lorenzo Colitti | 4896e32 | 2020-03-17 01:07:47 +0900 | [diff] [blame] | 36 | "testables", |
Hungming Chen | 01f2550 | 2022-06-28 22:47:00 +0800 | [diff] [blame] | 37 | "connectivity-net-module-utils-bpf", |
Lorenzo Colitti | 4896e32 | 2020-03-17 01:07:47 +0900 | [diff] [blame] | 38 | ], |
| 39 | libs: [ |
| 40 | "android.test.runner", |
| 41 | "android.test.base", |
| 42 | "android.test.mock", |
| 43 | ], |
Lorenzo Colitti | 4896e32 | 2020-03-17 01:07:47 +0900 | [diff] [blame] | 44 | } |
paulhu | 6463265 | 2020-04-06 14:58:12 +0800 | [diff] [blame] | 45 | |
Hungming Chen | 31eab2f | 2022-11-27 21:17:04 +0800 | [diff] [blame] | 46 | android_library { |
| 47 | name: "TetheringIntegrationTestsBaseLib", |
| 48 | target_sdk_version: "current", |
Hungming Chen | 31eab2f | 2022-11-27 21:17:04 +0800 | [diff] [blame] | 49 | defaults: ["TetheringIntegrationTestsDefaults"], |
| 50 | visibility: [ |
| 51 | "//packages/modules/Connectivity/Tethering/tests/mts", |
Yuyang Huang | fca402a | 2023-05-24 14:45:59 +0900 | [diff] [blame] | 52 | "//packages/modules/Connectivity/tests/cts/net", |
Aditya Choudhary | 01b5ede | 2024-01-31 11:08:57 +0000 | [diff] [blame] | 53 | ], |
Hungming Chen | 31eab2f | 2022-11-27 21:17:04 +0800 | [diff] [blame] | 54 | } |
| 55 | |
Remi NGUYEN VAN | 0015f04 | 2021-07-27 14:30:14 +0900 | [diff] [blame] | 56 | // Library including tethering integration tests targeting the latest stable SDK. |
| 57 | // Use with NetworkStackJarJarRules. |
paulhu | 6463265 | 2020-04-06 14:58:12 +0800 | [diff] [blame] | 58 | android_library { |
markchien | 7193a1b | 2021-04-27 01:50:31 +0800 | [diff] [blame] | 59 | name: "TetheringIntegrationTestsLatestSdkLib", |
Mark Chien | d25a1e0 | 2022-05-19 01:01:26 +0800 | [diff] [blame] | 60 | target_sdk_version: "33", |
paulhu | 6463265 | 2020-04-06 14:58:12 +0800 | [diff] [blame] | 61 | defaults: ["TetheringIntegrationTestsDefaults"], |
Hungming Chen | 31eab2f | 2022-11-27 21:17:04 +0800 | [diff] [blame] | 62 | srcs: [ |
| 63 | "src/**/*.java", |
| 64 | ], |
Baligh Uddin | 661ae39 | 2020-11-04 05:34:06 +0000 | [diff] [blame] | 65 | visibility: [ |
Baligh Uddin | 661ae39 | 2020-11-04 05:34:06 +0000 | [diff] [blame] | 66 | "//packages/modules/Connectivity/tests/cts/tethering", |
Remi NGUYEN VAN | fe20e13 | 2021-06-07 13:10:49 +0900 | [diff] [blame] | 67 | "//packages/modules/Connectivity/tests:__subpackages__", |
| 68 | "//packages/modules/Connectivity/Tethering/tests:__subpackages__", |
Aditya Choudhary | 01b5ede | 2024-01-31 11:08:57 +0000 | [diff] [blame] | 69 | ], |
markchien | 7193a1b | 2021-04-27 01:50:31 +0800 | [diff] [blame] | 70 | } |
| 71 | |
Remi NGUYEN VAN | 0015f04 | 2021-07-27 14:30:14 +0900 | [diff] [blame] | 72 | // Library including tethering integration tests targeting current development SDK. |
| 73 | // Use with NetworkStackJarJarRules. |
markchien | 7193a1b | 2021-04-27 01:50:31 +0800 | [diff] [blame] | 74 | android_library { |
| 75 | name: "TetheringIntegrationTestsLib", |
| 76 | target_sdk_version: "current", |
markchien | 7193a1b | 2021-04-27 01:50:31 +0800 | [diff] [blame] | 77 | defaults: ["TetheringIntegrationTestsDefaults"], |
Hungming Chen | 31eab2f | 2022-11-27 21:17:04 +0800 | [diff] [blame] | 78 | srcs: [ |
| 79 | "src/**/*.java", |
| 80 | ], |
markchien | 7193a1b | 2021-04-27 01:50:31 +0800 | [diff] [blame] | 81 | visibility: [ |
| 82 | "//packages/modules/Connectivity/tests/cts/tethering", |
| 83 | "//packages/modules/Connectivity/Tethering/tests/mts", |
Aditya Choudhary | 01b5ede | 2024-01-31 11:08:57 +0000 | [diff] [blame] | 84 | ], |
paulhu | 6463265 | 2020-04-06 14:58:12 +0800 | [diff] [blame] | 85 | } |
| 86 | |
Hungming Chen | 31eab2f | 2022-11-27 21:17:04 +0800 | [diff] [blame] | 87 | // TODO: remove because TetheringIntegrationTests has been covered by ConnectivityCoverageTests. |
paulhu | 6463265 | 2020-04-06 14:58:12 +0800 | [diff] [blame] | 88 | android_test { |
| 89 | name: "TetheringIntegrationTests", |
| 90 | platform_apis: true, |
| 91 | defaults: ["TetheringIntegrationTestsDefaults"], |
| 92 | test_suites: [ |
| 93 | "device-tests", |
paulhu | 6463265 | 2020-04-06 14:58:12 +0800 | [diff] [blame] | 94 | ], |
Hungming Chen | 31eab2f | 2022-11-27 21:17:04 +0800 | [diff] [blame] | 95 | srcs: [ |
| 96 | "src/**/*.java", |
| 97 | ], |
paulhu | 6463265 | 2020-04-06 14:58:12 +0800 | [diff] [blame] | 98 | compile_multilib: "both", |
Remi NGUYEN VAN | 0015f04 | 2021-07-27 14:30:14 +0900 | [diff] [blame] | 99 | jarjar_rules: ":NetworkStackJarJarRules", |
paulhu | 6463265 | 2020-04-06 14:58:12 +0800 | [diff] [blame] | 100 | } |