xref: /aosp_15_r20/cts/tests/appfunctions/Android.bp (revision b7c941bb3fa97aba169d73cee0bed2de8ac964bf)
1// Copyright (C) 2024 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: "CtsAppFunctionTestCases",
21    team: "trendy_team_system_intelligence",
22    defaults: ["cts_defaults"],
23    libs: [
24        "com.android.extensions.appfunctions.stubs",
25    ],
26    static_libs: [
27        "androidx.annotation_annotation",
28        "androidx.test.core",
29        "androidx.test.ext.junit",
30        "androidx.test.rules",
31        "androidx.core_core-ktx",
32        "kotlin-test",
33        "kotlinx_coroutines_test",
34        "appsearch_flags_java_exported_lib",
35        "service-appsearch-for-tests",
36        "compatibility-device-util-axt",
37        "ctstestrunner-axt",
38        "CtsAppFunctionsTestUtils",
39        "CtsAppSearchTestUtils",
40        "flag-junit",
41        "platform-test-annotations",
42        "truth",
43        "android.app.appfunctions.flags-aconfig-java",
44        "bedstead-enterprise",
45        "bedstead-root",
46        "testng",
47    ],
48    asset_dirs: ["assets"],
49    manifest: "AndroidManifest.xml",
50    platform_apis: true,
51    srcs: [
52        "src/**/*.java",
53        "src/**/*.kt",
54    ],
55    test_suites: [
56        "cts",
57        "general-tests",
58    ],
59    data: [
60        ":CtsAppFunctionsTestHelper",
61        ":CtsAppFunctionsSidecarTestHelper",
62        ":CtsAppSearchIndexerTestAppAV1",
63        ":CtsAppSearchIndexerTestAppAV2",
64        ":CtsAppSearchIndexerTestAppAV3",
65        ":CtsAppSearchIndexerTestAppBV1",
66    ],
67}
68
69android_test_helper_app {
70    name: "CtsAppFunctionsTestHelper",
71    defaults: ["cts_defaults"],
72    static_libs: [
73        "CtsAppFunctionsTestUtils",
74        "androidx.test.ext.junit",
75        "androidx.test.rules",
76        "compatibility-device-util-axt",
77        "testng",
78    ],
79    test_suites: [
80        "general-tests",
81    ],
82    asset_dirs: ["helper-app/assets"],
83    manifest: "helper-app/AndroidManifest.xml",
84}
85
86android_test_helper_app {
87    name: "CtsAppFunctionsSidecarTestHelper",
88    defaults: ["cts_defaults"],
89    libs: [
90        "com.android.extensions.appfunctions.stubs",
91    ],
92    static_libs: [
93        "CtsAppFunctionsTestUtils",
94        "androidx.test.ext.junit",
95        "androidx.test.rules",
96        "compatibility-device-util-axt",
97        "testng",
98    ],
99    test_suites: [
100        "general-tests",
101    ],
102    manifest: "helper-app/AndroidManifest_sidecar.xml",
103}
104