• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2020 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: "CtsBlobStoreHostTestCases",
21    defaults: ["cts_defaults"],
22    srcs: ["src/**/*.java"],
23    libs: [
24        "tools-common-prebuilt",
25        "cts-tradefed",
26        "tradefed",
27        "truth-prebuilt"
28    ],
29    static_libs: [
30        "cts-statsd-atom-host-test-utils",
31    ],
32    // Tag this module as a cts test artifact
33    test_suites: [
34        "cts",
35        "general-tests"
36    ],
37    data: [
38        ":CtsBlobStoreHostTestHelper",
39        ":CtsBlobStoreHostTestHelperDev",
40        ":CtsBlobStoreHostTestHelperAssist",
41    ],
42    per_testcase_directory: true,
43}
44
45android_test_helper_app {
46  name: "CtsBlobStoreHostTestHelper",
47  srcs:  ["test-apps/BlobStoreHostTestHelper/src/**/*.java"],
48  static_libs: [
49      "compatibility-device-util-axt",
50      "androidx.test.ext.junit",
51      "androidx.test.rules",
52      "BlobStoreTestUtils",
53      "truth-prebuilt",
54      "testng",
55  ],
56  manifest : "test-apps/BlobStoreHostTestHelper/AndroidManifest.xml",
57  sdk_version: "test_current",
58  // Tag this module as a cts test artifact
59  test_suites: [
60    "cts",
61    "general-tests"
62  ]
63}
64
65android_test_helper_app {
66  name: "CtsBlobStoreHostTestHelperDev",
67  srcs:  ["test-apps/BlobStoreHostTestHelper/src/**/*.java"],
68  static_libs: [
69    "compatibility-device-util-axt",
70    "androidx.test.ext.junit",
71    "androidx.test.rules",
72    "BlobStoreTestUtils",
73    "truth-prebuilt",
74    "testng",
75  ],
76  manifest : "test-apps/BlobStoreHostTestHelper/AndroidManifest_withPrivPerm.xml",
77  aaptflags: [
78    "--rename-manifest-package com.android.cts.device.blob.dev",
79    "--rename-instrumentation-target-package com.android.cts.device.blob.dev"
80  ],
81  sdk_version: "test_current",
82  // Tag this module as a cts test artifact
83  test_suites: [
84    "cts",
85    "general-tests"
86  ]
87}
88
89android_test_helper_app {
90  name: "CtsBlobStoreHostTestHelperAssist",
91  srcs:  ["test-apps/BlobStoreHostTestHelper/src/**/*.java"],
92  static_libs: [
93    "compatibility-device-util-axt",
94    "androidx.test.ext.junit",
95    "androidx.test.rules",
96    "BlobStoreTestUtils",
97    "truth-prebuilt",
98    "testng"
99  ],
100  manifest : "test-apps/BlobStoreHostTestHelper/AndroidManifest_withAssistRole.xml",
101  aaptflags: [
102    "--rename-manifest-package com.android.cts.device.blob.assist",
103    "--rename-instrumentation-target-package com.android.cts.device.blob.assist"
104  ],
105  sdk_version: "test_current",
106  // Tag this module as a cts test artifact
107  test_suites: [
108    "cts",
109    "general-tests"
110  ]
111}
112