OSDN Git Service

Add system to avoid a crash stopping tests from running
authorJason Monk <jmonk@google.com>
Tue, 27 Jun 2017 17:13:49 +0000 (13:13 -0400)
committerJason Monk <jmonk@google.com>
Tue, 27 Jun 2017 18:48:45 +0000 (14:48 -0400)
commitc429f690e54db1bdc4631aab7c0191e30ccf1d51
treedee65e4c2b392474bb16df051ef9be5bed37b0c4
parent21c7490f207c60541935497b0df58604eb578bd5
Add system to avoid a crash stopping tests from running

Add a system such that when a crash happens on the main thread, it is
delayed until the tests complete, then thrown.

Also mark some old flaky tests as not flaky as they should be good
now.

Test: runtest systemui
Change-Id: Ic18a38daf4a93dab63549d834fa00f295644fbf1
Fixes: 629357206225190362529569
14 files changed:
packages/SystemUI/tests/AndroidManifest.xml
packages/SystemUI/tests/src/com/android/systemui/RoundedCornersTest.java
packages/SystemUI/tests/src/com/android/systemui/SysuiTestCase.java
packages/SystemUI/tests/src/com/android/systemui/doze/DozeTriggersTest.java
packages/SystemUI/tests/src/com/android/systemui/qs/QSDetailTest.java
packages/SystemUI/tests/src/com/android/systemui/qs/QSFooterTest.java
packages/SystemUI/tests/src/com/android/systemui/qs/QSPanelTest.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/ExpandableNotificationRowTest.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/NotificationContentViewTest.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/NotificationCustomViewWrapperTest.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/stack/NotificationChildrenContainerTest.java
services/tests/notification/AndroidManifest.xml
tests/testables/src/android/testing/TestableInstrumentation.java [new file with mode: 0644]
tests/testables/src/android/testing/TestableLooper.java