1// Copyright (C) 2022 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_team: "trendy_team_rubidium_sdk_runtime", 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20java_test_host { 21 name: "CtsSdkSandboxHostSideTests", 22 srcs: [ 23 "src/**/*.java", 24 ":CtsHostsideTestsAppSecurityUtil", 25 ], 26 libs: ["tradefed"], 27 static_libs: [ 28 "modules-utils-build-testing", 29 "SdkSandboxHostTestUtils", 30 ], 31 test_suites: [ 32 "cts", 33 "mts-adservices", 34 "general-tests", 35 "mcts-adservices", 36 ], 37 data: [ 38 ":CtsSdkSandboxHostTestApp", 39 ":CtsSdkSandboxHostTestApp2", 40 ":SdkSandboxDataIsolationTestProvider", 41 ":SdkSandboxStorageTestProvider", 42 ":SdkSandboxManagerCtsProvider", 43 ], 44} 45 46android_test_helper_app { 47 name: "CtsSdkSandboxHostTestApp", 48 manifest: "app/AndroidManifest.xml", 49 defaults: ["platform_app_defaults"], 50 srcs: [ 51 "app/src/**/app/*.java", 52 ], 53 libs: [ 54 "framework-sdksandbox.impl", 55 ], 56 static_libs: [ 57 "CtsStorageTestSdkApi", 58 "CtsDataIsolationTestSdkApi", 59 "CtsSdkProviderApi", 60 "SdkSandboxTestUtils", 61 "androidx.core_core", 62 "androidx.test.ext.junit", 63 "compatibility-device-util-axt", 64 ], 65 min_sdk_version: "33", 66 target_sdk_version: "33", 67} 68 69android_test_helper_app { 70 name: "CtsSdkSandboxHostTestApp2", 71 manifest: "app/AndroidManifest2.xml", 72 srcs: [ 73 "app/src/**/app2/*.java", 74 ], 75 defaults: ["platform_app_defaults"], 76 min_sdk_version: "33", 77 target_sdk_version: "33", 78} 79 80android_test_helper_app { 81 name: "SdkSandboxDataIsolationTestProvider", 82 manifest: "provider/AndroidManifest.xml", 83 defaults: ["platform_app_defaults"], 84 certificate: ":sdksandbox-test", 85 srcs: [ 86 "provider/src/**/dataisolationtest/*.java", 87 ], 88 static_libs: [ 89 "CtsDataIsolationTestSdkApi", 90 "compatibility-device-util-axt", 91 ], 92 min_sdk_version: "33", 93 target_sdk_version: "33", 94} 95 96java_library { 97 name: "CtsDataIsolationTestSdkApi", 98 srcs: [ 99 "provider/src/**/dataisolationtest/*.aidl", 100 ], 101} 102 103android_test_helper_app { 104 name: "SdkSandboxStorageTestProvider", 105 manifest: "provider/StorageTestManifest.xml", 106 defaults: ["platform_app_defaults"], 107 certificate: ":sdksandbox-test", 108 srcs: [ 109 "provider/src/**/storagetest/*.java", 110 ], 111 static_libs: [ 112 "CtsStorageTestSdkApi", 113 "compatibility-device-util-axt", 114 ], 115 min_sdk_version: "33", 116 target_sdk_version: "33", 117} 118 119java_library { 120 name: "CtsStorageTestSdkApi", 121 srcs: [ 122 "provider/src/**/storagetest/*.aidl", 123 ], 124} 125