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: "33", 24 target_sdk_version: "33", 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 "DeviceAdminApp", 37 "TestApp", 38 "MetricsRecorder", 39 "statsdprotolite", 40 "Interactive", 41 "flag-junit", 42 "bedstead-flags", 43 "bedstead-root", 44 "device_policy_aconfig_flags_lib", 45 "TestApisReflection", 46 "bedstead-enterprise", 47 "bedstead-contentsuggestions", 48 "bedstead-bluetooth", 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 "DeviceAdminApp", 77 "TestApp", 78 "MetricsRecorder", 79 "statsdprotolite", 80 "Interactive", 81 "flag-junit", 82 "bedstead-flags", 83 "bedstead-root", 84 "bedstead-enterprise", 85 "bedstead-contentsuggestions", 86 "bedstead-bluetooth", 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 "DeviceAdminApp", 117 "TestApp", 118 "MetricsRecorder", 119 "statsdprotolite", 120 "Interactive", 121 "flag-junit", 122 "bedstead-flags", 123 "bedstead-root", 124 "bedstead-enterprise", 125 ], 126 srcs: [ 127 "src/android/devicepolicy/cts/ApplicationHiddenTest.java", 128 "src/android/devicepolicy/cts/utils/PolicyEngineUtils.java", 129 "src/android/devicepolicy/cts/utils/PolicySetResultUtils.java", 130 ], 131 test_suites: [ 132 "gts", 133 ], 134 platform_apis: true, 135 test_config: "GtsRootAndroidTest.xml", 136} 137