blob: 33f1c3f6f326ac8c16e495ce802eaa50227c2d29 [file] [log] [blame]
Chris Poultneyf5109062022-12-20 19:57:42 +00001// 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_applicable_licenses: ["Android-Apache-2.0"],
21}
22
Chris Poultney6ad04ab2023-09-13 15:12:07 +000023filegroup {
24 name: "ThemePickerTests_srcs",
25
26 visibility: [
27 "//visibility:public"
28 ],
29
30 srcs: [
31 "src/**/*.java",
32 "src/**/*.kt",
33 ],
34}
35
Chris Poultneyf5109062022-12-20 19:57:42 +000036android_test {
37 name: "ThemePickerTests",
38
39 defaults: ["ThemePicker_defaults"],
40 srcs: [
Chris Poultney6ad04ab2023-09-13 15:12:07 +000041 ":ThemePickerTests_srcs",
42 ":WallpaperPicker2Tests_srcs",
43 "module/src/com/android/customization/TestModule.kt",
Chris Poultneyf5109062022-12-20 19:57:42 +000044 ],
Chris Poultney6ad04ab2023-09-13 15:12:07 +000045 exclude_srcs: [":ThemePicker_src_prod"],
Chris Poultneyf5109062022-12-20 19:57:42 +000046 static_libs: [
47 "WallpaperPicker2TestLib",
Chris Poultney6ad04ab2023-09-13 15:12:07 +000048 "WallpaperPicker2TestRunner",
49 "ThemePickerTestLib",
Ioana Alexandruc2d97a52023-12-04 21:20:42 +010050 "SystemUICustomizationTestUtils",
Chris Poultney6ad04ab2023-09-13 15:12:07 +000051 "androidx.test.espresso.core",
52 "androidx.test.espresso.contrib",
53 "androidx.test.espresso.intents",
54 "androidx.test.ext.junit",
Chris Poultneyf5109062022-12-20 19:57:42 +000055 "androidx.test.rules",
Chris Poultney6ad04ab2023-09-13 15:12:07 +000056 "hamcrest-library",
57 "hamcrest",
58 "hilt_android",
59 "hilt_android_testing",
60 "mockito-target-minus-junit4",
Chris Poultneyf5109062022-12-20 19:57:42 +000061 "junit",
62 "kotlinx_coroutines_test",
Krzysztof KosiƄski2585ebb2023-10-07 00:48:12 +000063 "truth",
Chris Poultneyf5109062022-12-20 19:57:42 +000064 ],
65 libs: [
66 "android.test.runner",
67 "android.test.base",
68 "android.test.mock",
69 ],
70
Colin Cross9088a452023-07-19 14:26:55 -070071 kotlincflags: ["-Xjvm-default=all"],
Chris Poultneyf5109062022-12-20 19:57:42 +000072 platform_apis: true,
73 test_suites: ["device-tests"],
74}