Chris Poultney | f510906 | 2022-12-20 19:57:42 +0000 | [diff] [blame] | 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 | // |
| 19 | package { |
Aditya Choudhary | e97783b | 2024-02-02 13:55:57 +0000 | [diff] [blame] | 20 | default_team: "trendy_team_customization_picker", |
Chris Poultney | f510906 | 2022-12-20 19:57:42 +0000 | [diff] [blame] | 21 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 22 | } |
| 23 | |
Chris Poultney | 6ad04ab | 2023-09-13 15:12:07 +0000 | [diff] [blame] | 24 | filegroup { |
| 25 | name: "ThemePickerTests_srcs", |
| 26 | |
| 27 | visibility: [ |
Catherine Liang | 88f11d6 | 2024-01-29 23:21:00 +0000 | [diff] [blame] | 28 | "//visibility:public", |
Chris Poultney | 6ad04ab | 2023-09-13 15:12:07 +0000 | [diff] [blame] | 29 | ], |
| 30 | |
| 31 | srcs: [ |
| 32 | "src/**/*.java", |
| 33 | "src/**/*.kt", |
| 34 | ], |
| 35 | } |
| 36 | |
Chris Poultney | f510906 | 2022-12-20 19:57:42 +0000 | [diff] [blame] | 37 | android_test { |
| 38 | name: "ThemePickerTests", |
| 39 | |
| 40 | defaults: ["ThemePicker_defaults"], |
| 41 | srcs: [ |
Chris Poultney | 6ad04ab | 2023-09-13 15:12:07 +0000 | [diff] [blame] | 42 | ":ThemePickerTests_srcs", |
| 43 | ":WallpaperPicker2Tests_srcs", |
| 44 | "module/src/com/android/customization/TestModule.kt", |
Chris Poultney | f510906 | 2022-12-20 19:57:42 +0000 | [diff] [blame] | 45 | ], |
Chris Poultney | 6ad04ab | 2023-09-13 15:12:07 +0000 | [diff] [blame] | 46 | exclude_srcs: [":ThemePicker_src_prod"], |
Chris Poultney | f510906 | 2022-12-20 19:57:42 +0000 | [diff] [blame] | 47 | static_libs: [ |
| 48 | "WallpaperPicker2TestLib", |
Chris Poultney | 6ad04ab | 2023-09-13 15:12:07 +0000 | [diff] [blame] | 49 | "WallpaperPicker2TestRunner", |
| 50 | "ThemePickerTestLib", |
Ioana Alexandru | c2d97a5 | 2023-12-04 21:20:42 +0100 | [diff] [blame] | 51 | "SystemUICustomizationTestUtils", |
Chris Poultney | 6ad04ab | 2023-09-13 15:12:07 +0000 | [diff] [blame] | 52 | "androidx.test.espresso.core", |
| 53 | "androidx.test.espresso.contrib", |
| 54 | "androidx.test.espresso.intents", |
| 55 | "androidx.test.ext.junit", |
Chris Poultney | f510906 | 2022-12-20 19:57:42 +0000 | [diff] [blame] | 56 | "androidx.test.rules", |
Chris Poultney | 6ad04ab | 2023-09-13 15:12:07 +0000 | [diff] [blame] | 57 | "hamcrest-library", |
| 58 | "hamcrest", |
| 59 | "hilt_android", |
| 60 | "hilt_android_testing", |
| 61 | "mockito-target-minus-junit4", |
Chris Poultney | f510906 | 2022-12-20 19:57:42 +0000 | [diff] [blame] | 62 | "junit", |
| 63 | "kotlinx_coroutines_test", |
Krzysztof KosiĆski | 2585ebb | 2023-10-07 00:48:12 +0000 | [diff] [blame] | 64 | "truth", |
Catherine Liang | 88f11d6 | 2024-01-29 23:21:00 +0000 | [diff] [blame] | 65 | "flag-junit", |
Chris Poultney | f510906 | 2022-12-20 19:57:42 +0000 | [diff] [blame] | 66 | ], |
| 67 | libs: [ |
Jihoon Kang | 7f986dc | 2024-08-30 00:29:48 +0000 | [diff] [blame^] | 68 | "android.test.runner.stubs.system", |
| 69 | "android.test.base.stubs.system", |
| 70 | "android.test.mock.stubs.system", |
Chris Poultney | f510906 | 2022-12-20 19:57:42 +0000 | [diff] [blame] | 71 | ], |
| 72 | |
Colin Cross | 9088a45 | 2023-07-19 14:26:55 -0700 | [diff] [blame] | 73 | kotlincflags: ["-Xjvm-default=all"], |
Chris Poultney | f510906 | 2022-12-20 19:57:42 +0000 | [diff] [blame] | 74 | platform_apis: true, |
| 75 | test_suites: ["device-tests"], |
| 76 | } |