summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/tests/unittests/EventThreadTest.cpp
diff options
context:
space:
mode:
authorDominik Laskowski <domlaskowski@google.com>2019-01-30 10:15:19 -0800
committerDominik Laskowski <domlaskowski@google.com>2019-01-30 10:15:19 -0800
commit3001f1c332faee6a6557b703eb3eb3ce1eeebf45 (patch)
tree92ff8031b05533b3294638145bd79e444767fa56 /services/surfaceflinger/tests/unittests/EventThreadTest.cpp
parentea2e930e800ca502d204f1c2394be37d0a9925b7 (diff)
SF: Fix contradiction in EventThreadTest
The test was invoking a VSYNC callback right after checking that VSYNC callbacks are not enabled. Bug: 123530318 Test: vsyncRequestIsIgnoredIfDisplayIsDisconnected Change-Id: I5cc997266450e1ecb6ed2cd3901472984053477a
Diffstat (limited to 'services/surfaceflinger/tests/unittests/EventThreadTest.cpp')
-rw-r--r--services/surfaceflinger/tests/unittests/EventThreadTest.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/services/surfaceflinger/tests/unittests/EventThreadTest.cpp b/services/surfaceflinger/tests/unittests/EventThreadTest.cpp
index 79fb034ccc..dd90063d93 100644
--- a/services/surfaceflinger/tests/unittests/EventThreadTest.cpp
+++ b/services/surfaceflinger/tests/unittests/EventThreadTest.cpp
@@ -220,12 +220,6 @@ TEST_F(EventThreadTest, vsyncRequestIsIgnoredIfDisplayIsDisconnected) {
// EventThread should not enable vsync callbacks.
EXPECT_FALSE(mVSyncSetEnabledCallRecorder.waitForUnexpectedCall().has_value());
-
- // Use the received callback to signal a vsync event.
- // The event should not be received by the interceptor nor the connection.
- mCallback->onVSyncEvent(123);
- EXPECT_FALSE(mInterceptVSyncCallRecorder.waitForCall(0us).has_value());
- EXPECT_FALSE(mConnectionEventCallRecorder.waitForCall(0us).has_value());
}
TEST_F(EventThreadTest, requestNextVsyncPostsASingleVSyncEventToTheConnection) {