blob: 6d465ce1f00a96cfe7eaadd8895caa2d6a13194f [file] [log] [blame]
// Copyright (C) 2021 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
android_library {
name: "cts-companion-common",
srcs: [
"common/src/**/*.kt",
],
manifest: "common/AndroidManifest.xml",
platform_apis: true,
static_libs: [
"androidx.test.ext.junit",
"compatibility-device-util-axt",
"ctstestrunner-axt",
"junit",
"kotlin-test",
],
libs: [
"android.test.base",
"android.test.runner",
],
// TODO(b/211264986) Change both SDK versions to T (33) once it's formally defined.
min_sdk_version: "current",
target_sdk_version: "current",
}
android_test {
name: "CtsCompanionDeviceManagerCoreTestCases",
srcs: [
"core/src/**/*.kt",
],
manifest: "core/AndroidManifest.xml",
test_config: "core/AndroidTest.xml",
platform_apis: true,
static_libs: [
"androidx.test.ext.junit",
"compatibility-device-util-axt",
"cts-companion-common",
"ctstestrunner-axt",
"junit",
"kotlin-test",
],
libs: [
"android.test.base",
"android.test.runner",
],
defaults: ["cts_defaults"],
// Tag this module as a cts test artifact
test_suites: [
"cts",
"general-tests",
],
// TODO(b/211264986) Change both SDK versions to T (33) once it's formally defined.
min_sdk_version: "current",
target_sdk_version: "current",
}
android_test {
name: "CtsCompanionDeviceManagerNoCompanionServicesTestCases",
srcs: [
"noservices/src/**/*.kt",
],
manifest: "noservices/AndroidManifest.xml",
test_config: "noservices/AndroidTest.xml",
platform_apis: true,
static_libs: [
"androidx.test.ext.junit",
"cts-companion-common",
"junit",
"kotlin-test",
],
libs: [
"android.test.base",
"android.test.runner",
],
defaults: ["cts_defaults"],
// Tag this module as a cts test artifact
test_suites: [
"cts",
"general-tests",
],
// TODO(b/211264986) Change both SDK versions to T (33) once it's formally defined.
min_sdk_version: "current",
target_sdk_version: "current",
}
android_test {
name: "CtsCompanionDeviceManagerUiAutomationTestCases",
srcs: [
"uiautomation/src/**/*.kt",
],
manifest: "uiautomation/AndroidManifest.xml",
test_config: "uiautomation/AndroidTest.xml",
platform_apis: true,
static_libs: [
"androidx.test.ext.junit",
"androidx.test.uiautomator",
"compatibility-device-util-axt",
"cts-companion-common",
"ctstestrunner-axt",
"junit",
"kotlin-test",
],
libs: [
"android.test.base",
"android.test.runner",
],
defaults: ["cts_defaults"],
// Tag this module as a cts test artifact
test_suites: [
"cts",
"general-tests",
],
// TODO(b/211264986) Change both SDK versions to T (33) once it's formally defined.
min_sdk_version: "current",
target_sdk_version: "current",
}