| // Copyright (C) 2019 The Android Open Source Project |
| // |
| // Licensed under the Apache License, Version 2.0 (the "License"); |
| // you may not use this file except in compliance with the License. |
| // You may obtain a copy of the License at |
| // |
| // http://www.apache.org/licenses/LICENSE-2.0 |
| // |
| // Unless required by applicable law or agreed to in writing, software |
| // distributed under the License is distributed on an "AS IS" BASIS, |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| // See the License for the specific language governing permissions and |
| // limitations under the License. |
| |
| package { |
| default_applicable_licenses: ["Android-Apache-2.0"], |
| } |
| |
| android_test { |
| name: "CtsAppSearchTestCases", |
| team: "trendy_team_appsearch", |
| defaults: ["cts_defaults"], |
| static_libs: [ |
| "androidx.test.ext.junit", |
| "androidx.test.rules", |
| "appsearch_flags_java_exported_lib", |
| "compatibility-device-util-axt", |
| "CtsAppSearchTestUtils", |
| "flag-junit", |
| "Harrier", |
| "testng", |
| ], |
| srcs: [ |
| "src/**/*.java", |
| ":CtsAppSearchTestsAidl", |
| ], |
| test_suites: [ |
| "cts", |
| "general-tests", |
| "mts-appsearch", |
| "mcts-appsearch", |
| ], |
| data: [ |
| ":CtsAppSearchTestHelperA", |
| ":CtsAppSearchTestHelperB", |
| ":CtsAppSearchIndexerTestAppAV1", |
| ":CtsAppSearchIndexerTestAppAV2", |
| ":CtsAppSearchIndexerTestAppAV3", |
| ":CtsAppSearchIndexerTestAppBV1", |
| ], |
| per_testcase_directory: true, |
| min_sdk_version: "31", |
| // For testing @SystemApi(client = MODULE_LIBRARIES) APIs |
| platform_apis: true, |
| } |
| |
| android_test_helper_app { |
| name: "CtsAppSearchTestHelperA", |
| defaults: ["cts_defaults"], |
| static_libs: [ |
| "CtsAppSearchTestUtils", |
| "androidx.test.ext.junit", |
| "androidx.test.rules", |
| "compatibility-device-util-axt", |
| "testng", |
| ], |
| srcs: [ |
| "helper-app/src/**/*.java", |
| ":CtsAppSearchTestsAidl", |
| ], |
| test_suites: [ |
| "general-tests", |
| "mts-appsearch", |
| ], |
| manifest: "helper-app/AndroidManifest.xml", |
| aaptflags: [ |
| "--rename-manifest-package com.android.cts.appsearch.helper.a", |
| ], |
| certificate: ":cts-appsearch-helper-cert-a", |
| sdk_version: "test_current", |
| min_sdk_version: "31", |
| } |
| |
| android_test_helper_app { |
| name: "CtsAppSearchTestHelperB", |
| defaults: ["cts_defaults"], |
| static_libs: [ |
| "CtsAppSearchTestUtils", |
| "androidx.test.ext.junit", |
| "androidx.test.rules", |
| "compatibility-device-util-axt", |
| "testng", |
| ], |
| srcs: [ |
| "helper-app/src/**/*.java", |
| ":CtsAppSearchTestsAidl", |
| ], |
| test_suites: [ |
| "general-tests", |
| "mts-appsearch", |
| ], |
| manifest: "helper-app/AndroidManifest.xml", |
| aaptflags: [ |
| "--rename-manifest-package com.android.cts.appsearch.helper.b", |
| ], |
| certificate: ":cts-appsearch-helper-cert-b", |
| sdk_version: "test_current", |
| min_sdk_version: "31", |
| } |
| |
| android_test_helper_app { |
| name: "CtsAppSearchIndexerTestAppAV1", |
| defaults: ["cts_defaults"], |
| srcs: [ |
| "indexer-test-app/src/**/*.java", |
| ], |
| test_suites: [ |
| "general-tests", |
| "mts-appsearch", |
| ], |
| manifest: "indexer-test-app/AndroidManifest_A_v1.xml", |
| certificate: ":cts-appsearch-helper-cert-a", |
| sdk_version: "test_current", |
| min_sdk_version: "31", |
| } |
| |
| android_test_helper_app { |
| name: "CtsAppSearchIndexerTestAppAV2", |
| defaults: ["cts_defaults"], |
| srcs: [ |
| "indexer-test-app/src/**/*.java", |
| ], |
| test_suites: [ |
| "general-tests", |
| "mts-appsearch", |
| ], |
| asset_dirs: ["indexer-test-app/asset_dir_a_v2"], |
| manifest: "indexer-test-app/AndroidManifest_A_v2.xml", |
| certificate: ":cts-appsearch-helper-cert-a", |
| sdk_version: "test_current", |
| min_sdk_version: "31", |
| } |
| |
| android_test_helper_app { |
| name: "CtsAppSearchIndexerTestAppAV3", |
| defaults: ["cts_defaults"], |
| srcs: [ |
| "indexer-test-app/src/**/*.java", |
| ], |
| test_suites: [ |
| "general-tests", |
| "mts-appsearch", |
| ], |
| asset_dirs: ["indexer-test-app/asset_dir_a_v3"], |
| manifest: "indexer-test-app/AndroidManifest_A_v3.xml", |
| certificate: ":cts-appsearch-helper-cert-a", |
| sdk_version: "test_current", |
| min_sdk_version: "31", |
| } |
| |
| android_test_helper_app { |
| name: "CtsAppSearchIndexerTestAppBV1", |
| defaults: ["cts_defaults"], |
| srcs: [ |
| "indexer-test-app/src/**/*.java", |
| ], |
| test_suites: [ |
| "general-tests", |
| "mts-appsearch", |
| ], |
| asset_dirs: ["indexer-test-app/asset_dir_b_v1"], |
| manifest: "indexer-test-app/AndroidManifest_B_v1.xml", |
| certificate: ":cts-appsearch-helper-cert-b", |
| sdk_version: "test_current", |
| min_sdk_version: "31", |
| } |
| |
| filegroup { |
| name: "CtsAppSearchTestsAidl", |
| srcs: [ |
| "aidl/**/*.aidl", |
| ], |
| } |