blob: 42f83bfcd785f58ff1a217e6ae852e58a7520906 [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//
paulhu64632652020-04-06 14:58:12 +080016java_defaults {
17 name: "TetheringIntegrationTestsDefaults",
Lorenzo Colitti4896e322020-03-17 01:07:47 +090018 srcs: [
19 "src/**/*.java",
20 "src/**/*.kt",
21 ],
Lorenzo Colitti4896e322020-03-17 01:07:47 +090022 static_libs: [
23 "NetworkStackApiStableLib",
24 "androidx.test.rules",
Lorenzo Colitti4896e322020-03-17 01:07:47 +090025 "mockito-target-extended-minus-junit4",
26 "net-tests-utils",
27 "testables",
28 ],
29 libs: [
30 "android.test.runner",
31 "android.test.base",
32 "android.test.mock",
33 ],
paulhud584d2f2020-04-08 09:57:57 +080034 jni_libs: [
35 // For mockito extended
36 "libdexmakerjvmtiagent",
37 "libstaticjvmtiagent",
38 ],
paulhu64632652020-04-06 14:58:12 +080039 jarjar_rules: ":NetworkStackJarJarRules",
Lorenzo Colitti4896e322020-03-17 01:07:47 +090040}
paulhu64632652020-04-06 14:58:12 +080041
42android_library {
43 name: "TetheringIntegrationTestsLib",
44 platform_apis: true,
45 defaults: ["TetheringIntegrationTestsDefaults"],
Baligh Uddinebff9312020-11-04 05:06:58 +000046 visibility: [
47 "//cts/tests/tests/tethering",
48 "//packages/modules/Connectivity/tests/cts/tethering",
49 ]
paulhu64632652020-04-06 14:58:12 +080050}
51
52android_test {
53 name: "TetheringIntegrationTests",
54 platform_apis: true,
55 defaults: ["TetheringIntegrationTestsDefaults"],
56 test_suites: [
57 "device-tests",
58 "mts",
59 ],
60 compile_multilib: "both",
61}
62
63// Special version of the tethering tests that includes all tests necessary for code coverage
64// purposes. This is currently the union of TetheringTests, TetheringIntegrationTests and
65// NetworkStackTests.
66android_test {
67 name: "TetheringCoverageTests",
paulhu64632652020-04-06 14:58:12 +080068 platform_apis: true,
69 test_suites: ["device-tests", "mts"],
70 test_config: "AndroidTest_Coverage.xml",
71 defaults: ["libnetworkstackutilsjni_deps"],
72 static_libs: [
markchien90b45352020-04-21 17:42:47 +080073 "NetworkStaticLibTestsLib",
paulhu64632652020-04-06 14:58:12 +080074 "NetworkStackTestsLib",
75 "TetheringTestsLib",
76 "TetheringIntegrationTestsLib",
77 ],
78 jni_libs: [
79 // For mockito extended
80 "libdexmakerjvmtiagent",
81 "libstaticjvmtiagent",
82 // For NetworkStackUtils included in NetworkStackBase
83 "libnetworkstackutilsjni",
84 ],
markchiene3126482020-10-26 13:53:05 +080085 jarjar_rules: ":TetheringTestsJarJarRules",
paulhu64632652020-04-06 14:58:12 +080086 compile_multilib: "both",
87 manifest: "AndroidManifest_coverage.xml",
markchiene3126482020-10-26 13:53:05 +080088}