1// Copyright (C) 2019 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: "CtsAppSearchTestCases",
21    team: "trendy_team_appsearch",
22    defaults: ["cts_defaults"],
23    static_libs: [
24        "androidx.test.ext.junit",
25        "androidx.test.rules",
26        "appsearch_flags_java_lib",
27        "compatibility-device-util-axt",
28        "CtsAppSearchTestUtils",
29        "flag-junit",
30        "Harrier",
31        "testng",
32    ],
33    srcs: [
34        "src/**/*.java",
35        ":CtsAppSearchTestsAidl",
36    ],
37    test_suites: [
38        "cts",
39        "general-tests",
40        "mts-appsearch",
41        "mcts-appsearch",
42    ],
43    data: [
44        ":CtsAppSearchTestHelperA",
45        ":CtsAppSearchTestHelperB",
46    ],
47    per_testcase_directory: true,
48    min_sdk_version: "31",
49}
50
51android_test_helper_app {
52    name: "CtsAppSearchTestHelperA",
53    defaults: ["cts_defaults"],
54    static_libs: [
55        "CtsAppSearchTestUtils",
56        "androidx.test.ext.junit",
57        "androidx.test.rules",
58        "compatibility-device-util-axt",
59        "testng",
60    ],
61    srcs: [
62        "helper-app/src/**/*.java",
63        ":CtsAppSearchTestsAidl",
64    ],
65    test_suites: [
66        "general-tests",
67        "mts-appsearch",
68    ],
69    manifest: "helper-app/AndroidManifest.xml",
70    aaptflags: [
71        "--rename-manifest-package com.android.cts.appsearch.helper.a",
72    ],
73    certificate: ":cts-appsearch-helper-cert-a",
74    sdk_version: "test_current",
75    min_sdk_version: "31",
76}
77
78android_test_helper_app {
79    name: "CtsAppSearchTestHelperB",
80    defaults: ["cts_defaults"],
81    static_libs: [
82        "CtsAppSearchTestUtils",
83        "androidx.test.ext.junit",
84        "androidx.test.rules",
85        "compatibility-device-util-axt",
86        "testng",
87    ],
88    srcs: [
89        "helper-app/src/**/*.java",
90        ":CtsAppSearchTestsAidl",
91    ],
92    test_suites: [
93        "general-tests",
94        "mts-appsearch",
95    ],
96    manifest: "helper-app/AndroidManifest.xml",
97    aaptflags: [
98        "--rename-manifest-package com.android.cts.appsearch.helper.b",
99    ],
100    certificate: ":cts-appsearch-helper-cert-b",
101    sdk_version: "test_current",
102    min_sdk_version: "31",
103}
104
105filegroup {
106    name: "CtsAppSearchTestsAidl",
107    srcs: [
108        "aidl/**/*.aidl",
109    ],
110}