1// Copyright (C) 2019 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: "CtsAppSearchTestCases", 21 defaults: ["cts_defaults"], 22 static_libs: [ 23 "AppSearchTestUtils", 24 "androidx.test.ext.junit", 25 "androidx.test.rules", 26 "compatibility-device-util-axt", 27 "testng", 28 ], 29 srcs: [ 30 "src/**/*.java", 31 ":CtsAppSearchTestsAidl", 32 ], 33 test_suites: [ 34 "cts", 35 "general-tests", 36 "mts-appsearch", 37 ], 38 data: [ 39 ":CtsAppSearchTestHelperA", 40 ":CtsAppSearchTestHelperB", 41 ], 42 per_testcase_directory: true, 43 min_sdk_version: "31", 44} 45 46android_test_helper_app { 47 name: "CtsAppSearchTestHelperA", 48 defaults: ["cts_defaults"], 49 static_libs: [ 50 "AppSearchTestUtils", 51 "androidx.test.ext.junit", 52 "androidx.test.rules", 53 "compatibility-device-util-axt", 54 "testng", 55 ], 56 srcs: [ 57 "helper-app/src/**/*.java", 58 ":CtsAppSearchTestsAidl", 59 ], 60 test_suites: [ 61 "general-tests", 62 "mts-appsearch", 63 ], 64 manifest: "helper-app/AndroidManifest.xml", 65 aaptflags: [ 66 "--rename-manifest-package com.android.cts.appsearch.helper.a", 67 ], 68 certificate: ":cts-appsearch-helper-cert-a", 69 sdk_version: "test_current", 70 min_sdk_version: "31", 71} 72 73android_test_helper_app { 74 name: "CtsAppSearchTestHelperB", 75 defaults: ["cts_defaults"], 76 static_libs: [ 77 "AppSearchTestUtils", 78 "androidx.test.ext.junit", 79 "androidx.test.rules", 80 "compatibility-device-util-axt", 81 "testng", 82 ], 83 srcs: [ 84 "helper-app/src/**/*.java", 85 ":CtsAppSearchTestsAidl", 86 ], 87 test_suites: [ 88 "general-tests", 89 "mts-appsearch", 90 ], 91 manifest: "helper-app/AndroidManifest.xml", 92 aaptflags: [ 93 "--rename-manifest-package com.android.cts.appsearch.helper.b", 94 ], 95 certificate: ":cts-appsearch-helper-cert-b", 96 sdk_version: "test_current", 97 min_sdk_version: "31", 98} 99 100filegroup { 101 name: "CtsAppSearchTestsAidl", 102 srcs: [ 103 "aidl/**/*.aidl", 104 ], 105} 106