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_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19android_test { 20 name: "CtsBroadcastTestCases", 21 team: "trendy_team_framework_backstage_power", 22 defaults: ["cts_defaults"], 23 static_libs: [ 24 "am_flags_lib", 25 "androidx.test.ext.junit", 26 "androidx.test.rules", 27 "compatibility-device-util-axt", 28 "guava", 29 "platformprotosnano", 30 "truth", 31 "testng", 32 ], 33 srcs: [ 34 "src/**/*.java", 35 ":CtsBroadcastsTestsCommon", 36 ], 37 test_suites: [ 38 "cts", 39 "general-tests", 40 ], 41 platform_apis: true, 42 data: [ 43 ":CtsBroadcastsTestHelper", 44 ":CtsBroadcastsTestHelper2", 45 ], 46 per_testcase_directory: true, 47} 48 49android_test_helper_app { 50 name: "CtsBroadcastsTestHelper", 51 defaults: ["cts_defaults"], 52 static_libs: [ 53 "androidx.test.ext.junit", 54 "truth", 55 ], 56 srcs: [ 57 "helper-app/src/**/*.java", 58 ":CtsBroadcastsTestsCommon", 59 ], 60 test_suites: [ 61 "general-tests", 62 ], 63 manifest: "helper-app/AndroidManifest.xml", 64 platform_apis: true, 65} 66 67android_test_helper_app { 68 name: "CtsBroadcastsTestHelper2", 69 defaults: ["cts_defaults"], 70 static_libs: [ 71 "androidx.test.ext.junit", 72 "truth", 73 ], 74 srcs: [ 75 "helper-app/src/**/*.java", 76 ":CtsBroadcastsTestsCommon", 77 ], 78 test_suites: [ 79 "general-tests", 80 ], 81 manifest: "helper-app/AndroidManifest.xml", 82 aaptflags: [ 83 "--rename-manifest-package com.android.app.cts.broadcasts.helper2", 84 ], 85 platform_apis: true, 86} 87 88filegroup { 89 name: "CtsBroadcastsTestsCommon", 90 srcs: [ 91 "common/src/**/*.aidl", 92 "common/src/**/*.java", 93 ], 94 path: "common/src", 95} 96 97test_module_config { 98 name: "CtsBroadcastTestCases_android_server_am", 99 base: "CtsBroadcastTestCases", 100 test_suites: ["general-tests"], 101 exclude_annotations: ["androidx.test.filters.LargeTest"], 102} 103