blob: a311e5a03abdf54690ccf54aad9f60358a98de7b [file] [log] [blame] [edit]
// Copyright (C) 2022 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
//
// Build rule for WallpaperPicker2 tests
//
package {
default_team: "trendy_team_customization_picker",
default_applicable_licenses: ["Android-Apache-2.0"],
}
filegroup {
name: "ThemePickerTests_srcs",
visibility: [
"//visibility:public",
],
srcs: [
"src/**/*.java",
"src/**/*.kt",
],
}
android_test {
name: "ThemePickerTests",
defaults: ["ThemePicker_defaults"],
srcs: [
":ThemePickerTests_srcs",
":WallpaperPicker2Tests_srcs",
],
exclude_srcs: [":ThemePicker_src_prod"],
static_libs: [
"WallpaperPicker2TestLib",
"WallpaperPicker2TestRunner",
"ThemePickerTestLib",
"ThemePickerTestModule",
"SystemUICustomizationTestUtils",
"androidx.test.espresso.core",
"androidx.test.espresso.contrib",
"androidx.test.espresso.intents",
"androidx.test.ext.junit",
"androidx.test.rules",
"hamcrest-library",
"hamcrest",
"hilt_android",
"hilt_android_testing",
"mockito-target-minus-junit4",
"junit",
"kotlinx_coroutines_test",
"truth",
"flag-junit",
],
libs: [
"android.test.runner.stubs.system",
"android.test.base.stubs.system",
"android.test.mock.stubs.system",
],
kotlincflags: ["-Xjvm-default=all"],
platform_apis: true,
test_suites: ["device-tests"],
}