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 { |
| 17 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 18 | } |
| 19 | |
paulhu | 6463265 | 2020-04-06 14:58:12 +0800 | [diff] [blame] | 20 | java_defaults { |
| 21 | name: "TetheringIntegrationTestsDefaults", |
markchien | 2fbd3e7 | 2021-08-17 23:59:09 +0800 | [diff] [blame] | 22 | defaults: ["framework-connectivity-test-defaults"], |
Lorenzo Colitti | 4896e32 | 2020-03-17 01:07:47 +0900 | [diff] [blame] | 23 | srcs: [ |
| 24 | "src/**/*.java", |
| 25 | "src/**/*.kt", |
| 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: [ |
| 29 | "NetworkStackApiStableLib", |
| 30 | "androidx.test.rules", |
Lorenzo Colitti | 4896e32 | 2020-03-17 01:07:47 +0900 | [diff] [blame] | 31 | "mockito-target-extended-minus-junit4", |
| 32 | "net-tests-utils", |
Hungming Chen | a525e24 | 2021-10-21 17:58:44 +0800 | [diff] [blame] | 33 | "net-utils-device-common-bpf", |
Lorenzo Colitti | 4896e32 | 2020-03-17 01:07:47 +0900 | [diff] [blame] | 34 | "testables", |
Hungming Chen | 01f2550 | 2022-06-28 22:47:00 +0800 | [diff] [blame^] | 35 | "connectivity-net-module-utils-bpf", |
Lorenzo Colitti | 4896e32 | 2020-03-17 01:07:47 +0900 | [diff] [blame] | 36 | ], |
| 37 | libs: [ |
| 38 | "android.test.runner", |
| 39 | "android.test.base", |
| 40 | "android.test.mock", |
| 41 | ], |
paulhu | d584d2f | 2020-04-08 09:57:57 +0800 | [diff] [blame] | 42 | jni_libs: [ |
| 43 | // For mockito extended |
| 44 | "libdexmakerjvmtiagent", |
| 45 | "libstaticjvmtiagent", |
| 46 | ], |
Lorenzo Colitti | 4896e32 | 2020-03-17 01:07:47 +0900 | [diff] [blame] | 47 | } |
paulhu | 6463265 | 2020-04-06 14:58:12 +0800 | [diff] [blame] | 48 | |
Remi NGUYEN VAN | 0015f04 | 2021-07-27 14:30:14 +0900 | [diff] [blame] | 49 | // Library including tethering integration tests targeting the latest stable SDK. |
| 50 | // Use with NetworkStackJarJarRules. |
paulhu | 6463265 | 2020-04-06 14:58:12 +0800 | [diff] [blame] | 51 | android_library { |
markchien | 7193a1b | 2021-04-27 01:50:31 +0800 | [diff] [blame] | 52 | name: "TetheringIntegrationTestsLatestSdkLib", |
Mark Chien | d25a1e0 | 2022-05-19 01:01:26 +0800 | [diff] [blame] | 53 | target_sdk_version: "33", |
paulhu | 6463265 | 2020-04-06 14:58:12 +0800 | [diff] [blame] | 54 | platform_apis: true, |
| 55 | defaults: ["TetheringIntegrationTestsDefaults"], |
Baligh Uddin | 661ae39 | 2020-11-04 05:34:06 +0000 | [diff] [blame] | 56 | visibility: [ |
Baligh Uddin | 661ae39 | 2020-11-04 05:34:06 +0000 | [diff] [blame] | 57 | "//packages/modules/Connectivity/tests/cts/tethering", |
Remi NGUYEN VAN | fe20e13 | 2021-06-07 13:10:49 +0900 | [diff] [blame] | 58 | "//packages/modules/Connectivity/tests:__subpackages__", |
| 59 | "//packages/modules/Connectivity/Tethering/tests:__subpackages__", |
markchien | 7193a1b | 2021-04-27 01:50:31 +0800 | [diff] [blame] | 60 | ] |
| 61 | } |
| 62 | |
Remi NGUYEN VAN | 0015f04 | 2021-07-27 14:30:14 +0900 | [diff] [blame] | 63 | // Library including tethering integration tests targeting current development SDK. |
| 64 | // Use with NetworkStackJarJarRules. |
markchien | 7193a1b | 2021-04-27 01:50:31 +0800 | [diff] [blame] | 65 | android_library { |
| 66 | name: "TetheringIntegrationTestsLib", |
| 67 | target_sdk_version: "current", |
| 68 | platform_apis: true, |
| 69 | defaults: ["TetheringIntegrationTestsDefaults"], |
| 70 | visibility: [ |
| 71 | "//packages/modules/Connectivity/tests/cts/tethering", |
| 72 | "//packages/modules/Connectivity/Tethering/tests/mts", |
Baligh Uddin | 661ae39 | 2020-11-04 05:34:06 +0000 | [diff] [blame] | 73 | ] |
paulhu | 6463265 | 2020-04-06 14:58:12 +0800 | [diff] [blame] | 74 | } |
| 75 | |
| 76 | android_test { |
| 77 | name: "TetheringIntegrationTests", |
| 78 | platform_apis: true, |
| 79 | defaults: ["TetheringIntegrationTestsDefaults"], |
| 80 | test_suites: [ |
| 81 | "device-tests", |
Kimberly Kreider | c5b3f34 | 2021-10-20 18:16:59 +0000 | [diff] [blame] | 82 | "mts-tethering", |
paulhu | 6463265 | 2020-04-06 14:58:12 +0800 | [diff] [blame] | 83 | ], |
| 84 | compile_multilib: "both", |
Remi NGUYEN VAN | 0015f04 | 2021-07-27 14:30:14 +0900 | [diff] [blame] | 85 | jarjar_rules: ":NetworkStackJarJarRules", |
paulhu | 6463265 | 2020-04-06 14:58:12 +0800 | [diff] [blame] | 86 | } |