blob: 25cc5aef02a66e84e3463d8f5d06a111ba8e04ed [file] [log] [blame]
// Copyright (C) 2008 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.
android_test {
name: "CtsAppTestCases",
defaults: ["cts_defaults"],
libs: [
"android.test.runner",
"org.apache.http.legacy",
"android.test.base",
],
static_libs: [
"compatibility-device-util-axt",
"ctstestrunner-axt",
"ctstestserver",
"cts-opengl-util",
"cts-wm-util",
"mockito-target-minus-junit4",
"androidx.test.ext.junit",
"androidx.test.rules",
"platform-test-annotations",
"platformprotosnano",
"permission-test-util-lib",
"CtsAppTestStubsShared",
],
srcs: [
"src/**/*.java",
"src/**/*.kt",
"NotificationListener/src/com/android/test/notificationlistener/INotificationUriAccessService.aidl",
],
// Tag this module as a cts test artifact
test_suites: [
"cts",
"general-tests",
],
instrumentation_for: "CtsAppTestStubs",
sdk_version: "test_current",
min_sdk_version: "14",
// Disable coverage since it pushes us over the dex limit and we don't
// actually need to measure the tests themselves.
jacoco: { exclude_filter: ["**"] }
}
android_test {
name: "CtsDownloadManagerApi28",
defaults: ["cts_defaults"],
libs: [
"android.test.runner",
"org.apache.http.legacy",
"android.test.base",
],
static_libs: [
"compatibility-device-util-axt",
"ctstestrunner-axt",
"ctstestserver",
"mockito-target-minus-junit4",
"androidx.test.rules",
"platform-test-annotations",
"androidx.test.rules",
],
srcs: [
"DownloadManagerApi28Test/src/**/*.java",
"src/android/app/cts/DownloadManagerTestBase.java",
],
resource_dirs: ["app/res"],
asset_dirs: ["app/assets"],
// Tag this module as a cts test artifact
test_suites: [
"cts",
"general-tests",
],
sdk_version: "test_current",
min_sdk_version: "14",
manifest: "DownloadManagerApi28Test/AndroidManifest.xml",
test_config: "DownloadManagerApi28Test/AndroidTest.xml",
}
android_test {
name: "CtsDownloadManagerInstaller",
defaults: ["cts_defaults"],
libs: [
"android.test.runner",
"org.apache.http.legacy",
"android.test.base",
],
static_libs: [
"compatibility-device-util-axt",
"ctstestrunner-axt",
"ctstestserver",
"mockito-target-minus-junit4",
"androidx.test.rules",
"platform-test-annotations",
"androidx.test.rules",
],
srcs: [
"DownloadManagerInstallerTest/src/**/*.java",
"src/android/app/cts/DownloadManagerTestBase.java",
],
resource_dirs: ["app/res"],
asset_dirs: ["app/assets"],
// Tag this module as a cts test artifact
test_suites: [
"cts",
"general-tests",
],
sdk_version: "test_current",
min_sdk_version: "14",
manifest: "DownloadManagerInstallerTest/AndroidManifest.xml",
test_config: "DownloadManagerInstallerTest/AndroidTest.xml",
}
android_test {
name: "CtsAppExitTestCases",
defaults: ["cts_defaults"],
libs: [
"android.test.runner",
"org.apache.http.legacy",
"android.test.base",
],
static_libs: [
"ub-uiautomator",
"androidx.test.rules",
"compatibility-device-util-axt",
"CtsExternalServiceCommon",
"cts-wm-util",
],
srcs: [
"AppExitTest/src/**/*.java",
"src/android/app/cts/android/app/cts/tools/WatchUidRunner.java",
],
test_suites: [
"cts",
"general-tests",
],
manifest: "AppExitTest/AndroidManifest.xml",
test_config: "AppExitTest/AndroidTest.xml",
platform_apis: true,
}