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} 44 45android_test_helper_app { 46 name: "CtsAppSearchTestHelperA", 47 defaults: ["cts_defaults"], 48 static_libs: [ 49 "AppSearchTestUtils", 50 "androidx.test.ext.junit", 51 "androidx.test.rules", 52 "compatibility-device-util-axt", 53 "testng", 54 ], 55 srcs: [ 56 "helper-app/src/**/*.java", 57 ":CtsAppSearchTestsAidl", 58 ], 59 test_suites: [ 60 "cts", 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} 71 72android_test_helper_app { 73 name: "CtsAppSearchTestHelperB", 74 defaults: ["cts_defaults"], 75 static_libs: [ 76 "AppSearchTestUtils", 77 "androidx.test.ext.junit", 78 "androidx.test.rules", 79 "compatibility-device-util-axt", 80 "testng", 81 ], 82 srcs: [ 83 "helper-app/src/**/*.java", 84 ":CtsAppSearchTestsAidl", 85 ], 86 test_suites: [ 87 "cts", 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} 98 99filegroup { 100 name: "CtsAppSearchTestsAidl", 101 srcs: [ 102 "aidl/**/*.aidl", 103 ], 104} 105