diff options
| author | 2019-03-07 16:49:04 +0000 | |
|---|---|---|
| committer | 2019-03-07 16:49:04 +0000 | |
| commit | b14ac6e9af3faa80b0c7cd48e36bda2767e5ed17 (patch) | |
| tree | b710e2a170bd0bf6f241ea13562dcd668ccd8684 | |
| parent | b496d6150c8d2c5bea199dc35c4b21e3f699e6f2 (diff) | |
| parent | c1f3e3787027c40e402b7e27aa3ac0eb3ef73f92 (diff) | |
Merge "Fixed flaky testTaskChangeCallbacks and promote three tests to presubmit"
| -rw-r--r-- | services/tests/wmtests/src/com/android/server/wm/RecentsAnimationControllerTest.java | 2 | ||||
| -rw-r--r-- | services/tests/wmtests/src/com/android/server/wm/TaskStackChangedListenerTest.java | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/services/tests/wmtests/src/com/android/server/wm/RecentsAnimationControllerTest.java b/services/tests/wmtests/src/com/android/server/wm/RecentsAnimationControllerTest.java index 763ea6293fcc..a03d28b47057 100644 --- a/services/tests/wmtests/src/com/android/server/wm/RecentsAnimationControllerTest.java +++ b/services/tests/wmtests/src/com/android/server/wm/RecentsAnimationControllerTest.java @@ -40,7 +40,6 @@ import android.util.SparseBooleanArray; import android.view.IRecentsAnimationRunner; import android.view.SurfaceControl; -import androidx.test.filters.FlakyTest; import androidx.test.filters.SmallTest; import com.android.server.wm.SurfaceAnimator.OnAnimationFinishedCallback; @@ -113,7 +112,6 @@ public class RecentsAnimationControllerTest extends WindowTestsBase { } @Test - @FlakyTest(bugId = 117117823) public void testIncludedApps_expectTargetAndVisible() { mWm.setRecentsAnimationController(mController); final AppWindowToken homeAppWindow = createAppWindowToken(mDisplayContent, diff --git a/services/tests/wmtests/src/com/android/server/wm/TaskStackChangedListenerTest.java b/services/tests/wmtests/src/com/android/server/wm/TaskStackChangedListenerTest.java index 42a205a2fb3d..b140da501c38 100644 --- a/services/tests/wmtests/src/com/android/server/wm/TaskStackChangedListenerTest.java +++ b/services/tests/wmtests/src/com/android/server/wm/TaskStackChangedListenerTest.java @@ -100,7 +100,6 @@ public class TaskStackChangedListenerTest { } @Test - @FlakyTest(detail = "Promote to presubmit when shown to be stable.") public void testTaskDescriptionChanged() throws Exception { final Object[] params = new Object[2]; final CountDownLatch latch = new CountDownLatch(1); @@ -133,7 +132,6 @@ public class TaskStackChangedListenerTest { } @Test - @FlakyTest(detail = "Promote to presubmit when shown to be stable.") public void testActivityRequestedOrientationChanged() throws Exception { final int[] params = new int[2]; final CountDownLatch latch = new CountDownLatch(1); @@ -214,6 +212,7 @@ public class TaskStackChangedListenerTest { // Test for onTaskRemovalStarted. assertEquals(1, taskRemovalStartedLatch.getCount()); + assertEquals(1, taskRemovedLatch.getCount()); activity.finishAndRemoveTask(); waitForCallback(taskRemovalStartedLatch); // onTaskRemovalStarted happens before the activity's window is removed. @@ -221,7 +220,6 @@ public class TaskStackChangedListenerTest { assertEquals(id, params[0]); // Test for onTaskRemoved. - assertEquals(1, taskRemovedLatch.getCount()); waitForCallback(taskRemovedLatch); assertEquals(id, params[0]); waitForCallback(onDetachedFromWindowLatch); |