1// Copyright (C) 2008 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_test { 20 name: "CtsAppTestCases", 21 defaults: ["cts_defaults"], 22 libs: [ 23 "android.test.runner", 24 "org.apache.http.legacy", 25 "android.test.base", 26 ], 27 static_libs: [ 28 "compatibility-device-util-axt", 29 "ctstestrunner-axt", 30 "ctstestserver", 31 "cts-opengl-util", 32 "cts-wm-util", 33 "mockito-target-minus-junit4", 34 "androidx.test.ext.junit", 35 "androidx.test.rules", 36 "platform-test-annotations", 37 "platformprotosnano", 38 "permission-test-util-lib", 39 "CtsAppTestStubsShared", 40 ], 41 srcs: [ 42 "src/**/*.java", 43 "src/**/*.kt", 44 "NotificationListener/src/com/android/test/notificationlistener/INotificationUriAccessService.aidl", 45 ], 46 // Tag this module as a cts test artifact 47 test_suites: [ 48 "cts", 49 "general-tests", 50 "sts" 51 ], 52 instrumentation_for: "CtsAppTestStubs", 53 sdk_version: "test_current", 54 min_sdk_version: "14", 55 // Disable coverage since it pushes us over the dex limit and we don't 56 // actually need to measure the tests themselves. 57 jacoco: { exclude_filter: ["**"] } 58} 59 60android_test { 61 name: "CtsDownloadManagerApi28", 62 defaults: ["cts_defaults"], 63 libs: [ 64 "android.test.runner", 65 "org.apache.http.legacy", 66 "android.test.base", 67 ], 68 static_libs: [ 69 "compatibility-device-util-axt", 70 "ctstestrunner-axt", 71 "ctstestserver", 72 "mockito-target-minus-junit4", 73 "androidx.test.rules", 74 "platform-test-annotations", 75 "androidx.test.rules", 76 ], 77 srcs: [ 78 "DownloadManagerApi28Test/src/**/*.java", 79 "src/android/app/cts/DownloadManagerTestBase.java", 80 ], 81 resource_dirs: ["app/res"], 82 asset_dirs: ["app/assets"], 83 // Tag this module as a cts test artifact 84 test_suites: [ 85 "cts", 86 "general-tests", 87 ], 88 sdk_version: "test_current", 89 min_sdk_version: "14", 90 manifest: "DownloadManagerApi28Test/AndroidManifest.xml", 91 test_config: "DownloadManagerApi28Test/AndroidTest.xml", 92 lint: { 93 baseline_filename: "lint-baseline-api-28.xml", 94 }, 95} 96 97android_test { 98 name: "CtsDownloadManagerInstaller", 99 defaults: ["cts_defaults"], 100 libs: [ 101 "android.test.runner", 102 "org.apache.http.legacy", 103 "android.test.base", 104 ], 105 static_libs: [ 106 "compatibility-device-util-axt", 107 "ctstestrunner-axt", 108 "ctstestserver", 109 "mockito-target-minus-junit4", 110 "androidx.test.rules", 111 "platform-test-annotations", 112 "androidx.test.rules", 113 ], 114 srcs: [ 115 "DownloadManagerInstallerTest/src/**/*.java", 116 "src/android/app/cts/DownloadManagerTestBase.java", 117 ], 118 resource_dirs: ["app/res"], 119 asset_dirs: ["app/assets"], 120 // Tag this module as a cts test artifact 121 test_suites: [ 122 "cts", 123 "general-tests", 124 ], 125 sdk_version: "test_current", 126 min_sdk_version: "14", 127 manifest: "DownloadManagerInstallerTest/AndroidManifest.xml", 128 test_config: "DownloadManagerInstallerTest/AndroidTest.xml", 129 lint: { 130 baseline_filename: "lint-baseline-installer.xml", 131 }, 132} 133 134android_test { 135 name: "CtsAppExitTestCases", 136 defaults: ["cts_defaults"], 137 libs: [ 138 "android.test.runner", 139 "org.apache.http.legacy", 140 "android.test.base", 141 ], 142 static_libs: [ 143 "ub-uiautomator", 144 "androidx.test.rules", 145 "compatibility-device-util-axt", 146 "CtsExternalServiceCommon", 147 "cts-wm-util", 148 "libprotobuf-java-lite", 149 ], 150 srcs: [ 151 ":libtombstone_proto-src", 152 "AppExitTest/src/**/*.java", 153 "src/android/app/cts/android/app/cts/tools/WatchUidRunner.java", 154 ], 155 jarjar_rules: "AppExitTest/jarjar-rules.txt", 156 test_suites: [ 157 "cts", 158 "general-tests", 159 ], 160 manifest: "AppExitTest/AndroidManifest.xml", 161 test_config: "AppExitTest/AndroidTest.xml", 162 platform_apis: true, 163} 164