From c338db0a67b83c57057799007c073512d3166977 Mon Sep 17 00:00:00 2001 From: Kevin Lim Date: Thu, 25 Jan 2024 22:09:37 +0000 Subject: [PATCH] [Deviceless] Move BubbleTextViewTest to multivalentTests for deviceless testing. Bug: b/297950111 Flag: NA Test: atest Launcher3RoboTests Test: atest NexusLauncherRoboTests Test: Passes in SysUI Studio Change-Id: Ib94e704836e0e21b8f8f05d987bec3e8ba633afa --- .../src/com/android/launcher3/ui/BubbleTextViewTest.java | 6 ++++++ 1 file changed, 6 insertions(+) rename tests/{ => multivalentTests}/src/com/android/launcher3/ui/BubbleTextViewTest.java (99%) diff --git a/tests/src/com/android/launcher3/ui/BubbleTextViewTest.java b/tests/multivalentTests/src/com/android/launcher3/ui/BubbleTextViewTest.java similarity index 99% rename from tests/src/com/android/launcher3/ui/BubbleTextViewTest.java rename to tests/multivalentTests/src/com/android/launcher3/ui/BubbleTextViewTest.java index 90ded100fe..b83349e715 100644 --- a/tests/src/com/android/launcher3/ui/BubbleTextViewTest.java +++ b/tests/multivalentTests/src/com/android/launcher3/ui/BubbleTextViewTest.java @@ -37,6 +37,9 @@ import android.os.UserHandle; import android.platform.test.flag.junit.SetFlagsRule; import android.view.ViewGroup; +import androidx.test.ext.junit.runners.AndroidJUnit4; +import androidx.test.filters.SmallTest; + import com.android.launcher3.BubbleTextView; import com.android.launcher3.Flags; import com.android.launcher3.LauncherPrefs; @@ -52,6 +55,7 @@ import com.android.launcher3.views.BaseDragLayer; import org.junit.Before; import org.junit.Rule; import org.junit.Test; +import org.junit.runner.RunWith; import org.mockito.MockitoAnnotations; /** @@ -61,6 +65,8 @@ import org.mockito.MockitoAnnotations; * two lines, and this is enough to ensure whether the string should be specifically wrapped onto * the second line and to ensure truncation. */ +@SmallTest +@RunWith(AndroidJUnit4.class) public class BubbleTextViewTest { @Rule public final SetFlagsRule mSetFlagsRule =