• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20java_library {
21    name: "service-entitlement-testing-utils",
22    srcs: [
23        "utils/**/*.java",
24    ],
25    libs: [
26        "auto_value_annotations",
27    ],
28    static_libs: [
29        "guava",
30    ],
31    plugins: ["auto_value_plugin"],
32    sdk_version: "current",
33    min_sdk_version: "29",
34}
35
36android_test {
37    name: "service-entitlement-tests",
38    srcs: ["src/**/*.java"],
39    manifest: "AndroidManifest.xml",
40    resource_dirs: [],
41    static_libs: [
42        "androidx.test.core",
43        "androidx.test.ext.junit",
44        "androidx.test.rules",
45        "mockito-target-minus-junit4",
46        "platform-test-annotations",
47        "service-entitlement",
48        "service-entitlement-testing-utils",
49        "testables",
50        "testng",
51        "truth-prebuilt",
52    ],
53    certificate: "platform",
54    test_suites: ["device-tests"],
55}
56