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