xref: /aosp_15_r20/cts/tests/BlobStore/Android.bp (revision b7c941bb3fa97aba169d73cee0bed2de8ac964bf)
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    default_team: "trendy_team_framework_backstage_power",
18}
19
20android_test {
21    name: "CtsBlobStoreTestCases",
22    defaults: ["cts_defaults"],
23    static_libs: [
24        "androidx.test.ext.junit",
25        "androidx.test.rules",
26        "compatibility-device-util-axt",
27        "guava",
28        "truth",
29        "testng",
30        "BlobStoreTestUtils",
31    ],
32    srcs: [
33        "src/**/*.java",
34        ":CtsBlobStoreTestsAidl",
35    ],
36    test_suites: [
37        "cts",
38        "general-tests",
39    ],
40    sdk_version: "test_current",
41    data: [
42        ":CtsBlobStoreTestHelper",
43        ":CtsBlobStoreTestHelperDiffSig",
44        ":CtsBlobStoreTestHelperDiffSig2",
45    ],
46    per_testcase_directory: true,
47}
48
49android_test_helper_app {
50    name: "CtsBlobStoreTestHelper",
51    defaults: ["cts_defaults"],
52    static_libs: [
53        "androidx.test.ext.junit",
54        "truth",
55        "BlobStoreTestUtils",
56    ],
57    srcs: [
58        "helper-app/src/**/*.java",
59        ":CtsBlobStoreTestsAidl",
60    ],
61    test_suites: [
62        "general-tests",
63    ],
64    manifest: "helper-app/AndroidManifest.xml",
65    sdk_version: "test_current",
66}
67
68android_test_helper_app {
69    name: "CtsBlobStoreTestHelperDiffSig",
70    defaults: ["cts_defaults"],
71    static_libs: [
72        "androidx.test.ext.junit",
73        "truth",
74        "BlobStoreTestUtils",
75    ],
76    srcs: [
77        "helper-app/src/**/*.java",
78        ":CtsBlobStoreTestsAidl",
79    ],
80    test_suites: [
81        "general-tests",
82    ],
83    manifest: "helper-app/AndroidManifest.xml",
84    aaptflags: [
85        "--rename-manifest-package com.android.cts.blob.helper2",
86    ],
87    certificate: ":cts-blob-helper-cert",
88    sdk_version: "test_current",
89}
90
91android_test_helper_app {
92    name: "CtsBlobStoreTestHelperDiffSig2",
93    defaults: ["cts_defaults"],
94    static_libs: [
95        "androidx.test.ext.junit",
96        "truth",
97        "BlobStoreTestUtils",
98    ],
99    srcs: [
100        "helper-app/src/**/*.java",
101        ":CtsBlobStoreTestsAidl",
102    ],
103    test_suites: [
104        "general-tests",
105    ],
106    manifest: "helper-app/AndroidManifest.xml",
107    aaptflags: [
108        "--rename-manifest-package com.android.cts.blob.helper3",
109    ],
110    certificate: ":cts-blob-helper-cert2",
111    sdk_version: "test_current",
112}
113
114filegroup {
115    name: "CtsBlobStoreTestsAidl",
116    srcs: [
117        "aidl/**/*.aidl",
118    ],
119}
120