blob: 74dc6a1aa0beb00504e71aa2ec352042296aa6a7 [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",
50 "androidx.test.espresso.core",
51 "androidx.test.espresso.contrib",
52 "androidx.test.espresso.intents",
53 "androidx.test.ext.junit",
Chris Poultneyf5109062022-12-20 19:57:42 +000054 "androidx.test.rules",
Chris Poultney6ad04ab2023-09-13 15:12:07 +000055 "hamcrest-library",
56 "hamcrest",
57 "hilt_android",
58 "hilt_android_testing",
59 "mockito-target-minus-junit4",
Chris Poultneyf5109062022-12-20 19:57:42 +000060 "junit",
61 "kotlinx_coroutines_test",
Krzysztof KosiƄski2585ebb2023-10-07 00:48:12 +000062 "truth",
Chris Poultneyf5109062022-12-20 19:57:42 +000063 ],
64 libs: [
65 "android.test.runner",
66 "android.test.base",
67 "android.test.mock",
68 ],
69
Colin Cross9088a452023-07-19 14:26:55 -070070 kotlincflags: ["-Xjvm-default=all"],
Chris Poultneyf5109062022-12-20 19:57:42 +000071 platform_apis: true,
72 test_suites: ["device-tests"],
73}