1//
2// Copyright (C) 2020 Google Inc.
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//
16
17package {
18    default_applicable_licenses: ["Android-Apache-2.0"],
19}
20
21android_test {
22    name: "CarLauncherTests",
23
24    srcs: ["src/**/*.java"],
25
26    resource_dirs: ["res"],
27
28    libs: [
29        "android.car",
30        "android.test.base",
31        "android.car-system-stubs",
32    ],
33
34    optimize: {
35        enabled: false,
36    },
37
38    static_libs: [
39        "android.car.testapi",
40        "android.car.test.utils",
41        "androidx.test.core",
42        "androidx.test.runner",
43        "androidx.test.rules",
44        "androidx.test.espresso.core",
45        "androidx.test.espresso.contrib",
46        "androidx.test.espresso.intents",
47        "androidx.test.ext.junit",
48        "androidx.fragment_fragment-testing",
49        "hamcrest-library",
50        "mockito-target-extended",
51        "truth",
52        "testables",
53        "CarLauncher-core",
54        "flag-junit",
55    ],
56
57    platform_apis: true,
58
59    certificate: "platform",
60
61    privileged: true,
62
63    manifest: "AndroidManifest.xml",
64
65    instrumentation_for: "CarLauncher",
66
67    dex_preopt: {
68        enabled: false,
69    },
70
71    jni_libs: [
72        // For mockito extended
73        "libdexmakerjvmtiagent",
74        "libstaticjvmtiagent",
75    ],
76
77    test_suites: [
78        "automotive-tests",
79        "device-tests",
80    ],
81    // TODO(b/319708040): re-enable use_resource_processor
82    use_resource_processor: false,
83}
84