diff options
author | vadimt <vadimt@google.com> | 2019-05-06 16:13:48 -0700 |
---|---|---|
committer | vadimt <vadimt@google.com> | 2019-05-06 16:14:39 -0700 |
commit | f55e87c36bab24f8619b42f3425b3236a85c50b9 (patch) | |
tree | 5a483deeab9753199703e573bf302c195e169deb /quickstep/tests | |
parent | ef8ba7bb51201bb40572d51117e7d980afb8b352 (diff) | |
download | android_packages_apps_Trebuchet-f55e87c36bab24f8619b42f3425b3236a85c50b9.tar.gz android_packages_apps_Trebuchet-f55e87c36bab24f8619b42f3425b3236a85c50b9.tar.bz2 android_packages_apps_Trebuchet-f55e87c36bab24f8619b42f3425b3236a85c50b9.zip |
Fixing AppPredictionsUITests
Bug: 131772711
Bug: 131188880
Change-Id: Ic6556b26464766294ced7f85af716b0a4eb51ca1
Diffstat (limited to 'quickstep/tests')
-rw-r--r-- | quickstep/tests/src/com/android/quickstep/AppPredictionsUITests.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/quickstep/tests/src/com/android/quickstep/AppPredictionsUITests.java b/quickstep/tests/src/com/android/quickstep/AppPredictionsUITests.java index 181713550..ffe363335 100644 --- a/quickstep/tests/src/com/android/quickstep/AppPredictionsUITests.java +++ b/quickstep/tests/src/com/android/quickstep/AppPredictionsUITests.java @@ -40,7 +40,6 @@ import com.android.launcher3.model.AppLaunchTracker; import org.junit.After; import org.junit.Before; -import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; @@ -70,6 +69,8 @@ public class AppPredictionsUITests extends AbstractQuickStepTest { // Disable app tracker AppLaunchTracker.INSTANCE.initializeForTesting(new AppLaunchTracker()); + PredictionUiStateManager.INSTANCE.initializeForTesting(null); + mCallback = PredictionUiStateManager.INSTANCE.get(mTargetContext).appPredictorCallback( Client.HOME); @@ -85,7 +86,6 @@ public class AppPredictionsUITests extends AbstractQuickStepTest { * Test that prediction UI is updated as soon as we get predictions from the system */ @Test - @Ignore // b/131772711: this really fails (when being run as a part of the whole test suite)! public void testPredictionExistsInAllApps() { mActivityMonitor.startLauncher(); mLauncher.pressHome().switchToAllApps(); @@ -118,7 +118,6 @@ public class AppPredictionsUITests extends AbstractQuickStepTest { } @Test - @Ignore // b/131772711 - this was failing in the lab public void testPredictionsDisabled() { mActivityMonitor.startLauncher(); sendPredictionUpdate(); |