Make sure TAPL waits for Launcher activity to stop each time it stops
This helps to ensure that the test doesn't proceed while the activity is still stopping and it's state hasn't settled. We introduce a count of STOP events and make sure it's 0 except for cases where stops are safe to ignore or we have waited for them. Bug: 313926097 Flag: N/A Test: presubmit Change-Id: I51c73c89854fcaa390d47a57389da18b2ce0ee6c
This commit is contained in:
1 parent
53eb01bcb5
commit
dd33b64a64
6 files changed
+53
-2
No files matched your search
@@ -177,6 +177,9 @@ public final class TestProtocol {
|
||||
public static final String REQUEST_UNSTASH_BUBBLE_BAR_IF_STASHED =
|
||||
"unstash-bubble-bar-if-stashed";
|
||||
|
||||
public static final String REQUEST_GET_AND_RESET_ACTIVITY_STOP_COUNT =
|
||||
"get-and-reset-activity-stops";
|
||||
|
||||
/** Logs {@link Log#d(String, String)} if {@link #sDebugTracing} is true. */
|
||||
public static void testLogD(String tag, String message) {
|
||||
if (!sDebugTracing) {
|
||||
|
||||
Reference in new issue
Block a user