Files
app_Settings/tests/unit/Android.bp
Eghosa Ewansiha-Vlachavas 136bd906da Fix testGetUserMinAspectRatioEntry for both tablets and foldables
Tabelts and foldables now have different aspect ratio values in their
config, so we need to test the devices separately as we shouldnt test for
values that are not in the config of the device the test is run on.

Fixes: 302155585
Test: atest SettingsUnitTests:UserAspectRatioManagerTest
Change-Id: I78fa3020501a4be992bb90fea16a6fec4f37594b
2023-09-28 13:23:11 +00:00

57 lines
1.5 KiB
Plaintext

package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "packages_apps_Settings_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["packages_apps_Settings_license"],
}
android_test {
name: "SettingsUnitTests",
certificate: "platform",
libs: [
"android.test.runner",
"telephony-common",
"ims-common",
"android.test.base",
"android.test.mock",
],
static_libs: [
"androidx.arch.core_core-testing",
"androidx.test.core",
"androidx.test.rules",
"androidx.test.espresso.core",
"androidx.test.espresso.contrib-nodeps",
"androidx.test.espresso.intents-nodeps",
"androidx.test.ext.junit",
"androidx.preference_preference",
"mockito-target-minus-junit4",
"platform-test-annotations",
"platform-test-rules",
"truth-prebuilt",
"ub-uiautomator",
"kotlinx_coroutines_test",
// Don't add SettingsLib libraries here - you can use them directly as they are in the
// instrumented Settings app.
],
errorprone: {
javacflags: ["-Xep:CheckReturnValue:WARN"]
},
// Include all test java/kotlin files.
srcs: [
"src/**/*.java",
"src/**/*.kt",
],
platform_apis: true,
test_suites: ["device-tests"],
instrumentation_for: "Settings",
}