1// Copyright (C) 2021 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
19java_test_host {
20    name: "CtsAppSearchHostTestCases",
21    team: "trendy_team_appsearch",
22    defaults: ["cts_defaults"],
23    static_libs: [
24        "cts-statsd-atom-host-test-utils",
25    ],
26    srcs: [
27        "src/**/*.java",
28    ],
29    libs: [
30        "tools-common-prebuilt",
31        "cts-tradefed",
32        "tradefed",
33        "truth",
34    ],
35    test_suites: [
36        "cts",
37        "general-tests",
38        "mts-appsearch",
39        "mcts-appsearch",
40    ],
41    data: [
42        ":CtsAppSearchHostTestHelperA",
43        ":CtsAppSearchHostTestHelperB",
44    ],
45    per_testcase_directory: true,
46}
47
48android_test_helper_app {
49    name: "CtsAppSearchHostTestHelperA",
50    defaults: ["cts_defaults"],
51    static_libs: [
52        "CtsAppSearchTestUtils",
53        "androidx.test.ext.junit",
54        "androidx.test.rules",
55        "compatibility-device-util-axt",
56        "testng",
57        "service-appsearch-for-tests",
58    ],
59    srcs: [
60        "test-apps/AppSearchHostTestHelperA/src/**/*.java",
61    ],
62    test_suites: [
63        "general-tests",
64        "mts-appsearch",
65    ],
66    manifest: "test-apps/AppSearchHostTestHelperA/AndroidManifest.xml",
67    certificate: ":cts-appsearch-hosttest-helper-cert-a",
68    sdk_version: "test_current",
69    min_sdk_version: "31",
70}
71
72android_test_helper_app {
73    name: "CtsAppSearchHostTestHelperB",
74    defaults: ["cts_defaults"],
75    static_libs: [
76        "CtsAppSearchTestUtils",
77        "androidx.test.ext.junit",
78        "androidx.test.rules",
79        "compatibility-device-util-axt",
80        "testng",
81    ],
82    srcs: [
83        "test-apps/AppSearchHostTestHelperB/src/**/*.java",
84    ],
85    test_suites: [
86        "general-tests",
87        "mts-appsearch",
88    ],
89    manifest: "test-apps/AppSearchHostTestHelperB/AndroidManifest.xml",
90    certificate: ":cts-appsearch-hosttest-helper-cert-b",
91    sdk_version: "test_current",
92    min_sdk_version: "31",
93}
94