blob: d1678364d1f43f60a2be3489aebc77ae7ce275d8 [file] [log] [blame]
Baligh Uddin6a41dd42020-11-04 04:21:14 +00001// 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 Badour97e6be22021-02-12 14:45:04 -080015package {
Aditya Choudhary01b5ede2024-01-31 11:08:57 +000016 default_team: "trendy_team_fwk_core_networking",
Bob Badour97e6be22021-02-12 14:45:04 -080017 default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
markchien7193a1b2021-04-27 01:50:31 +080020java_defaults {
21 name: "CtsTetheringTestDefaults",
Oscar Shu46722ad2024-11-05 01:01:54 +000022 defaults: [
23 "cts_defaults",
24 "framework-connectivity-test-defaults",
25 ],
Baligh Uddin6a41dd42020-11-04 04:21:14 +000026
27 libs: [
Jihoon Kang8401b6a2024-08-30 00:29:58 +000028 "android.test.base.stubs.system",
Baligh Uddin6a41dd42020-11-04 04:21:14 +000029 ],
30
31 srcs: [
32 "src/**/*.java",
33 ],
34
35 static_libs: [
36 "TetheringCommonTests",
Quang Anh Luong2782b3b2024-12-05 13:34:15 +090037 "com.android.net.flags-aconfig-java",
Baligh Uddin6a41dd42020-11-04 04:21:14 +000038 "compatibility-device-util-axt",
39 "cts-net-utils",
40 "net-tests-utils",
41 "ctstestrunner-axt",
42 "junit",
43 "junit-params",
44 ],
45
46 jni_libs: [
47 // For mockito extended
48 "libdexmakerjvmtiagent",
49 "libstaticjvmtiagent",
50 ],
51
52 // Change to system current when TetheringManager move to bootclass path.
53 platform_apis: true,
Quang Anh Luong1f1357b2024-02-22 13:53:59 +090054 min_sdk_version: "30",
Mark Chien9bfe8572023-03-14 05:54:08 +000055 host_required: ["net-tests-utils-host-common"],
markchien7193a1b2021-04-27 01:50:31 +080056}
57
58// Tethering CTS tests that target the latest released SDK. These tests can be installed on release
59// devices which has equal or lowner sdk version than target sdk and are useful for qualifying
60// mainline modules on release devices.
61android_test {
62 name: "CtsTetheringTestLatestSdk",
Lorenzo Colitticc5054b2022-07-22 12:37:17 +090063 defaults: [
64 "ConnectivityTestsLatestSdkDefaults",
65 "CtsTetheringTestDefaults",
66 ],
markchien7193a1b2021-04-27 01:50:31 +080067
68 min_sdk_version: "30",
markchien7193a1b2021-04-27 01:50:31 +080069
70 static_libs: [
71 "TetheringIntegrationTestsLatestSdkLib",
72 ],
73
74 test_suites: [
75 "general-tests",
76 "mts-tethering",
77 ],
78
79 test_config_template: "AndroidTestTemplate.xml",
80
81 // Include both the 32 and 64 bit versions
82 compile_multilib: "both",
Remi NGUYEN VAN0015f042021-07-27 14:30:14 +090083 jarjar_rules: ":NetworkStackJarJarRules",
markchien7193a1b2021-04-27 01:50:31 +080084}
85
86// Tethering CTS tests for development and release. These tests always target the platform SDK
87// version, and are subject to all the restrictions appropriate to that version. Before SDK
Quang Anh Luong1f1357b2024-02-22 13:53:59 +090088// finalization, these tests have a min_sdk_version of 10000, but they can still be installed on
89// release devices as their min_sdk_version is set to a production version.
markchien7193a1b2021-04-27 01:50:31 +080090android_test {
91 name: "CtsTetheringTest",
92 defaults: ["CtsTetheringTestDefaults"],
93
94 static_libs: [
95 "TetheringIntegrationTestsLib",
96 ],
Baligh Uddin6a41dd42020-11-04 04:21:14 +000097
98 // Tag this module as a cts test artifact
99 test_suites: [
100 "cts",
Quang Anh Luong1f1357b2024-02-22 13:53:59 +0900101 "mts-tethering",
Quang Anh Luong1f1357b2024-02-22 13:53:59 +0900102 "mcts-tethering",
Baligh Uddin6a41dd42020-11-04 04:21:14 +0000103 "general-tests",
Baligh Uddin6a41dd42020-11-04 04:21:14 +0000104 ],
105
markchien7193a1b2021-04-27 01:50:31 +0800106 test_config_template: "AndroidTestTemplate.xml",
107
Baligh Uddin6a41dd42020-11-04 04:21:14 +0000108 // Include both the 32 and 64 bit versions
109 compile_multilib: "both",
Remi NGUYEN VAN0015f042021-07-27 14:30:14 +0900110 jarjar_rules: ":NetworkStackJarJarRules",
Baligh Uddin6a41dd42020-11-04 04:21:14 +0000111}