From 97cbdbcfd3a01a90a61719461205c56d99c61e4c Mon Sep 17 00:00:00 2001 From: Kevin Liu Date: Wed, 19 Jun 2024 15:50:28 +0000 Subject: [PATCH] Add strict_mode: false As strict mode is in place, the default strict_mode is now set to true. We are encourage teams to write tests in strict_mode to make tests Bivalent (able to run on device and devicelessly) For more info on strict mode: go/roboStrictMode Also fixed some missing deps. Flag: NONE Test: atest Launcher3RoboTests Bug: 334089788 Change-Id: I4b4f2ef9a21926eef63fcada81355b928bbe2870 Merged-In: I4b4f2ef9a21926eef63fcada81355b928bbe2870 --- tests/Android.bp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/Android.bp b/tests/Android.bp index e9111ea44a..1e2caa7aa8 100644 --- a/tests/Android.bp +++ b/tests/Android.bp @@ -241,11 +241,17 @@ android_robolectric_test { java_resource_dirs: ["config"], static_libs: [ "flag-junit-base", + "flag-junit", "com_android_launcher3_flags_lib", "com_android_wm_shell_flags_lib", "androidx.test.uiautomator_uiautomator", "androidx.core_core-animation-testing", "androidx.test.ext.junit", + "androidx.test.espresso.core", + "androidx.test.espresso.contrib", + "androidx.test.espresso.intents", + "androidx.test.rules", + "uiautomator-helpers", "inline-mockito-robolectric-prebuilt", "platform-parametric-runner-lib", "testables", @@ -261,4 +267,5 @@ android_robolectric_test { ], instrumentation_for: "Launcher3", upstream: true, + strict_mode: false, }