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_team: "trendy_team_enterprise",
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20android_test {
21    name: "CtsDevicePolicyTestCases",
22    defaults: ["cts_defaults"],
23    min_sdk_version: "29",
24    target_sdk_version: "29",
25    static_libs: [
26        "compatibility-device-util-axt",
27        "ctstestrunner-axt",
28        "cts-net-utils",
29        "truth",
30        "androidx.test.ext.junit",
31        "testng", // used for assertThrows
32        // TODO: Remove this once we remove ui automator usage
33        "androidx.test.uiautomator_uiautomator",
34        "EventLib",
35        "ActivityContext",
36        "Harrier",
37        "DeviceAdminApp",
38        "TestApp",
39        "MetricsRecorder",
40        "statsdprotolite",
41        "Interactive",
42        "flag-junit",
43        "bedstead-flags",
44        "bedstead-root",
45        "device_policy_aconfig_flags_lib",
46        "TestApisReflection",
47        "bedstead-multiuser",
48        "bedstead-enterprise",
49    ],
50    srcs: [
51        "src/**/*.java",
52        "src/**/*.kt",
53    ],
54    test_suites: [
55        "cts",
56        "vts10",
57        "general-tests",
58    ],
59    platform_apis: true,
60}
61
62android_test {
63    name: "CtsInteractiveDevicePolicyTestCases",
64    defaults: ["cts_defaults"],
65    static_libs: [
66        "compatibility-device-util-axt",
67        "ctstestrunner-axt",
68        "cts-net-utils",
69        "truth",
70        "androidx.test.ext.junit",
71        "testng", // used for assertThrows
72        // TODO: Remove this once we remove ui automator usage
73        "androidx.test.uiautomator_uiautomator",
74        "EventLib",
75        "ActivityContext",
76        "Harrier",
77        "DeviceAdminApp",
78        "TestApp",
79        "MetricsRecorder",
80        "statsdprotolite",
81        "Interactive",
82        "flag-junit",
83        "bedstead-flags",
84        "bedstead-root",
85        "bedstead-multiuser",
86        "bedstead-enterprise",
87    ],
88    srcs: [
89        "src/**/*.java",
90        "src/**/*.kt",
91    ],
92    test_suites: [
93        "cts-interactive",
94        "general-tests",
95    ],
96    platform_apis: true,
97    test_config: "InteractiveAndroidTest.xml",
98}
99
100android_test {
101    name: "GtsRootDevicePolicyTestCases",
102    defaults: ["cts_defaults"],
103    min_sdk_version: "29",
104    target_sdk_version: "29",
105    static_libs: [
106        "compatibility-device-util-axt",
107        "ctstestrunner-axt",
108        "cts-net-utils",
109        "truth",
110        "androidx.test.ext.junit",
111        "testng", // used for assertThrows
112        // TODO: Remove this once we remove ui automator usage
113        "androidx.test.uiautomator_uiautomator",
114        "EventLib",
115        "ActivityContext",
116        "Harrier",
117        "DeviceAdminApp",
118        "TestApp",
119        "MetricsRecorder",
120        "statsdprotolite",
121        "Interactive",
122        "flag-junit",
123        "bedstead-flags",
124        "bedstead-root",
125        "bedstead-multiuser",
126        "bedstead-enterprise",
127    ],
128    srcs: [
129        "src/android/devicepolicy/cts/ApplicationHiddenTest.java",
130        "src/android/devicepolicy/cts/utils/PolicyEngineUtils.java",
131        "src/android/devicepolicy/cts/utils/PolicySetResultUtils.java",
132    ],
133    test_suites: [
134        "gts",
135    ],
136    platform_apis: true,
137    test_config: "GtsRootAndroidTest.xml",
138}
139