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",
24        "telephony-common",
25        "android.test.base",
26        "android.test.mock",
27    ],
28    static_libs: [
29        "androidx.test.rules",
30        "androidx.test.espresso.core",
31        "mockito-target-minus-junit4",
32        "truth",
33        "ub-uiautomator",
34        "android.telephony.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
43android_test {
44    name: "CellBroadcastReceiverComplianceTests",
45    defaults: ["CellBroadcastTestCommonComplianceTest"],
46    test_suites: [
47        "device-tests",
48        "mts-cellbroadcast",
49    ],
50    min_sdk_version: "30",
51}
52
53// used to share src with unit test app
54filegroup {
55    name: "cellbroadcastreceiver-srcs-mockmodem-test",
56    srcs: [
57        "src/**/*.java",
58    ],
59}
60