blob: 5765c01c43f3c2ba20ac0f7f9348f0de1575138e [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"],
46 visibility: ["//cts/tests/tests/tethering"]
47}
48
49android_test {
50 name: "TetheringIntegrationTests",
51 platform_apis: true,
52 defaults: ["TetheringIntegrationTestsDefaults"],
53 test_suites: [
54 "device-tests",
55 "mts",
56 ],
57 compile_multilib: "both",
58}
59
60// Special version of the tethering tests that includes all tests necessary for code coverage
61// purposes. This is currently the union of TetheringTests, TetheringIntegrationTests and
62// NetworkStackTests.
63android_test {
64 name: "TetheringCoverageTests",
paulhu64632652020-04-06 14:58:12 +080065 platform_apis: true,
66 test_suites: ["device-tests", "mts"],
67 test_config: "AndroidTest_Coverage.xml",
68 defaults: ["libnetworkstackutilsjni_deps"],
69 static_libs: [
markchien90b45352020-04-21 17:42:47 +080070 "NetworkStaticLibTestsLib",
paulhu64632652020-04-06 14:58:12 +080071 "NetworkStackTestsLib",
72 "TetheringTestsLib",
73 "TetheringIntegrationTestsLib",
74 ],
75 jni_libs: [
76 // For mockito extended
77 "libdexmakerjvmtiagent",
78 "libstaticjvmtiagent",
79 // For NetworkStackUtils included in NetworkStackBase
80 "libnetworkstackutilsjni",
81 ],
markchiene3126482020-10-26 13:53:05 +080082 jarjar_rules: ":TetheringTestsJarJarRules",
paulhu64632652020-04-06 14:58:12 +080083 compile_multilib: "both",
84 manifest: "AndroidManifest_coverage.xml",
markchiene3126482020-10-26 13:53:05 +080085}