1//
2// Copyright (C) 2021 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16package {
17    default_team: "trendy_team_pmw_telephony",
18    default_applicable_licenses: ["Android-Apache-2.0"],
19}
20
21java_library {
22    name: "service-entitlement-testing-utils",
23    srcs: [
24        "utils/**/*.java",
25    ],
26    libs: [
27        "auto_value_annotations",
28    ],
29    static_libs: [
30        "guava",
31    ],
32    plugins: ["auto_value_plugin"],
33    sdk_version: "current",
34    min_sdk_version: "29",
35}
36
37android_test {
38    name: "service-entitlement-tests",
39    srcs: ["src/**/*.java"],
40    manifest: "AndroidManifest.xml",
41    resource_dirs: [],
42    static_libs: [
43        "androidx.test.core",
44        "androidx.test.ext.junit",
45        "androidx.test.rules",
46        "mockito-target-minus-junit4",
47        "platform-test-annotations",
48        "service-entitlement",
49        "service-entitlement-testing-utils",
50        "testables",
51        "testng",
52        "truth",
53    ],
54    certificate: "platform",
55    test_suites: ["device-tests"],
56}
57