• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2016 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//
15//
16
17package {
18    default_applicable_licenses: ["Android-Apache-2.0"],
19}
20
21android_test {
22    name: "CarServiceUnitTest",
23
24    srcs: ["src/**/*.java"],
25
26    aaptflags: [
27        "--extra-packages com.android.car",
28        "--auto-add-overlay",
29    ],
30
31    platform_apis: true,
32
33    certificate: "platform",
34
35    optimize: {
36        enabled: false,
37    },
38
39    instrumentation_for: "CarService",
40
41    libs: [
42        "android.car",
43        "android.car.userlib",
44        "android.car.watchdoglib",
45        "android.test.runner",
46        "android.test.base",
47        "android.test.mock",
48    ],
49
50    static_libs: [
51        "android.car.testapi",
52        "android.car.test.utils",
53        "androidx.test.core",
54        "androidx.test.ext.junit",
55        "androidx.test.rules",
56        "car-service-test-static-lib",
57        "com.android.car.internal.common",
58        "com.android.car.internal.system",
59        "com.android.car.test.lib",
60        "compatibility-device-util-axt",
61        "frameworks-base-testutils",
62        "mockito-target-extended",
63        "testng",
64        "truth-prebuilt",
65    ],
66
67    test_suites: ["general-tests"],
68
69    // mockito-target-inline dependency
70    jni_libs: [
71        "libdexmakerjvmtiagent",
72	"libscriptexecutorjni",
73        "libscriptexecutorjniutils-test",
74        "libstaticjvmtiagent",
75    ],
76}
77