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