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    default_team: "trendy_team_system_experience",
20}
21
22android_test {
23    name: "CarLauncherTests",
24
25    srcs: [
26        "src/**/*.java",
27        "src/**/*.kt",
28    ],
29
30    resource_dirs: ["res"],
31
32    libs: [
33        "android.car",
34        "android.test.base.stubs.system",
35        "android.car-system-stubs",
36    ],
37
38    optimize: {
39        enabled: false,
40    },
41
42    static_libs: [
43        "android.car.testapi",
44        "android.car.test.utils",
45        "androidx.test.core",
46        "androidx.test.runner",
47        "androidx.test.rules",
48        "androidx.test.espresso.core",
49        "androidx.test.espresso.contrib",
50        "androidx.test.espresso.intents",
51        "androidx.test.ext.junit",
52        "androidx.fragment_fragment-testing",
53        "hamcrest-library",
54        "mockito-kotlin2",
55        "mockito-target-extended",
56        "truth",
57        "testables",
58        "CarLauncher-core",
59        "flag-junit",
60    ],
61
62    // b/341652226: temporarily disable multi-dex until D8 is fixed
63    no_dex_container: true,
64
65    platform_apis: true,
66
67    certificate: "platform",
68
69    privileged: true,
70
71    manifest: "AndroidManifest.xml",
72
73    instrumentation_for: "CarLauncher",
74
75    dex_preopt: {
76        enabled: false,
77    },
78
79    jni_libs: [
80        // For mockito extended
81        "libdexmakerjvmtiagent",
82        "libstaticjvmtiagent",
83    ],
84
85    test_suites: [
86        "automotive-tests",
87        "device-tests",
88    ],
89    // TODO(b/319708040): re-enable use_resource_processor
90    use_resource_processor: false,
91}
92