Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 1 | // Copyright (C) 2019 The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
Bob Badour | 97e6be2 | 2021-02-12 14:45:04 -0800 | [diff] [blame] | 15 | package { |
Aditya Choudhary | 01b5ede | 2024-01-31 11:08:57 +0000 | [diff] [blame^] | 16 | default_team: "trendy_team_fwk_core_networking", |
Bob Badour | 97e6be2 | 2021-02-12 14:45:04 -0800 | [diff] [blame] | 17 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 18 | } |
| 19 | |
markchien | 7193a1b | 2021-04-27 01:50:31 +0800 | [diff] [blame] | 20 | java_defaults { |
| 21 | name: "CtsTetheringTestDefaults", |
Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 22 | defaults: ["cts_defaults"], |
| 23 | |
| 24 | libs: [ |
| 25 | "android.test.base", |
| 26 | ], |
| 27 | |
| 28 | srcs: [ |
| 29 | "src/**/*.java", |
| 30 | ], |
| 31 | |
| 32 | static_libs: [ |
| 33 | "TetheringCommonTests", |
Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 34 | "compatibility-device-util-axt", |
| 35 | "cts-net-utils", |
| 36 | "net-tests-utils", |
| 37 | "ctstestrunner-axt", |
| 38 | "junit", |
| 39 | "junit-params", |
| 40 | ], |
| 41 | |
| 42 | jni_libs: [ |
| 43 | // For mockito extended |
| 44 | "libdexmakerjvmtiagent", |
| 45 | "libstaticjvmtiagent", |
| 46 | ], |
| 47 | |
| 48 | // Change to system current when TetheringManager move to bootclass path. |
| 49 | platform_apis: true, |
Mark Chien | 9bfe857 | 2023-03-14 05:54:08 +0000 | [diff] [blame] | 50 | host_required: ["net-tests-utils-host-common"], |
markchien | 7193a1b | 2021-04-27 01:50:31 +0800 | [diff] [blame] | 51 | } |
| 52 | |
| 53 | // Tethering CTS tests that target the latest released SDK. These tests can be installed on release |
| 54 | // devices which has equal or lowner sdk version than target sdk and are useful for qualifying |
| 55 | // mainline modules on release devices. |
| 56 | android_test { |
| 57 | name: "CtsTetheringTestLatestSdk", |
Lorenzo Colitti | cc5054b | 2022-07-22 12:37:17 +0900 | [diff] [blame] | 58 | defaults: [ |
| 59 | "ConnectivityTestsLatestSdkDefaults", |
| 60 | "CtsTetheringTestDefaults", |
| 61 | ], |
markchien | 7193a1b | 2021-04-27 01:50:31 +0800 | [diff] [blame] | 62 | |
| 63 | min_sdk_version: "30", |
markchien | 7193a1b | 2021-04-27 01:50:31 +0800 | [diff] [blame] | 64 | |
| 65 | static_libs: [ |
| 66 | "TetheringIntegrationTestsLatestSdkLib", |
| 67 | ], |
| 68 | |
| 69 | test_suites: [ |
| 70 | "general-tests", |
| 71 | "mts-tethering", |
| 72 | ], |
| 73 | |
| 74 | test_config_template: "AndroidTestTemplate.xml", |
| 75 | |
| 76 | // Include both the 32 and 64 bit versions |
| 77 | compile_multilib: "both", |
Remi NGUYEN VAN | 0015f04 | 2021-07-27 14:30:14 +0900 | [diff] [blame] | 78 | jarjar_rules: ":NetworkStackJarJarRules", |
markchien | 7193a1b | 2021-04-27 01:50:31 +0800 | [diff] [blame] | 79 | } |
| 80 | |
| 81 | // Tethering CTS tests for development and release. These tests always target the platform SDK |
| 82 | // version, and are subject to all the restrictions appropriate to that version. Before SDK |
| 83 | // finalization, these tests have a min_sdk_version of 10000, and cannot be installed on release |
| 84 | // devices. |
| 85 | android_test { |
| 86 | name: "CtsTetheringTest", |
| 87 | defaults: ["CtsTetheringTestDefaults"], |
| 88 | |
| 89 | static_libs: [ |
| 90 | "TetheringIntegrationTestsLib", |
| 91 | ], |
Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 92 | |
| 93 | // Tag this module as a cts test artifact |
| 94 | test_suites: [ |
| 95 | "cts", |
| 96 | "general-tests", |
Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 97 | ], |
| 98 | |
markchien | 7193a1b | 2021-04-27 01:50:31 +0800 | [diff] [blame] | 99 | test_config_template: "AndroidTestTemplate.xml", |
| 100 | |
Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 101 | // Include both the 32 and 64 bit versions |
| 102 | compile_multilib: "both", |
Remi NGUYEN VAN | 0015f04 | 2021-07-27 14:30:14 +0900 | [diff] [blame] | 103 | jarjar_rules: ":NetworkStackJarJarRules", |
Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 104 | } |