• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2012 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_applicable_licenses: ["Android-Apache-2.0"],
17}
18
19android_test {
20    name: "CtsDevicePolicyTestCases",
21    defaults: ["cts_defaults"],
22    min_sdk_version: "29",
23    target_sdk_version: "29",
24    static_libs: [
25        "compatibility-device-util-axt",
26        "ctstestrunner-axt",
27        "cts-net-utils",
28        "truth-prebuilt",
29        "androidx.test.ext.junit",
30        "testng", // used for assertThrows
31        // TODO: Remove this once we remove ui automator usage
32        "androidx.test.uiautomator_uiautomator",
33        "EventLib",
34        "ActivityContext",
35        "Harrier",
36        "DeviceAdminApp",
37        "TestApp",
38        "MetricsRecorder",
39        "statsdprotolite",
40        "Interactive",
41    ],
42    srcs: ["src/**/*.java"],
43    test_suites: [
44        "cts",
45        "vts10",
46        "general-tests",
47    ],
48    platform_apis: true,
49}
50
51android_test {
52    name: "CtsInteractiveDevicePolicyTestCases",
53    defaults: ["cts_defaults"],
54    static_libs: [
55        "compatibility-device-util-axt",
56        "ctstestrunner-axt",
57        "cts-net-utils",
58        "truth-prebuilt",
59        "androidx.test.ext.junit",
60        "testng", // used for assertThrows
61        // TODO: Remove this once we remove ui automator usage
62        "androidx.test.uiautomator_uiautomator",
63        "EventLib",
64        "ActivityContext",
65        "Harrier",
66        "DeviceAdminApp",
67        "TestApp",
68        "MetricsRecorder",
69        "statsdprotolite",
70        "Interactive",
71    ],
72    srcs: ["src/**/*.java"],
73    test_suites: [
74        "cts-interactive",
75        "general-tests",
76    ],
77    platform_apis: true,
78    test_config: "InteractiveAndroidTest.xml",
79}
80