1// Copyright (C) 2021 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: "SdkSandboxHostTest", 21 srcs: ["src/**/SdkSandboxHostTest.java"], 22 libs: ["tradefed"], 23 test_suites: ["general-tests"], 24} 25 26java_test_host { 27 name: "SdkSandboxLifecycleHostTest", 28 srcs: ["src/**/SdkSandboxLifecycleHostTest.java"], 29 test_config: "SdkSandboxLifecycleHostTest.xml", 30 libs: ["tradefed"], 31 test_suites: ["general-tests"], 32 data: [ 33 ":TestCodeProvider", 34 ":TestCodeProvider2", 35 ":SdkSandboxTestApp", 36 ":SdkSandboxTestApp2", 37 ], 38} 39 40android_test_helper_app { 41 name: "SdkSandboxTestApp", 42 manifest: "app/SdkSandboxTestAppManifest.xml", 43 defaults: ["platform_app_defaults"], 44 platform_apis: true, 45 srcs: [ 46 "app/src/**/SdkSandboxTestActivity.java", 47 ":framework-sdksandbox-sources", 48 ":sdksandbox_aidl", 49 ":sdksandbox-sources", 50 ], 51 static_libs: [ 52 "androidx.core_core", 53 "SdkSandboxTestUtils", 54 ], 55} 56 57android_test_helper_app { 58 name: "SdkSandboxTestApp2", 59 manifest: "app/SdkSandboxTestApp2Manifest.xml", 60 defaults: ["platform_app_defaults"], 61 platform_apis: true, 62 srcs: [ 63 "app/src/**/SdkSandboxTestActivity2.java", 64 ":framework-sdksandbox-sources", 65 ":sdksandbox_aidl", 66 ":sdksandbox-sources", 67 ], 68 static_libs: [ 69 "androidx.core_core", 70 "SdkSandboxTestUtils", 71 ], 72} 73 74android_test_helper_app { 75 name: "TestCodeProvider", 76 manifest: "codeprovider/TestCodeProviderManifest.xml", 77 defaults: ["platform_app_defaults"], 78 // TODO(b/215372846): Create our own signing key. 79 certificate: ":cts-keyset-test-b", 80 srcs: [ 81 "codeprovider/src/**/TestSandboxedSdkProvider.java", 82 ":framework-sdksandbox-sources", 83 ], 84 platform_apis: true, 85} 86 87android_test_helper_app { 88 name: "TestCodeProvider2", 89 manifest: "codeprovider/TestCodeProvider2Manifest.xml", 90 // TODO(b/215372846): Create our own signing key. 91 certificate: ":cts-keyset-test-b", 92 defaults: ["platform_app_defaults"], 93 srcs: [ 94 "codeprovider/src/**/TestSandboxedSdkProvider2.java", 95 ":framework-sdksandbox-sources", 96 ], 97 platform_apis: true, 98} 99