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

Unified Diff: content/renderer/gpu/input_handler_proxy_unittest.cc

Issue 15651006: cc: Disable LastInputEventForBeginFrame (Closed) Base URL: http://git.chromium.org/chromium/src.git@nobfafteri
Patch Set: Remove HandleInputEventInternal Created 7 years, 6 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 | « content/renderer/gpu/input_handler_proxy.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/input_handler_proxy_unittest.cc
diff --git a/content/renderer/gpu/input_handler_proxy_unittest.cc b/content/renderer/gpu/input_handler_proxy_unittest.cc
index 14ea2b37dea5fc9db09b988d6d0475360ed7ec52..0abf8039e44b9d4208d366e111586aee05664036 100644
--- a/content/renderer/gpu/input_handler_proxy_unittest.cc
+++ b/content/renderer/gpu/input_handler_proxy_unittest.cc
@@ -50,9 +50,6 @@ class MockInputHandler : public cc::InputHandler {
MOCK_METHOD0(ScrollEnd, void());
MOCK_METHOD0(FlingScrollBegin, cc::InputHandler::ScrollStatus());
- MOCK_METHOD1(DidReceiveLastInputEventForBeginFrame,
- void(base::TimeTicks time));
-
virtual void BindToClient(cc::InputHandlerClient* client) OVERRIDE {}
virtual void StartPageScaleAnimation(gfx::Vector2d target_offset,
@@ -952,20 +949,6 @@ TEST_F(InputHandlerProxyTest,
EXPECT_TRUE(!input_handler_->gesture_scroll_on_impl_thread_for_testing());
}
-TEST_F(InputHandlerProxyTest, LastInputEventForVSync) {
- expected_disposition_ = InputHandlerProxy::DROP_EVENT;
- VERIFY_AND_RESET_MOCKS();
-
- gesture_.type = WebInputEvent::GestureFlingCancel;
- gesture_.timeStampSeconds = 1234;
- base::TimeTicks time =
- base::TimeTicks() +
- base::TimeDelta::FromSeconds(gesture_.timeStampSeconds);
- gesture_.modifiers |= WebInputEvent::IsLastInputEventForCurrentVSync;
- EXPECT_CALL(mock_input_handler_, DidReceiveLastInputEventForBeginFrame(time));
- EXPECT_EQ(expected_disposition_, input_handler_->HandleInputEvent(gesture_));
-}
-
TEST_F(InputHandlerProxyTest, GestureFlingStopsAtContentEdge) {
// We shouldn't send any events to the widget for this gesture.
expected_disposition_ = InputHandlerProxy::DID_HANDLE;
« no previous file with comments | « content/renderer/gpu/input_handler_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698