Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 89e486a5 authored by Siarhei Vishniakou's avatar Siarhei Vishniakou Committed by Automerger Merge Worker
Browse files

Ensure dispatcher is idle before checking policy state am: 4fd86737

parents 2d4a0efd 4fd86737
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -4592,6 +4592,7 @@ TEST_F(InputDispatcherTest, FocusedWindow_ReceivesFocusEventAndKeyEvent) {
    window->consumeKeyDown(ADISPLAY_ID_DEFAULT);

    // Should have poked user activity
    mDispatcher->waitForIdle();
    mFakePolicy->assertUserActivityPoked();
}

@@ -4613,6 +4614,7 @@ TEST_F(InputDispatcherTest, FocusedWindow_DisableUserActivity) {
    window->consumeKeyDown(ADISPLAY_ID_DEFAULT);

    // Should have poked user activity
    mDispatcher->waitForIdle();
    mFakePolicy->assertUserActivityNotPoked();
}

@@ -4696,6 +4698,7 @@ TEST_F(InputDispatcherTest, InjectedTouchesPokeUserActivity) {
            AllOf(WithMotionAction(ACTION_DOWN), WithDisplayId(ADISPLAY_ID_DEFAULT)));

    // Should have poked user activity
    mDispatcher->waitForIdle();
    mFakePolicy->assertUserActivityPoked();
}