• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2019 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package {
16    default_team: "trendy_team_fwk_core_networking",
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20java_defaults {
21    name: "CtsTetheringTestDefaults",
22    defaults: [
23        "cts_defaults",
24        "framework-connectivity-test-defaults",
25    ],
26
27    libs: [
28        "android.test.base.stubs.system",
29    ],
30
31    srcs: [
32        "src/**/*.java",
33    ],
34
35    static_libs: [
36        "TetheringCommonTests",
37        "com.android.net.flags-aconfig-java",
38        "compatibility-device-util-axt",
39        "cts-net-utils",
40        "net-tests-utils",
41        "ctstestrunner-axt",
42        "junit",
43        "junit-params",
44    ],
45
46    jni_libs: [
47        // For mockito extended
48        "libdexmakerjvmtiagent",
49        "libstaticjvmtiagent",
50    ],
51
52    // Change to system current when TetheringManager move to bootclass path.
53    platform_apis: true,
54    min_sdk_version: "30",
55    host_required: ["net-tests-utils-host-common"],
56}
57
58// Tethering CTS tests for development and release. These tests always target the platform SDK
59// version, and are subject to all the restrictions appropriate to that version. Before SDK
60// finalization, these tests have a min_sdk_version of 10000, but they can still be installed on
61// release devices as their min_sdk_version is set to a production version.
62android_test {
63    name: "CtsTetheringTest",
64    defaults: ["CtsTetheringTestDefaults"],
65
66    static_libs: [
67        "TetheringIntegrationTestsLib",
68    ],
69
70    // Tag this module as a cts test artifact
71    test_suites: [
72        "cts",
73        "mts-tethering",
74        "mcts-tethering",
75        "general-tests",
76    ],
77
78    test_config_template: "AndroidTestTemplate.xml",
79
80    // Include both the 32 and 64 bit versions
81    compile_multilib: "both",
82    jarjar_rules: ":NetworkStackJarJarRules",
83}
84