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_team: "trendy_team_aaos_framework",
19    default_applicable_licenses: ["Android-Apache-2.0"],
20}
21
22android_test {
23    name: "AndroidCarApiTest",
24
25    srcs: [
26        "src/**/*.java",
27        "src/**/*.aidl",
28        ":VhalTestVendorProperties",
29    ],
30
31    platform_apis: true,
32
33    // for system|privileged permission.
34    certificate: "platform",
35
36    min_sdk_version: "33",
37    target_sdk_version: "34",
38
39    // When built explicitly put it in the data partition
40
41    optimize: {
42        enabled: false,
43    },
44
45    static_libs: ["junit"] + [
46        "androidx.test.rules",
47        "android.car.apitest-aidl-binder-java",
48        "android.car.cluster.navigation",
49        "android.car.cluster.navigation",
50        "android.car.testapi",
51        "android.car.test.utils",
52        "com.android.car.test.lib",
53        "androidx.test.runner",
54        // TODO(b/236153976): comment back once guava is supported
55        //      "guava-android-testlib",
56        "compatibility-device-util-axt",
57        "platform-test-annotations",
58        "truth",
59        "Harrier",
60    ],
61
62    libs: [
63        "android.car",
64        "android.test.runner",
65        "android.test.base",
66    ],
67
68    // mockito-target-inline dependency
69    jni_libs: [
70        "libdexmakerjvmtiagent",
71        "libstaticjvmtiagent",
72        "libcarservicejni",
73    ],
74
75    test_suites: [
76        "device-tests",
77        "automotive-tests",
78    ],
79}
80