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