| // Copyright (C) 2024 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: "CtsAppFunctionTestCases", |
| team: "trendy_team_app_function", |
| defaults: ["cts_defaults"], |
| static_libs: [ |
| "androidx.annotation_annotation", |
| "androidx.test.core", |
| "androidx.test.ext.junit", |
| "androidx.test.rules", |
| "androidx.core_core-ktx", |
| "kotlin-test", |
| "kotlinx_coroutines_test", |
| "appsearch_flags_java_exported_lib", |
| "service-appsearch-for-tests", |
| "compatibility-device-util-axt", |
| "ctstestrunner-axt", |
| "CtsAppFunctionsTestUtils", |
| "CtsAppSearchTestUtils", |
| "flag-junit", |
| "platform-test-annotations", |
| "truth", |
| "android.app.appfunctions.flags-aconfig-java", |
| "bedstead-enterprise", |
| "bedstead-flags", |
| "bedstead-root", |
| "testng", |
| "kotlin-test", |
| "kotlinx_coroutines_test", |
| ], |
| asset_dirs: ["assets"], |
| manifest: "AndroidManifest.xml", |
| srcs: [ |
| "src/**/*.java", |
| "src/**/*.kt", |
| ], |
| test_suites: [ |
| "cts", |
| "general-tests", |
| ], |
| data: [ |
| ":CtsAppFunctionsTestAgentHelper", |
| ":CtsAppFunctionsTestHelper", |
| ":CtsAppFunctionServiceTestHelper", |
| ":CtsAppFunctionsTestHelperDynamicSchema", |
| ":CtsAppFunctionsTestHelperDynamicSchemaLessOneFunction", |
| ":CtsAppFunctionsTestHelperDynamicSchemaNoTopLevelDocs", |
| ":CtsAppSearchIndexerTestAppAV1", |
| ":CtsAppSearchIndexerTestAppAV2", |
| ":CtsAppSearchIndexerTestAppAV3", |
| ":CtsAppSearchIndexerTestAppBV1", |
| ":CtsAppSearchIndexerTestAppAAppLevelFunctionsReg", |
| ":CtsAppFunctionsTestAppMultiServices", |
| ], |
| platform_apis: true, |
| certificate: ":cts-appsearch-helper-cert-a", |
| enable_static_aconfig_pb: true, |
| test_config: "AndroidTest.xml", |
| } |
| |
| android_test { |
| name: "CtsAppFunctionNoQueryAllPackagesTestCases", |
| team: "trendy_team_app_function", |
| defaults: ["cts_defaults"], |
| static_libs: [ |
| "androidx.test.core", |
| "androidx.test.ext.junit", |
| "androidx.test.rules", |
| "androidx.core_core-ktx", |
| "kotlin-test", |
| "kotlinx_coroutines_test", |
| "appsearch_flags_java_exported_lib", |
| "service-appsearch-for-tests", |
| "compatibility-device-util-axt", |
| "ctstestrunner-axt", |
| "CtsAppFunctionsTestUtils", |
| "flag-junit", |
| "platform-test-annotations", |
| "truth", |
| "android.app.appfunctions.flags-aconfig-java", |
| "bedstead-enterprise", |
| "bedstead-flags", |
| "bedstead-root", |
| ], |
| asset_dirs: ["assets"], |
| manifest: "no-query-all-packages-cts/AndroidManifest.xml", |
| srcs: [ |
| "no-query-all-packages-cts/src/**/*.kt", |
| ], |
| test_suites: [ |
| "cts", |
| "general-tests", |
| ], |
| data: [ |
| ":CtsAppFunctionsTestHelper", |
| ":CtsAppFunctionsTestHelperDynamicSchema", |
| ":CtsAppSearchIndexerTestAppAV2", |
| ], |
| platform_apis: true, |
| sdk_version: "test_current", |
| certificate: ":cts-appsearch-helper-cert-a", |
| enable_static_aconfig_pb: true, |
| test_config: "no-query-all-packages-cts/AndroidTest.xml", |
| } |
| |
| android_test_helper_app { |
| name: "CtsAppFunctionsTestHelper", |
| defaults: ["cts_defaults"], |
| static_libs: [ |
| "CtsAppFunctionsTestUtils", |
| "androidx.test.ext.junit", |
| "androidx.test.rules", |
| "compatibility-device-util-axt", |
| "testng", |
| ], |
| test_suites: [ |
| "general-tests", |
| ], |
| asset_dirs: ["helper-app/assets"], |
| manifest: "helper-app/AndroidManifest.xml", |
| certificate: ":cts-appsearch-helper-cert-a", |
| } |
| |
| android_test_helper_app { |
| name: "CtsAppFunctionsTestAgentHelper", |
| defaults: ["cts_defaults"], |
| static_libs: [ |
| "androidx.test.ext.junit", |
| "androidx.test.rules", |
| "compatibility-device-util-axt", |
| "testng", |
| ], |
| test_suites: [ |
| "general-tests", |
| ], |
| certificate: ":cts-appsearch-helper-cert-a", |
| manifest: "helper-agent-app/AndroidManifest.xml", |
| } |
| |
| android_test_helper_app { |
| name: "CtsAppFunctionsTestHelperDynamicSchema", |
| defaults: ["cts_defaults"], |
| static_libs: [ |
| "CtsAppFunctionsTestUtils", |
| "androidx.test.ext.junit", |
| "androidx.test.rules", |
| "compatibility-device-util-axt", |
| "testng", |
| ], |
| test_suites: [ |
| "general-tests", |
| ], |
| asset_dirs: ["helper-app-dynamic-schema/assets"], |
| manifest: "helper-app-dynamic-schema/AndroidManifest.xml", |
| certificate: ":cts-appsearch-helper-cert-a", |
| min_sdk_version: "31", |
| } |
| |
| android_test_helper_app { |
| name: "CtsAppFunctionsTestHelperDynamicSchemaLessOneFunction", |
| defaults: ["cts_defaults"], |
| static_libs: [ |
| "CtsAppFunctionsTestUtils", |
| "androidx.test.ext.junit", |
| "androidx.test.rules", |
| "compatibility-device-util-axt", |
| "testng", |
| ], |
| test_suites: [ |
| "general-tests", |
| ], |
| asset_dirs: ["helper-app-dynamic-schema/assets"], |
| manifest: "helper-app-dynamic-schema/AndroidManifest_lessOneFunction.xml", |
| certificate: ":cts-appsearch-helper-cert-a", |
| min_sdk_version: "31", |
| } |
| |
| android_test_helper_app { |
| name: "CtsAppFunctionsTestHelperDynamicSchemaNoTopLevelDocs", |
| defaults: ["cts_defaults"], |
| static_libs: [ |
| "CtsAppFunctionsTestUtils", |
| "androidx.test.ext.junit", |
| "androidx.test.rules", |
| "compatibility-device-util-axt", |
| "testng", |
| ], |
| test_suites: [ |
| "general-tests", |
| ], |
| asset_dirs: ["helper-app-dynamic-schema/assets"], |
| manifest: "helper-app-dynamic-schema/AndroidManifest_noTopLevelDocs.xml", |
| certificate: ":cts-appsearch-helper-cert-a", |
| min_sdk_version: "31", |
| } |
| |
| android_test_helper_app { |
| name: "CtsAppSearchIndexerTestAppAAppLevelFunctionsReg", |
| defaults: ["cts_defaults"], |
| static_libs: [ |
| "CtsAppFunctionsTestUtils", |
| "androidx.test.ext.junit", |
| "androidx.test.rules", |
| "compatibility-device-util-axt", |
| "testng", |
| ], |
| test_suites: [ |
| "general-tests", |
| ], |
| asset_dirs: ["helper-app-dynamic-schema/assets"], |
| manifest: "helper-app-dynamic-schema/AndroidManifest_appLevelFunctionsOnly.xml", |
| certificate: ":cts-appsearch-helper-cert-a", |
| min_sdk_version: "31", |
| } |
| |
| android_test_helper_app { |
| name: "CtsAppFunctionsTestAppMultiServices", |
| defaults: ["cts_defaults"], |
| static_libs: [ |
| "CtsAppFunctionsTestUtils", |
| "androidx.test.ext.junit", |
| "androidx.test.rules", |
| "compatibility-device-util-axt", |
| "testng", |
| ], |
| test_suites: [ |
| "general-tests", |
| ], |
| asset_dirs: ["helper-app-multi-services/assets"], |
| manifest: "helper-app-multi-services/AndroidManifest.xml", |
| certificate: ":cts-appsearch-helper-cert-a", |
| min_sdk_version: "31", |
| } |
| |
| android_test_helper_app { |
| name: "CtsAppFunctionServiceTestHelper", |
| defaults: ["cts_defaults"], |
| srcs: [ |
| "service-test-helper/src/**/*.kt", |
| ], |
| static_libs: [ |
| "CtsAppFunctionsTestUtils", |
| "androidx.test.ext.junit", |
| "androidx.test.rules", |
| "compatibility-device-util-axt", |
| "testng", |
| ], |
| test_suites: [ |
| "general-tests", |
| ], |
| asset_dirs: ["service-test-helper/assets"], |
| manifest: "service-test-helper/AndroidManifest.xml", |
| certificate: ":cts-appsearch-helper-cert-a", |
| min_sdk_version: "31", |
| } |