1// Copyright (C) 2022 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//
17// Build rule for WallpaperPicker2 tests
18//
19package {
20    default_team: "trendy_team_customization_picker",
21    default_applicable_licenses: ["Android-Apache-2.0"],
22}
23
24filegroup {
25    name: "ThemePickerTests_srcs",
26
27    visibility: [
28        "//visibility:public",
29    ],
30
31    srcs: [
32        "src/**/*.java",
33        "src/**/*.kt",
34    ],
35}
36
37android_test {
38    name: "ThemePickerTests",
39
40    defaults: ["ThemePicker_defaults"],
41    srcs: [
42        ":ThemePickerTests_srcs",
43        ":WallpaperPicker2Tests_srcs",
44    ],
45    exclude_srcs: [":ThemePicker_src_prod"],
46    static_libs: [
47        "WallpaperPicker2TestLib",
48        "WallpaperPicker2TestRunner",
49        "ThemePickerTestLib",
50        "ThemePickerTestModule",
51        "SystemUICustomizationTestUtils",
52        "androidx.test.espresso.core",
53        "androidx.test.espresso.contrib",
54        "androidx.test.espresso.intents",
55        "androidx.test.ext.junit",
56        "androidx.test.rules",
57        "hamcrest-library",
58        "hamcrest",
59        "hilt_android",
60        "hilt_android_testing",
61        "mockito-target-minus-junit4",
62        "junit",
63        "kotlinx_coroutines_test",
64        "truth",
65        "flag-junit",
66    ],
67    libs: [
68        "android.test.runner",
69        "android.test.base",
70        "android.test.mock",
71    ],
72
73    kotlincflags: ["-Xjvm-default=all"],
74    platform_apis: true,
75    test_suites: ["device-tests"],
76}
77