• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2024 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_framework_backstage_power",
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20java_test_host {
21    name: "CtsHostsideNetworkPolicyTests",
22    defaults: ["cts_defaults"],
23    // Only compile source java files in this apk.
24    srcs: [
25        "src/**/*.java",
26        ":ArgumentConstants",
27    ],
28    libs: [
29        "cts-tradefed",
30        "tradefed",
31    ],
32    static_libs: [
33        "modules-utils-build-testing",
34        "flag-junit-host",
35        "net_flags_host_lib",
36    ],
37    // Tag this module as a cts test artifact
38    test_suites: [
39        "cts",
40        "general-tests",
41        "sts",
42    ],
43    device_common_data: [
44        ":CtsHostsideNetworkPolicyTestsApp",
45        ":CtsHostsideNetworkPolicyTestsApp2",
46    ],
47    per_testcase_directory: true,
48}
49
50test_module_config_host {
51    name: "CtsHostsideNetworkPolicyTests_com_android_server_job",
52    base: "CtsHostsideNetworkPolicyTests",
53    test_suites: ["general-tests"],
54    include_filters: [
55        "com.android.cts.netpolicy.HostsideRestrictBackgroundNetworkTests#testNonMeteredNetworkAccess_expeditedJob",
56        "com.android.cts.netpolicy.HostsideRestrictBackgroundNetworkTests#testMeteredNetworkAccess_expeditedJob",
57    ],
58}
59
60test_module_config_host {
61    name: "CtsHostsideNetworkPolicyTests_NoRequiresDevice",
62    base: "CtsHostsideNetworkPolicyTests",
63    test_suites: ["general-tests"],
64    exclude_annotations: [
65        "android.platform.test.annotations.RequiresDevice",
66        "androidx.test.filters.RequiresDevice",
67    ],
68}
69