1// Copyright 2011, 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_team: "trendy_team_fwk_telephony", 17 // See: http://go/android-license-faq 18 default_applicable_licenses: ["Android-Apache-2.0"], 19} 20 21android_test { 22 name: "CellBroadcastReceiverTests", 23 // We only want this apk build for tests. 24 libs: [ 25 "android.test.runner.stubs.system", 26 "telephony-common", 27 "android.test.base.stubs.system", 28 ], 29 static_libs: [ 30 "junit", 31 "modules-utils-build_system", 32 "androidx.core_core", 33 ], 34 // Include all test java files. 35 srcs: [ 36 "src/**/*.java", 37 ":cellbroadcast-util-shared-srcs", 38 ], 39 // Notice that we don't have to include the src files of Email because, by 40 // running the tests using an instrumentation targeting Eamil, we 41 // automatically get all of its classes loaded into our environment. 42 platform_apis: true, 43 // Apk must be signed with platform signature in order to send test broadcasts. 44 certificate: "platform", 45 instrumentation_for: "CellBroadcastApp", 46} 47 48// used to share src with sl4a test app 49filegroup { 50 name: "cellbroadcast-shared-with-sl4a", 51 srcs: [ 52 "src/com/android/cellbroadcastreceiver/tests/SendTestMessages.java", 53 "src/com/android/cellbroadcastreceiver/tests/GsmSmsCbMessage.java", 54 ], 55} 56