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", 26 "telephony-common", 27 "android.test.base", 28 ], 29 static_libs: [ 30 "junit", 31 "modules-utils-build_system", 32 ], 33 // Include all test java files. 34 srcs: [ 35 "src/**/*.java", 36 ":cellbroadcast-util-shared-srcs", 37 ], 38 // Notice that we don't have to include the src files of Email because, by 39 // running the tests using an instrumentation targeting Eamil, we 40 // automatically get all of its classes loaded into our environment. 41 platform_apis: true, 42 // Apk must be signed with platform signature in order to send test broadcasts. 43 certificate: "platform", 44 instrumentation_for: "CellBroadcastApp", 45} 46 47// used to share src with sl4a test app 48filegroup { 49 name: "cellbroadcast-shared-with-sl4a", 50 srcs: [ 51 "src/com/android/cellbroadcastreceiver/tests/SendTestMessages.java", 52 "src/com/android/cellbroadcastreceiver/tests/GsmSmsCbMessage.java", 53 ], 54} 55