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_team: "trendy_team_framework_android_packages", 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20android_test { 21 name: "CtsContentProviderTestsWithoutVisibility", 22 srcs: [ 23 "src/**/withoutvisibility/*.kt", 24 "src/**/ContentProviderAppVisibilityTestsBase.kt", 25 ], 26 manifest: "AndroidManifestNoVisibility.xml", 27 static_libs: [ 28 "androidx.test.ext.junit", 29 "androidx.test.rules", 30 "androidx.test.runner", 31 "junit", 32 "kotlin-test", 33 "truth", 34 "androidx.test.uiautomator_uiautomator", 35 ], 36 platform_apis: false, 37 test_suites: [ 38 "cts", 39 "general-tests", 40 ], 41 data: [ 42 ":CtsUnprotectedContentProvider", 43 ":CtsExportedContentProvider", 44 ":CtsUnexportedContentProvider", 45 ], 46 test_config: "AndroidTestNoVisibility.xml", 47 sdk_version: "test_current", 48} 49 50android_test { 51 name: "CtsContentProviderTestsWithVisibility", 52 srcs: [ 53 "src/**/withvisibility/*.kt", 54 "src/**/ContentProviderAppVisibilityTestsBase.kt", 55 ], 56 manifest: "AndroidManifestVisibility.xml", 57 static_libs: [ 58 "androidx.test.ext.junit", 59 "androidx.test.rules", 60 "androidx.test.runner", 61 "junit", 62 "kotlin-test", 63 "truth", 64 "androidx.test.uiautomator_uiautomator", 65 ], 66 platform_apis: false, 67 test_suites: [ 68 "cts", 69 "general-tests", 70 ], 71 data: [ 72 ":CtsUnprotectedContentProvider", 73 ":CtsExportedContentProvider", 74 ":CtsUnexportedContentProvider", 75 ], 76 test_config: "AndroidTestVisibility.xml", 77 sdk_version: "test_current", 78} 79 80android_test { 81 name: "CtsContentProviderMultiUserTest", 82 srcs: [ 83 "src/**/multiuser/*.kt", 84 ], 85 manifest: "AndroidManifestMultiUser.xml", 86 static_libs: [ 87 "androidx.test.ext.junit", 88 "androidx.test.rules", 89 "androidx.test.runner", 90 "junit", 91 "kotlin-test", 92 "truth", 93 "androidx.test.uiautomator_uiautomator", 94 "bedstead", 95 ], 96 platform_apis: false, 97 test_suites: [ 98 "cts", 99 "general-tests", 100 ], 101 data: [ 102 ":CtsMultiuserContentProviderInitial", 103 ":CtsMultiuserContentProviderOther", 104 ], 105 test_config: "AndroidTestMultiUser.xml", 106 sdk_version: "test_current", 107} 108