blob: 57e14d92b2e471e71c481eb40cb1fd0ad433289f [file] [log] [blame]
Colin Cross6857f572020-01-13 10:06:27 -08001// 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
Bob Badour4da7d222021-02-22 16:14:07 -080017package {
18 default_applicable_licenses: ["Android-Apache-2.0"],
19}
20
Colin Cross6857f572020-01-13 10:06:27 -080021android_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",
Eric Jeong8f0d3c42021-03-16 20:12:24 -070059 "com.android.car.test.lib",
Antonio Kantek3d6174b2021-03-24 20:08:27 -070060 "compatibility-device-util-axt",
Colin Cross6857f572020-01-13 10:06:27 -080061 "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 "libstaticjvmtiagent",
73 ],
Colin Cross6857f572020-01-13 10:06:27 -080074}