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 "general-tests" 61 ] 62} 63 64android_test_helper_app { 65 name: "CtsBlobStoreHostTestHelperDev", 66 srcs: ["test-apps/BlobStoreHostTestHelper/src/**/*.java"], 67 static_libs: [ 68 "compatibility-device-util-axt", 69 "androidx.test.ext.junit", 70 "androidx.test.rules", 71 "BlobStoreTestUtils", 72 "truth-prebuilt", 73 "testng", 74 ], 75 manifest : "test-apps/BlobStoreHostTestHelper/AndroidManifest_withPrivPerm.xml", 76 aaptflags: [ 77 "--rename-manifest-package com.android.cts.device.blob.dev", 78 "--rename-instrumentation-target-package com.android.cts.device.blob.dev" 79 ], 80 sdk_version: "test_current", 81 // Tag this module as a cts test artifact 82 test_suites: [ 83 "general-tests" 84 ] 85} 86 87android_test_helper_app { 88 name: "CtsBlobStoreHostTestHelperAssist", 89 srcs: ["test-apps/BlobStoreHostTestHelper/src/**/*.java"], 90 static_libs: [ 91 "compatibility-device-util-axt", 92 "androidx.test.ext.junit", 93 "androidx.test.rules", 94 "BlobStoreTestUtils", 95 "truth-prebuilt", 96 "testng" 97 ], 98 manifest : "test-apps/BlobStoreHostTestHelper/AndroidManifest_withAssistRole.xml", 99 aaptflags: [ 100 "--rename-manifest-package com.android.cts.device.blob.assist", 101 "--rename-instrumentation-target-package com.android.cts.device.blob.assist" 102 ], 103 sdk_version: "test_current", 104 // Tag this module as a cts test artifact 105 test_suites: [ 106 "general-tests" 107 ] 108} 109