Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(309)

Unified Diff: Source/WebKit/chromium/tests/WebCompositorInputHandlerImplTest.cpp

Issue 13880009: Include timestamp with vsync-delineating input events (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased. Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebKit/chromium/src/WebCompositorInputHandlerImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebKit/chromium/tests/WebCompositorInputHandlerImplTest.cpp
diff --git a/Source/WebKit/chromium/tests/WebCompositorInputHandlerImplTest.cpp b/Source/WebKit/chromium/tests/WebCompositorInputHandlerImplTest.cpp
index e9235918a31d4616ba7e2665853257ac265b6e51..8d17e40900fc0bb19e9f73bd6ccc06bc0156a25e 100644
--- a/Source/WebKit/chromium/tests/WebCompositorInputHandlerImplTest.cpp
+++ b/Source/WebKit/chromium/tests/WebCompositorInputHandlerImplTest.cpp
@@ -66,7 +66,7 @@ public:
MOCK_METHOD2(scrollVerticallyByPageIfPossible, bool(WebPoint, WebScrollbar::ScrollDirection));
MOCK_METHOD0(scrollEnd, void());
- MOCK_METHOD0(didReceiveLastInputEventForVSync, void());
+ MOCK_METHOD1(didReceiveLastInputEventForVSync, void(double));
private:
virtual void startPageScaleAnimation(WebSize targetPosition,
@@ -828,8 +828,9 @@ TEST_F(WebCompositorInputHandlerImplTest, lastInputEventForVSync)
VERIFY_AND_RESET_MOCKS();
gesture.type = WebInputEvent::GestureFlingCancel;
+ gesture.timeStampSeconds = 1234;
gesture.modifiers |= WebInputEvent::IsLastInputEventForCurrentVSync;
- EXPECT_CALL(m_mockInputHandlerClient, didReceiveLastInputEventForVSync());
+ EXPECT_CALL(m_mockInputHandlerClient, didReceiveLastInputEventForVSync(gesture.timeStampSeconds));
m_inputHandler->handleInputEvent(gesture);
}
« no previous file with comments | « Source/WebKit/chromium/src/WebCompositorInputHandlerImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698