blob: a311e5a03abdf54690ccf54aad9f60358a98de7b [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 {
Aditya Choudharye97783b2024-02-02 13:55:57 +000020 default_team: "trendy_team_customization_picker",
Chris Poultneyf5109062022-12-20 19:57:42 +000021 default_applicable_licenses: ["Android-Apache-2.0"],
22}
23
Chris Poultney6ad04ab2023-09-13 15:12:07 +000024filegroup {
25 name: "ThemePickerTests_srcs",
26
27 visibility: [
Catherine Liang88f11d62024-01-29 23:21:00 +000028 "//visibility:public",
Chris Poultney6ad04ab2023-09-13 15:12:07 +000029 ],
30
31 srcs: [
32 "src/**/*.java",
33 "src/**/*.kt",
34 ],
35}
36
Chris Poultneyf5109062022-12-20 19:57:42 +000037android_test {
38 name: "ThemePickerTests",
39
40 defaults: ["ThemePicker_defaults"],
41 srcs: [
Chris Poultney6ad04ab2023-09-13 15:12:07 +000042 ":ThemePickerTests_srcs",
43 ":WallpaperPicker2Tests_srcs",
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",
Chris Poultneyfccc06e2024-04-25 22:01:18 +000050 "ThemePickerTestModule",
Ioana Alexandruc2d97a52023-12-04 21:20:42 +010051 "SystemUICustomizationTestUtils",
Chris Poultney6ad04ab2023-09-13 15:12:07 +000052 "androidx.test.espresso.core",
53 "androidx.test.espresso.contrib",
54 "androidx.test.espresso.intents",
55 "androidx.test.ext.junit",
Chris Poultneyf5109062022-12-20 19:57:42 +000056 "androidx.test.rules",
Chris Poultney6ad04ab2023-09-13 15:12:07 +000057 "hamcrest-library",
58 "hamcrest",
59 "hilt_android",
60 "hilt_android_testing",
61 "mockito-target-minus-junit4",
Chris Poultneyf5109062022-12-20 19:57:42 +000062 "junit",
63 "kotlinx_coroutines_test",
Krzysztof KosiƄski2585ebb2023-10-07 00:48:12 +000064 "truth",
Catherine Liang88f11d62024-01-29 23:21:00 +000065 "flag-junit",
Chris Poultneyf5109062022-12-20 19:57:42 +000066 ],
67 libs: [
Jihoon Kang7f986dc2024-08-30 00:29:48 +000068 "android.test.runner.stubs.system",
69 "android.test.base.stubs.system",
70 "android.test.mock.stubs.system",
Chris Poultneyf5109062022-12-20 19:57:42 +000071 ],
72
Colin Cross9088a452023-07-19 14:26:55 -070073 kotlincflags: ["-Xjvm-default=all"],
Chris Poultneyf5109062022-12-20 19:57:42 +000074 platform_apis: true,
75 test_suites: ["device-tests"],
76}