blob: f63df2c8df6c9c290dd2f9e3c1f0459163b8976e [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 {
17 default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
paulhu64632652020-04-06 14:58:12 +080020java_defaults {
21 name: "TetheringIntegrationTestsDefaults",
Lorenzo Colitti4896e322020-03-17 01:07:47 +090022 srcs: [
23 "src/**/*.java",
24 "src/**/*.kt",
25 ],
Lorenzo Colitti4896e322020-03-17 01:07:47 +090026 static_libs: [
27 "NetworkStackApiStableLib",
28 "androidx.test.rules",
Lorenzo Colitti4896e322020-03-17 01:07:47 +090029 "mockito-target-extended-minus-junit4",
30 "net-tests-utils",
31 "testables",
32 ],
33 libs: [
34 "android.test.runner",
35 "android.test.base",
36 "android.test.mock",
37 ],
paulhud584d2f2020-04-08 09:57:57 +080038 jni_libs: [
39 // For mockito extended
40 "libdexmakerjvmtiagent",
41 "libstaticjvmtiagent",
42 ],
paulhu64632652020-04-06 14:58:12 +080043 jarjar_rules: ":NetworkStackJarJarRules",
Lorenzo Colitti4896e322020-03-17 01:07:47 +090044}
paulhu64632652020-04-06 14:58:12 +080045
46android_library {
47 name: "TetheringIntegrationTestsLib",
48 platform_apis: true,
49 defaults: ["TetheringIntegrationTestsDefaults"],
Baligh Uddin661ae392020-11-04 05:34:06 +000050 visibility: [
51 "//cts/tests/tests/tethering",
52 "//packages/modules/Connectivity/tests/cts/tethering",
53 ]
paulhu64632652020-04-06 14:58:12 +080054}
55
56android_test {
57 name: "TetheringIntegrationTests",
58 platform_apis: true,
59 defaults: ["TetheringIntegrationTestsDefaults"],
60 test_suites: [
61 "device-tests",
62 "mts",
63 ],
64 compile_multilib: "both",
65}
66
67// Special version of the tethering tests that includes all tests necessary for code coverage
68// purposes. This is currently the union of TetheringTests, TetheringIntegrationTests and
69// NetworkStackTests.
70android_test {
71 name: "TetheringCoverageTests",
paulhu64632652020-04-06 14:58:12 +080072 platform_apis: true,
73 test_suites: ["device-tests", "mts"],
74 test_config: "AndroidTest_Coverage.xml",
75 defaults: ["libnetworkstackutilsjni_deps"],
76 static_libs: [
lucaslin5dc7de22021-01-16 17:46:21 +080077 "NetdStaticLibTestsLib",
markchien90b45352020-04-21 17:42:47 +080078 "NetworkStaticLibTestsLib",
paulhu64632652020-04-06 14:58:12 +080079 "NetworkStackTestsLib",
80 "TetheringTestsLib",
81 "TetheringIntegrationTestsLib",
82 ],
83 jni_libs: [
84 // For mockito extended
85 "libdexmakerjvmtiagent",
86 "libstaticjvmtiagent",
87 // For NetworkStackUtils included in NetworkStackBase
88 "libnetworkstackutilsjni",
Maciej Żenczykowskic92e8ce2021-02-11 15:54:05 -080089 "libtetherutilsjni",
paulhu64632652020-04-06 14:58:12 +080090 ],
markchiene3126482020-10-26 13:53:05 +080091 jarjar_rules: ":TetheringTestsJarJarRules",
paulhu64632652020-04-06 14:58:12 +080092 compile_multilib: "both",
93 manifest: "AndroidManifest_coverage.xml",
markchiene3126482020-10-26 13:53:05 +080094}