diff options
author | Hyunyoung Song <hyunyoungs@google.com> | 2016-05-05 11:46:03 -0700 |
---|---|---|
committer | Hyunyoung Song <hyunyoungs@google.com> | 2016-05-05 11:46:03 -0700 |
commit | 9345ebfc5c6e555938a153262fcd4243616183a6 (patch) | |
tree | 09bc4e910cb759e2e54eba84318f611580e94bb9 /tests | |
parent | bd42ba73b23d0470b675af73a721fc1d019be39d (diff) | |
download | android_packages_apps_Trebuchet-9345ebfc5c6e555938a153262fcd4243616183a6.tar.gz android_packages_apps_Trebuchet-9345ebfc5c6e555938a153262fcd4243616183a6.tar.bz2 android_packages_apps_Trebuchet-9345ebfc5c6e555938a153262fcd4243616183a6.zip |
Add test size annotation.
Rational/Background:
@MediumTest: An integration or functional test that validates the
interaction of one or more application modules on a single machine.
(should run under 1 sec: Usually get killed after 5 min)
@LargeTest: A system test, integration test, or end-to-end test that
verifies that a complete application works and accounts for the behavior
of external subsystems.
(Usually get killed after 15 min)
Change-Id: I8b668af3d2ca09c43ad45c6fd72b1d0d80c6b7d3
Diffstat (limited to 'tests')
4 files changed, 8 insertions, 0 deletions
diff --git a/tests/src/com/android/launcher3/BindWidgetTest.java b/tests/src/com/android/launcher3/BindWidgetTest.java index 4e8881cf0..34b117430 100644 --- a/tests/src/com/android/launcher3/BindWidgetTest.java +++ b/tests/src/com/android/launcher3/BindWidgetTest.java @@ -19,6 +19,7 @@ import android.os.ParcelFileDescriptor; import android.support.test.uiautomator.UiDevice; import android.support.test.uiautomator.UiSelector; import android.test.InstrumentationTestCase; +import android.test.suitebuilder.annotation.LargeTest; import com.android.launcher3.compat.AppWidgetManagerCompat; import com.android.launcher3.compat.PackageInstallerCompat; @@ -38,6 +39,7 @@ import java.util.concurrent.atomic.AtomicReference; * * Note running these tests will clear the workspace on the device. */ +@LargeTest @TargetApi(Build.VERSION_CODES.LOLLIPOP) public class BindWidgetTest extends InstrumentationTestCase { diff --git a/tests/src/com/android/launcher3/QuickAddWidgetTest.java b/tests/src/com/android/launcher3/QuickAddWidgetTest.java index 027c46597..007829435 100644 --- a/tests/src/com/android/launcher3/QuickAddWidgetTest.java +++ b/tests/src/com/android/launcher3/QuickAddWidgetTest.java @@ -9,6 +9,7 @@ import android.support.test.uiautomator.UiDevice; import android.support.test.uiautomator.UiObject2; import android.support.test.uiautomator.Until; import android.test.InstrumentationTestCase; +import android.test.suitebuilder.annotation.LargeTest; import android.view.MotionEvent; import android.view.ViewConfiguration; @@ -17,6 +18,7 @@ import java.util.List; /** * Add an arbitrary widget from the widget picker very quickly to test potential race conditions. */ +@LargeTest public class QuickAddWidgetTest extends InstrumentationTestCase { // Disabled because it's flaky and not particularly useful. But this class could still be useful // as an example if we want other UI tests in the future. diff --git a/tests/src/com/android/launcher3/RotationPreferenceTest.java b/tests/src/com/android/launcher3/RotationPreferenceTest.java index 0168ee66f..7259d35c2 100644 --- a/tests/src/com/android/launcher3/RotationPreferenceTest.java +++ b/tests/src/com/android/launcher3/RotationPreferenceTest.java @@ -8,10 +8,12 @@ import android.support.test.uiautomator.UiDevice; import android.support.test.uiautomator.UiObject; import android.support.test.uiautomator.UiSelector; import android.test.InstrumentationTestCase; +import android.test.suitebuilder.annotation.MediumTest; /** * Test for auto rotate preference. */ +@MediumTest public class RotationPreferenceTest extends InstrumentationTestCase { private UiDevice mDevice; diff --git a/tests/src/com/android/launcher3/model/GridSizeMigrationTaskTest.java b/tests/src/com/android/launcher3/model/GridSizeMigrationTaskTest.java index 46dac0aab..ccd8f7361 100644 --- a/tests/src/com/android/launcher3/model/GridSizeMigrationTaskTest.java +++ b/tests/src/com/android/launcher3/model/GridSizeMigrationTaskTest.java @@ -5,6 +5,7 @@ import android.content.Intent; import android.database.Cursor; import android.graphics.Point; import android.test.ProviderTestCase2; +import android.test.suitebuilder.annotation.MediumTest; import com.android.launcher3.InvariantDeviceProfile; import com.android.launcher3.LauncherModel; @@ -19,6 +20,7 @@ import java.util.HashSet; /** * Unit tests for {@link GridSizeMigrationTask} */ +@MediumTest public class GridSizeMigrationTaskTest extends ProviderTestCase2<TestLauncherProvider> { private static final long DESKTOP = LauncherSettings.Favorites.CONTAINER_DESKTOP; |