blob: 3305ed08448103fdadfbb558ee8e54a7c4e8aaaa [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",
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 ],
paulhud584d2f2020-04-08 09:57:57 +080035 jni_libs: [
36 // For mockito extended
37 "libdexmakerjvmtiagent",
38 "libstaticjvmtiagent",
39 ],
paulhu64632652020-04-06 14:58:12 +080040 jarjar_rules: ":NetworkStackJarJarRules",
Lorenzo Colitti4896e322020-03-17 01:07:47 +090041}
paulhu64632652020-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: [
markchien90b45352020-04-21 17:42:47 +080072 "NetworkStaticLibTestsLib",
paulhu64632652020-04-06 14:58:12 +080073 "NetworkStackTestsLib",
74 "TetheringTestsLib",
75 "TetheringIntegrationTestsLib",
76 ],
77 jni_libs: [
78 // For mockito extended
79 "libdexmakerjvmtiagent",
80 "libstaticjvmtiagent",
81 // For NetworkStackUtils included in NetworkStackBase
82 "libnetworkstackutilsjni",
83 ],
84 compile_multilib: "both",
85 manifest: "AndroidManifest_coverage.xml",
86}