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 default_team: "trendy_team_framework_backstage_power", 18} 19 20// We build the main test APK and helper APKs from the same source code, 21// just so they can easily share the constants, etc. 22 23java_library { 24 name: "CtsProcessTestCore", 25 static_libs: [ 26 "androidx.test.ext.junit", 27 "androidx.test.rules", 28 "compatibility-device-util-axt", 29 "guava", 30 "truth", 31 "testng", 32 ], 33 libs: ["android.test.base"], 34 srcs: [ 35 "src/**/*.java", 36 ], 37} 38 39java_defaults { 40 name: "CtsProcessTest_default", 41 static_libs: [ 42 "CtsProcessTestCore", 43 ], 44 test_suites: [ 45 "cts", 46 "general-tests", 47 ], 48 sdk_version: "test_current", 49} 50 51android_test { 52 name: "CtsProcessTest", 53 defaults: [ 54 "cts_defaults", 55 "CtsProcessTest_default", 56 ], 57 manifest: "AndroidManifest_main.xml", 58 data: [ 59 ":CtsProcessTestHelper4", 60 ":CtsProcessTestHelper1", 61 ":CtsProcessTestHelper2", 62 ":CtsProcessTestHelper3", 63 ], 64 per_testcase_directory: true, 65} 66 67android_test_helper_app { 68 name: "CtsProcessTestHelper1", 69 defaults: ["CtsProcessTest_default"], 70 71 manifest: "AndroidManifest_helper1.xml", 72 additional_manifests: [ 73 "AndroidManifest_helper.xml", 74 ], 75 package_name: "android.os.cts.process.helper1", 76} 77 78android_test_helper_app { 79 name: "CtsProcessTestHelper2", 80 defaults: ["CtsProcessTest_default"], 81 82 manifest: "AndroidManifest_helper2.xml", 83 additional_manifests: [ 84 "AndroidManifest_helper.xml", 85 ], 86 package_name: "android.os.cts.process.helper2", 87} 88 89android_test_helper_app { 90 name: "CtsProcessTestHelper3", 91 defaults: ["CtsProcessTest_default"], 92 93 manifest: "AndroidManifest_helper3.xml", 94 additional_manifests: [ 95 "AndroidManifest_helper.xml", 96 ], 97 package_name: "android.os.cts.process.helper3", 98} 99 100android_test_helper_app { 101 name: "CtsProcessTestHelper4", 102 defaults: ["CtsProcessTest_default"], 103 104 manifest: "AndroidManifest_helper4.xml", 105 additional_manifests: [ 106 "AndroidManifest_helper.xml", 107 ], 108 package_name: "android.os.cts.process.helper4", 109} 110