blob: 6b751afdf58bff6918b56c9d962e02b8d46f7e20 [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"],
47 visibility: ["//cts/tests/tests/tethering"]
48}
49
50android_test {
51 name: "TetheringIntegrationTests",
52 platform_apis: true,
53 defaults: ["TetheringIntegrationTestsDefaults"],
54 test_suites: [
55 "device-tests",
56 "mts",
57 ],
58 compile_multilib: "both",
59}
60
61// Special version of the tethering tests that includes all tests necessary for code coverage
62// purposes. This is currently the union of TetheringTests, TetheringIntegrationTests and
63// NetworkStackTests.
64android_test {
65 name: "TetheringCoverageTests",
66 certificate: "platform",
67 platform_apis: true,
68 test_suites: ["device-tests", "mts"],
69 test_config: "AndroidTest_Coverage.xml",
70 defaults: ["libnetworkstackutilsjni_deps"],
71 static_libs: [
72 "NetworkStackTestsLib",
73 "TetheringTestsLib",
74 "TetheringIntegrationTestsLib",
75 ],
76 jni_libs: [
77 // For mockito extended
78 "libdexmakerjvmtiagent",
79 "libstaticjvmtiagent",
80 // For NetworkStackUtils included in NetworkStackBase
81 "libnetworkstackutilsjni",
82 ],
83 compile_multilib: "both",
84 manifest: "AndroidManifest_coverage.xml",
85}