1// Copyright (C) 2021 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: "WallpaperPicker2Tests_srcs", 26 27 visibility: [ 28 "//visibility:public", 29 ], 30 31 srcs: [ 32 "src/**/*.java", 33 "src/**/*.kt", 34 ], 35} 36 37android_test { 38 name: "WallpaperPicker2Tests", 39 40 defaults: ["WallpaperPicker2_defaults"], 41 srcs: [ 42 ":WallpaperPicker2Tests_srcs", 43 ], 44 static_libs: [ 45 "WallpaperPicker2TestLib", 46 "WallpaperPicker2TestModule", 47 "WallpaperPicker2TestRunner", 48 "androidx.test.espresso.core", 49 "androidx.test.espresso.contrib", 50 "androidx.test.espresso.intents", 51 "androidx.test.ext.junit", 52 "androidx.test.rules", 53 "hamcrest-library", 54 "hamcrest", 55 "hilt_android", 56 "hilt_android_testing", 57 "mockito-target-minus-junit4", 58 "junit", 59 "kotlinx_coroutines_test", 60 "truth", 61 "flag-junit", 62 ], 63 libs: [ 64 "android.test.runner.stubs.system", 65 "android.test.base.stubs.system", 66 "android.test.mock.stubs.system", 67 ], 68 69 platform_apis: true, 70 test_suites: ["device-tests"], 71} 72