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