blob: e0009ddc1c173157071019096a84ec083d48f6c2 [file] [log] [blame]
Lorenzo Colittieb733102020-03-27 11:07:01 +00001//
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//
paulhud1ebb1e2020-04-06 14:58:12 +080016java_defaults {
17 name: "TetheringIntegrationTestsDefaults",
Lorenzo Colittieb733102020-03-27 11:07:01 +000018 srcs: [
19 "src/**/*.java",
20 "src/**/*.kt",
21 ],
Lorenzo Colittieb733102020-03-27 11:07:01 +000022 static_libs: [
23 "NetworkStackApiStableLib",
24 "androidx.test.rules",
25 "frameworks-base-testutils",
26 "mockito-target-extended-minus-junit4",
27 "net-tests-utils",
28 "testables",
29 ],
30 libs: [
31 "android.test.runner",
32 "android.test.base",
33 "android.test.mock",
34 ],
Automerger Merge Workerb33911c2020-04-08 07:13:44 +000035 jni_libs: [
36 // For mockito extended
37 "libdexmakerjvmtiagent",
38 "libstaticjvmtiagent",
39 ],
paulhud1ebb1e2020-04-06 14:58:12 +080040 jarjar_rules: ":NetworkStackJarJarRules",
Lorenzo Colittieb733102020-03-27 11:07:01 +000041}
paulhud1ebb1e2020-04-06 14:58:12 +080042
43android_library {
44 name: "TetheringIntegrationTestsLib",
45 platform_apis: true,
46 defaults: ["TetheringIntegrationTestsDefaults"],
Baligh Uddin44cbfe92020-11-05 02:08:39 +000047 visibility: [
48 "//cts/tests/tests/tethering",
49 "//packages/modules/Connectivity/tests/cts/tethering"
50 ]
paulhud1ebb1e2020-04-06 14:58:12 +080051}
52
53android_test {
54 name: "TetheringIntegrationTests",
55 platform_apis: true,
56 defaults: ["TetheringIntegrationTestsDefaults"],
57 test_suites: [
58 "device-tests",
59 "mts",
60 ],
61 compile_multilib: "both",
62}
63
64// Special version of the tethering tests that includes all tests necessary for code coverage
65// purposes. This is currently the union of TetheringTests, TetheringIntegrationTests and
66// NetworkStackTests.
67android_test {
68 name: "TetheringCoverageTests",
paulhud1ebb1e2020-04-06 14:58:12 +080069 platform_apis: true,
70 test_suites: ["device-tests", "mts"],
71 test_config: "AndroidTest_Coverage.xml",
72 defaults: ["libnetworkstackutilsjni_deps"],
73 static_libs: [
Mark Chiend0ed7dd2020-04-22 09:23:04 +000074 "NetworkStaticLibTestsLib",
paulhud1ebb1e2020-04-06 14:58:12 +080075 "NetworkStackTestsLib",
76 "TetheringTestsLib",
77 "TetheringIntegrationTestsLib",
78 ],
79 jni_libs: [
80 // For mockito extended
81 "libdexmakerjvmtiagent",
82 "libstaticjvmtiagent",
83 // For NetworkStackUtils included in NetworkStackBase
84 "libnetworkstackutilsjni",
85 ],
86 compile_multilib: "both",
87 manifest: "AndroidManifest_coverage.xml",
88}