1// Copyright 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 // See: http://go/android-license-faq 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20java_defaults { 21 name: "CellBroadcastTestCommonComplianceTest", 22 libs: [ 23 "android.test.runner.stubs.system", 24 "telephony-common", 25 "android.test.base.stubs.system", 26 "android.test.mock.stubs.system", 27 ], 28 static_libs: [ 29 "androidx.test.rules", 30 "androidx.test.espresso.core", 31 "mockito-target-minus-junit4", 32 "truth", 33 "ub-uiautomator", 34 "cellbroadcast.mockmodem", 35 "modules-utils-build_system", 36 "junit-params", 37 ], 38 // Include all test java files. 39 srcs: [":cellbroadcastreceiver-srcs-mockmodem-test"], 40 platform_apis: true, 41} 42 43java_import { 44 name: "prebuilt_cellbroadcast_mockmodem", 45 jars: ["mockmodem/classes.jar"], 46} 47 48android_library { 49 name: "cellbroadcast.mockmodem", 50 asset_dirs: ["mockmodem/assets"], 51 manifest: "mockmodem/AndroidManifest.xml", 52 static_libs: [ 53 "prebuilt_cellbroadcast_mockmodem", 54 ], 55 min_sdk_version: "30", 56 platform_apis: true, 57} 58 59android_test { 60 name: "CellBroadcastReceiverComplianceTests", 61 defaults: ["CellBroadcastTestCommonComplianceTest"], 62 test_suites: [ 63 "device-tests", 64 "mts-cellbroadcast", 65 ], 66 min_sdk_version: "30", 67} 68 69// used to share src with unit test app 70filegroup { 71 name: "cellbroadcastreceiver-srcs-mockmodem-test", 72 srcs: [ 73 "src/**/*.java", 74 ], 75} 76