1// Copyright (C) 2021 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_library { 20 name: "cts-companion-common", 21 srcs: [ 22 "common/src/**/*.kt", 23 ], 24 manifest: "common/AndroidManifest.xml", 25 26 platform_apis: true, 27 static_libs: [ 28 "androidx.test.ext.junit", 29 "compatibility-device-util-axt", 30 "ctstestrunner-axt", 31 "junit", 32 "kotlin-test", 33 ], 34 libs: [ 35 "android.test.base", 36 "android.test.runner", 37 ], 38 39 target_sdk_version: "current", 40} 41 42android_test { 43 name: "CtsCompanionDeviceManagerCoreTestCases", 44 srcs: [ 45 "core/src/**/*.kt", 46 ], 47 manifest: "core/AndroidManifest.xml", 48 test_config: "core/AndroidTest.xml", 49 50 platform_apis: true, 51 static_libs: [ 52 "androidx.test.ext.junit", 53 "compatibility-device-util-axt", 54 "cts-companion-common", 55 "ctstestrunner-axt", 56 "junit", 57 "kotlin-test", 58 ], 59 libs: [ 60 "android.test.base", 61 "android.test.runner", 62 ], 63 64 defaults: ["cts_defaults"], 65 // Tag this module as a cts test artifact 66 test_suites: [ 67 "cts", 68 "general-tests", 69 ], 70 data: [ 71 ":CompanionDeviceTestApp", 72 ], 73 per_testcase_directory: true, 74 75 target_sdk_version: "current", 76} 77 78android_test { 79 name: "CtsCompanionDeviceManagerMultiProcessTestCases", 80 srcs: [ 81 "multiprocess/src/**/*.kt", 82 ], 83 manifest: "multiprocess/AndroidManifest.xml", 84 test_config: "multiprocess/AndroidTest.xml", 85 86 platform_apis: true, 87 static_libs: [ 88 "androidx.test.ext.junit", 89 "cts-companion-common", 90 "junit", 91 "kotlin-test", 92 ], 93 libs: [ 94 "android.test.base", 95 "android.test.runner", 96 ], 97 98 defaults: ["cts_defaults"], 99 // Tag this module as a cts test artifact 100 test_suites: [ 101 "cts", 102 "general-tests", 103 ], 104 105 target_sdk_version: "current", 106} 107 108android_test { 109 name: "CtsCompanionDeviceManagerNoCompanionServicesTestCases", 110 srcs: [ 111 "noservices/src/**/*.kt", 112 ], 113 manifest: "noservices/AndroidManifest.xml", 114 test_config: "noservices/AndroidTest.xml", 115 116 platform_apis: true, 117 static_libs: [ 118 "androidx.test.ext.junit", 119 "cts-companion-common", 120 "junit", 121 "kotlin-test", 122 ], 123 libs: [ 124 "android.test.base", 125 "android.test.runner", 126 ], 127 128 defaults: ["cts_defaults"], 129 // Tag this module as a cts test artifact 130 test_suites: [ 131 "cts", 132 "general-tests", 133 ], 134 135 target_sdk_version: "current", 136} 137 138android_library { 139 name: "cts-companion-uicommon", 140 srcs: [ 141 "uicommon/src/**/*.kt", 142 ], 143 manifest: "uicommon/AndroidManifest.xml", 144 145 platform_apis: true, 146 static_libs: [ 147 "androidx.test.ext.junit", 148 "androidx.test.uiautomator_uiautomator", 149 "compatibility-device-util-axt", 150 "cts-companion-common", 151 "ctstestrunner-axt", 152 "junit", 153 "kotlin-test", 154 ], 155 libs: [ 156 "android.test.base", 157 "android.test.runner", 158 ], 159 160 target_sdk_version: "current", 161} 162 163android_test { 164 name: "CtsCompanionDeviceManagerUiAutomationTestCases", 165 srcs: [ 166 "uiautomation/src/**/*.kt", 167 ], 168 manifest: "uiautomation/AndroidManifest.xml", 169 test_config: "uiautomation/AndroidTest.xml", 170 171 platform_apis: true, 172 static_libs: [ 173 "androidx.test.ext.junit", 174 "androidx.test.uiautomator_uiautomator", 175 "compatibility-device-util-axt", 176 "cts-companion-common", 177 "cts-companion-uicommon", 178 "ctstestrunner-axt", 179 "junit", 180 "kotlin-test", 181 ], 182 libs: [ 183 "android.test.base", 184 "android.test.runner", 185 ], 186 187 defaults: ["cts_defaults"], 188 // Tag this module as a cts test artifact 189 test_suites: [ 190 "cts", 191 "general-tests", 192 ], 193 194 data: [ 195 ":AssociationRevokedTestApp", 196 ], 197 198 target_sdk_version: "current", 199} 200