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_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19java_test_host { 20 name: "CtsAppSearchHostTestCases", 21 defaults: ["cts_defaults"], 22 static_libs: [ 23 "cts-statsd-atom-host-test-utils", 24 ], 25 srcs: [ 26 "src/**/*.java", 27 ], 28 libs: [ 29 "tools-common-prebuilt", 30 "cts-tradefed", 31 "tradefed", 32 "truth-prebuilt", 33 ], 34 test_suites: [ 35 "cts", 36 "general-tests", 37 "mts-appsearch", 38 ], 39 data: [ 40 ":CtsAppSearchHostTestHelperA", 41 ":CtsAppSearchHostTestHelperB", 42 ], 43 per_testcase_directory: true, 44} 45 46android_test_helper_app { 47 name: "CtsAppSearchHostTestHelperA", 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 "test-apps/AppSearchHostTestHelperA/src/**/*.java", 58 ], 59 test_suites: [ 60 "general-tests", 61 "mts-appsearch", 62 ], 63 manifest: "test-apps/AppSearchHostTestHelperA/AndroidManifest.xml", 64 certificate: ":cts-appsearch-hosttest-helper-cert-a", 65 sdk_version: "test_current", 66 min_sdk_version: "31", 67} 68 69android_test_helper_app { 70 name: "CtsAppSearchHostTestHelperB", 71 defaults: ["cts_defaults"], 72 static_libs: [ 73 "AppSearchTestUtils", 74 "androidx.test.ext.junit", 75 "androidx.test.rules", 76 "compatibility-device-util-axt", 77 "testng", 78 ], 79 srcs: [ 80 "test-apps/AppSearchHostTestHelperB/src/**/*.java", 81 ], 82 test_suites: [ 83 "general-tests", 84 "mts-appsearch", 85 ], 86 manifest: "test-apps/AppSearchHostTestHelperB/AndroidManifest.xml", 87 certificate: ":cts-appsearch-hosttest-helper-cert-b", 88 sdk_version: "test_current", 89 min_sdk_version: "31", 90} 91