• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
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//
16java_defaults {
17    name: "TetheringIntegrationTestsDefaults",
18    srcs: [
19        "src/**/*.java",
20        "src/**/*.kt",
21    ],
22    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    ],
35    jni_libs: [
36        // For mockito extended
37        "libdexmakerjvmtiagent",
38        "libstaticjvmtiagent",
39    ],
40    jarjar_rules: ":NetworkStackJarJarRules",
41}
42
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    platform_apis: true,
67    test_suites: ["device-tests", "mts"],
68    test_config: "AndroidTest_Coverage.xml",
69    defaults: ["libnetworkstackutilsjni_deps"],
70    static_libs: [
71        "NetworkStaticLibTestsLib",
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}