• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2015 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: "CarServiceTest",
23
24    srcs: ["src/**/*.java"],
25
26    resource_dirs: ["res"],
27
28    aaptflags: [
29        "--extra-packages com.android.car",
30        "--auto-add-overlay",
31    ],
32
33    platform_apis: true,
34
35    // for system|privileged permission.
36    certificate: "platform",
37
38    // When built explicitly put it in the data partition
39
40    optimize: {
41        enabled: false,
42    },
43
44    static_libs: [
45        "junit",
46        "android.car.test.utils",
47        "androidx.test.ext.junit",
48        "androidx.test.rules",
49        "android.frameworks.automotive.powerpolicy-V1-java",
50        "android.hardware.automotive.vehicle-V2.0-java",
51        "car-frameworks-service",
52        "car-service-test-static-lib",
53        "car-systemtest",
54        "com.android.car.test.lib",
55        "mockito-target-extended",
56        // testng imported to use assertThrows, we can remove it once it's ported to JUnit's.
57        "testng",
58        "truth-prebuilt",
59        "vehicle-hal-support-lib-for-test",
60        "compatibility-device-util-axt",
61    ],
62
63    libs: [
64        "android.car",
65        "android.car.userlib",
66        "android.car.watchdoglib",
67        "android.test.runner",
68        "android.test.base",
69    ],
70
71    // mockito-target-inline dependency
72    jni_libs: [
73        "libdexmakerjvmtiagent",
74        "libstaticjvmtiagent",
75        "libcarservicejni",
76    ],
77
78    test_suites: ["general-tests"],
79}
80