// 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_system_intelligence", defaults: ["cts_defaults"], libs: [ "com.android.extensions.appfunctions.stubs", ], 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-root", "testng", ], asset_dirs: ["assets"], manifest: "AndroidManifest.xml", platform_apis: true, srcs: [ "src/**/*.java", "src/**/*.kt", ], test_suites: [ "cts", "general-tests", ], data: [ ":CtsAppFunctionsTestHelper", ":CtsAppFunctionsSidecarTestHelper", ":CtsAppSearchIndexerTestAppAV1", ":CtsAppSearchIndexerTestAppAV2", ":CtsAppSearchIndexerTestAppAV3", ":CtsAppSearchIndexerTestAppBV1", ], } 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", } android_test_helper_app { name: "CtsAppFunctionsSidecarTestHelper", defaults: ["cts_defaults"], libs: [ "com.android.extensions.appfunctions.stubs", ], static_libs: [ "CtsAppFunctionsTestUtils", "androidx.test.ext.junit", "androidx.test.rules", "compatibility-device-util-axt", "testng", ], test_suites: [ "general-tests", ], manifest: "helper-app/AndroidManifest_sidecar.xml", }