Index: content/renderer/input/input_handler_proxy_unittest.cc |
diff --git a/content/renderer/input/input_handler_proxy_unittest.cc b/content/renderer/input/input_handler_proxy_unittest.cc |
index 6ee2be072120015649389187684939138b0e2cb6..48e67d2371fc911e8f3ce8d8b1f36bf7606fe608 100644 |
--- a/content/renderer/input/input_handler_proxy_unittest.cc |
+++ b/content/renderer/input/input_handler_proxy_unittest.cc |
@@ -43,7 +43,7 @@ class MockInputHandler : public cc::InputHandler { |
void(float magnify_delta, const gfx::Point& anchor)); |
MOCK_METHOD0(PinchGestureEnd, void()); |
- MOCK_METHOD0(ScheduleAnimation, void()); |
+ MOCK_METHOD0(SetNeedsAnimate, void()); |
MOCK_METHOD2(ScrollBegin, |
ScrollStatus(const gfx::Point& viewport_point, |
@@ -405,7 +405,7 @@ TEST_F(InputHandlerProxyTest, GestureFlingStartedTouchpad) { |
EXPECT_CALL(mock_input_handler_, ScrollBegin(testing::_, testing::_)) |
.WillOnce(testing::Return(cc::InputHandler::ScrollStarted)); |
EXPECT_CALL(mock_input_handler_, ScrollEnd()); |
- EXPECT_CALL(mock_input_handler_, ScheduleAnimation()); |
+ EXPECT_CALL(mock_input_handler_, SetNeedsAnimate()); |
gesture_.type = WebInputEvent::GestureFlingStart; |
gesture_.data.flingStart.velocityX = 10; |
@@ -488,7 +488,7 @@ TEST_F(InputHandlerProxyTest, GestureFlingAnimatesTouchpad) { |
gesture_.globalX = fling_global_point.x; |
gesture_.globalY = fling_global_point.y; |
gesture_.modifiers = modifiers; |
- EXPECT_CALL(mock_input_handler_, ScheduleAnimation()); |
+ EXPECT_CALL(mock_input_handler_, SetNeedsAnimate()); |
EXPECT_CALL(mock_input_handler_, ScrollBegin(testing::_, testing::_)) |
.WillOnce(testing::Return(cc::InputHandler::ScrollStarted)); |
EXPECT_CALL(mock_input_handler_, ScrollEnd()); |
@@ -500,7 +500,7 @@ TEST_F(InputHandlerProxyTest, GestureFlingAnimatesTouchpad) { |
// fling start will typically include the last scroll from the gesture that |
// lead to the scroll (either wheel or gesture scroll), so there should be no |
// visible hitch. |
- EXPECT_CALL(mock_input_handler_, ScheduleAnimation()); |
+ EXPECT_CALL(mock_input_handler_, SetNeedsAnimate()); |
EXPECT_CALL(mock_input_handler_, ScrollBegin(testing::_, testing::_)) |
.Times(0); |
base::TimeTicks time = base::TimeTicks() + base::TimeDelta::FromSeconds(10); |
@@ -509,7 +509,7 @@ TEST_F(InputHandlerProxyTest, GestureFlingAnimatesTouchpad) { |
testing::Mock::VerifyAndClearExpectations(&mock_input_handler_); |
// The second call should start scrolling in the -X direction. |
- EXPECT_CALL(mock_input_handler_, ScheduleAnimation()); |
+ EXPECT_CALL(mock_input_handler_, SetNeedsAnimate()); |
EXPECT_CALL(mock_input_handler_, ScrollBegin(testing::_, testing::_)) |
.WillOnce(testing::Return(cc::InputHandler::ScrollStarted)); |
EXPECT_CALL(mock_input_handler_, |
@@ -562,7 +562,7 @@ TEST_F(InputHandlerProxyTest, GestureFlingAnimatesTouchpad) { |
// Since we've aborted the fling, the next animation should be a no-op and |
// should not result in another |
// frame being requested. |
- EXPECT_CALL(mock_input_handler_, ScheduleAnimation()).Times(0); |
+ EXPECT_CALL(mock_input_handler_, SetNeedsAnimate()).Times(0); |
EXPECT_CALL(mock_input_handler_, ScrollBegin(testing::_, testing::_)) |
.Times(0); |
time += base::TimeDelta::FromMilliseconds(100); |
@@ -597,7 +597,7 @@ TEST_F(InputHandlerProxyTest, GestureFlingTransferResetsTouchpad) { |
gesture_.globalX = fling_global_point.x; |
gesture_.globalY = fling_global_point.y; |
gesture_.modifiers = modifiers; |
- EXPECT_CALL(mock_input_handler_, ScheduleAnimation()); |
+ EXPECT_CALL(mock_input_handler_, SetNeedsAnimate()); |
EXPECT_CALL(mock_input_handler_, ScrollBegin(testing::_, testing::_)) |
.WillOnce(testing::Return(cc::InputHandler::ScrollStarted)); |
EXPECT_CALL(mock_input_handler_, ScrollEnd()); |
@@ -607,7 +607,7 @@ TEST_F(InputHandlerProxyTest, GestureFlingTransferResetsTouchpad) { |
// Start the fling animation at time 10. This shouldn't actually scroll, just |
// establish a start time. |
- EXPECT_CALL(mock_input_handler_, ScheduleAnimation()); |
+ EXPECT_CALL(mock_input_handler_, SetNeedsAnimate()); |
EXPECT_CALL(mock_input_handler_, ScrollBegin(testing::_, testing::_)) |
.Times(0); |
base::TimeTicks time = base::TimeTicks() + base::TimeDelta::FromSeconds(10); |
@@ -616,7 +616,7 @@ TEST_F(InputHandlerProxyTest, GestureFlingTransferResetsTouchpad) { |
testing::Mock::VerifyAndClearExpectations(&mock_input_handler_); |
// The second call should start scrolling in the -X direction. |
- EXPECT_CALL(mock_input_handler_, ScheduleAnimation()); |
+ EXPECT_CALL(mock_input_handler_, SetNeedsAnimate()); |
EXPECT_CALL(mock_input_handler_, ScrollBegin(testing::_, testing::_)) |
.WillOnce(testing::Return(cc::InputHandler::ScrollStarted)); |
EXPECT_CALL(mock_input_handler_, |
@@ -670,7 +670,7 @@ TEST_F(InputHandlerProxyTest, GestureFlingTransferResetsTouchpad) { |
// Since we've aborted the fling, the next animation should be a no-op and |
// should not result in another |
// frame being requested. |
- EXPECT_CALL(mock_input_handler_, ScheduleAnimation()).Times(0); |
+ EXPECT_CALL(mock_input_handler_, SetNeedsAnimate()).Times(0); |
EXPECT_CALL(mock_input_handler_, ScrollBegin(testing::_, testing::_)) |
.Times(0); |
time += base::TimeDelta::FromMilliseconds(100); |
@@ -702,7 +702,7 @@ TEST_F(InputHandlerProxyTest, GestureFlingTransferResetsTouchpad) { |
gesture_.globalX = fling_global_point.x; |
gesture_.globalY = fling_global_point.y; |
gesture_.modifiers = modifiers; |
- EXPECT_CALL(mock_input_handler_, ScheduleAnimation()); |
+ EXPECT_CALL(mock_input_handler_, SetNeedsAnimate()); |
EXPECT_CALL(mock_input_handler_, ScrollBegin(testing::_, testing::_)) |
.WillOnce(testing::Return(cc::InputHandler::ScrollStarted)); |
EXPECT_CALL(mock_input_handler_, ScrollEnd()); |
@@ -712,7 +712,7 @@ TEST_F(InputHandlerProxyTest, GestureFlingTransferResetsTouchpad) { |
testing::Mock::VerifyAndClearExpectations(&mock_input_handler_); |
// Start the second fling animation at time 30. |
- EXPECT_CALL(mock_input_handler_, ScheduleAnimation()); |
+ EXPECT_CALL(mock_input_handler_, SetNeedsAnimate()); |
EXPECT_CALL(mock_input_handler_, ScrollBegin(testing::_, testing::_)) |
.Times(0); |
time = base::TimeTicks() + base::TimeDelta::FromSeconds(30); |
@@ -721,7 +721,7 @@ TEST_F(InputHandlerProxyTest, GestureFlingTransferResetsTouchpad) { |
testing::Mock::VerifyAndClearExpectations(&mock_input_handler_); |
// Tick the second fling once normally. |
- EXPECT_CALL(mock_input_handler_, ScheduleAnimation()); |
+ EXPECT_CALL(mock_input_handler_, SetNeedsAnimate()); |
EXPECT_CALL(mock_input_handler_, ScrollBegin(testing::_, testing::_)) |
.WillOnce(testing::Return(cc::InputHandler::ScrollStarted)); |
EXPECT_CALL(mock_input_handler_, |
@@ -776,7 +776,7 @@ TEST_F(InputHandlerProxyTest, GestureFlingStartedTouchscreen) { |
EXPECT_CALL(mock_input_handler_, FlingScrollBegin()) |
.WillOnce(testing::Return(cc::InputHandler::ScrollStarted)); |
- EXPECT_CALL(mock_input_handler_, ScheduleAnimation()); |
+ EXPECT_CALL(mock_input_handler_, SetNeedsAnimate()); |
gesture_.type = WebInputEvent::GestureFlingStart; |
gesture_.data.flingStart.velocityX = 10; |
@@ -881,7 +881,7 @@ TEST_F(InputHandlerProxyTest, GestureFlingAnimatesTouchscreen) { |
gesture_.globalX = fling_global_point.x; |
gesture_.globalY = fling_global_point.y; |
gesture_.modifiers = modifiers; |
- EXPECT_CALL(mock_input_handler_, ScheduleAnimation()); |
+ EXPECT_CALL(mock_input_handler_, SetNeedsAnimate()); |
EXPECT_CALL(mock_input_handler_, FlingScrollBegin()) |
.WillOnce(testing::Return(cc::InputHandler::ScrollStarted)); |
EXPECT_EQ(expected_disposition_, input_handler_->HandleInputEvent(gesture_)); |
@@ -892,14 +892,14 @@ TEST_F(InputHandlerProxyTest, GestureFlingAnimatesTouchscreen) { |
// fling start will typically include the last scroll from the gesture that |
// lead to the scroll (either wheel or gesture scroll), so there should be no |
// visible hitch. |
- EXPECT_CALL(mock_input_handler_, ScheduleAnimation()); |
+ EXPECT_CALL(mock_input_handler_, SetNeedsAnimate()); |
base::TimeTicks time = base::TimeTicks() + base::TimeDelta::FromSeconds(10); |
input_handler_->Animate(time); |
testing::Mock::VerifyAndClearExpectations(&mock_input_handler_); |
// The second call should start scrolling in the -X direction. |
- EXPECT_CALL(mock_input_handler_, ScheduleAnimation()); |
+ EXPECT_CALL(mock_input_handler_, SetNeedsAnimate()); |
EXPECT_CALL(mock_input_handler_, |
ScrollBy(testing::_, |
testing::Property(&gfx::Vector2dF::x, testing::Lt(0)))) |
@@ -945,7 +945,7 @@ TEST_F(InputHandlerProxyTest, GestureFlingWithValidTimestamp) { |
gesture_.globalX = fling_global_point.x; |
gesture_.globalY = fling_global_point.y; |
gesture_.modifiers = modifiers; |
- EXPECT_CALL(mock_input_handler_, ScheduleAnimation()); |
+ EXPECT_CALL(mock_input_handler_, SetNeedsAnimate()); |
EXPECT_CALL(mock_input_handler_, FlingScrollBegin()) |
.WillOnce(testing::Return(cc::InputHandler::ScrollStarted)); |
EXPECT_EQ(expected_disposition_, input_handler_->HandleInputEvent(gesture_)); |
@@ -956,7 +956,7 @@ TEST_F(InputHandlerProxyTest, GestureFlingWithValidTimestamp) { |
// the likelihood of a hitch between the scroll preceding the fling and |
// the first scroll generated by the fling. |
// Scrolling should start in the -X direction. |
- EXPECT_CALL(mock_input_handler_, ScheduleAnimation()); |
+ EXPECT_CALL(mock_input_handler_, SetNeedsAnimate()); |
EXPECT_CALL(mock_input_handler_, |
ScrollBy(testing::_, |
testing::Property(&gfx::Vector2dF::x, testing::Lt(0)))) |
@@ -1002,7 +1002,7 @@ TEST_F(InputHandlerProxyTest, GestureFlingWithInvalidTimestamp) { |
gesture_.globalX = fling_global_point.x; |
gesture_.globalY = fling_global_point.y; |
gesture_.modifiers = modifiers; |
- EXPECT_CALL(mock_input_handler_, ScheduleAnimation()); |
+ EXPECT_CALL(mock_input_handler_, SetNeedsAnimate()); |
EXPECT_CALL(mock_input_handler_, FlingScrollBegin()) |
.WillOnce(testing::Return(cc::InputHandler::ScrollStarted)); |
EXPECT_EQ(expected_disposition_, input_handler_->HandleInputEvent(gesture_)); |
@@ -1011,7 +1011,7 @@ TEST_F(InputHandlerProxyTest, GestureFlingWithInvalidTimestamp) { |
// Event though a time stamp was provided for the fling event, it will be |
// ignored as its too far in the past relative to the first animate call's |
// timestamp. |
- EXPECT_CALL(mock_input_handler_, ScheduleAnimation()); |
+ EXPECT_CALL(mock_input_handler_, SetNeedsAnimate()); |
base::TimeTicks time = |
base::TimeTicks() + start_time_offset + base::TimeDelta::FromSeconds(1); |
input_handler_->Animate(time); |
@@ -1019,7 +1019,7 @@ TEST_F(InputHandlerProxyTest, GestureFlingWithInvalidTimestamp) { |
testing::Mock::VerifyAndClearExpectations(&mock_input_handler_); |
// Further animation ticks should update the fling as usual. |
- EXPECT_CALL(mock_input_handler_, ScheduleAnimation()); |
+ EXPECT_CALL(mock_input_handler_, SetNeedsAnimate()); |
EXPECT_CALL(mock_input_handler_, |
ScrollBy(testing::_, |
testing::Property(&gfx::Vector2dF::x, testing::Lt(0)))) |
@@ -1068,7 +1068,7 @@ TEST_F(InputHandlerProxyTest, |
gesture_.globalX = fling_global_point.x; |
gesture_.globalY = fling_global_point.y; |
gesture_.modifiers = modifiers; |
- EXPECT_CALL(mock_input_handler_, ScheduleAnimation()); |
+ EXPECT_CALL(mock_input_handler_, SetNeedsAnimate()); |
EXPECT_CALL(mock_input_handler_, FlingScrollBegin()) |
.WillOnce(testing::Return(cc::InputHandler::ScrollStarted)); |
EXPECT_EQ(expected_disposition_, input_handler_->HandleInputEvent(gesture_)); |
@@ -1083,14 +1083,14 @@ TEST_F(InputHandlerProxyTest, |
// fling start will typically include the last scroll from the gesture that |
// lead to the scroll (either wheel or gesture scroll), so there should be no |
// visible hitch. |
- EXPECT_CALL(mock_input_handler_, ScheduleAnimation()); |
+ EXPECT_CALL(mock_input_handler_, SetNeedsAnimate()); |
base::TimeTicks time = base::TimeTicks() + base::TimeDelta::FromSeconds(10); |
input_handler_->Animate(time); |
testing::Mock::VerifyAndClearExpectations(&mock_input_handler_); |
// The second call should start scrolling in the -X direction. |
- EXPECT_CALL(mock_input_handler_, ScheduleAnimation()); |
+ EXPECT_CALL(mock_input_handler_, SetNeedsAnimate()); |
EXPECT_CALL(mock_input_handler_, |
ScrollBy(testing::_, |
testing::Property(&gfx::Vector2dF::x, testing::Lt(0)))) |
@@ -1120,7 +1120,7 @@ TEST_F(InputHandlerProxyTest, GestureFlingStopsAtContentEdge) { |
WebFloatPoint fling_delta = WebFloatPoint(1000, 1000); |
gesture_.data.flingStart.velocityX = fling_delta.x; |
gesture_.data.flingStart.velocityY = fling_delta.y; |
- EXPECT_CALL(mock_input_handler_, ScheduleAnimation()); |
+ EXPECT_CALL(mock_input_handler_, SetNeedsAnimate()); |
EXPECT_CALL(mock_input_handler_, ScrollBegin(testing::_, testing::_)) |
.WillOnce(testing::Return(cc::InputHandler::ScrollStarted)); |
EXPECT_CALL(mock_input_handler_, ScrollEnd()); |
@@ -1128,13 +1128,13 @@ TEST_F(InputHandlerProxyTest, GestureFlingStopsAtContentEdge) { |
testing::Mock::VerifyAndClearExpectations(&mock_input_handler_); |
// The first animate doesn't cause any scrolling. |
- EXPECT_CALL(mock_input_handler_, ScheduleAnimation()); |
+ EXPECT_CALL(mock_input_handler_, SetNeedsAnimate()); |
base::TimeTicks time = base::TimeTicks() + base::TimeDelta::FromSeconds(10); |
input_handler_->Animate(time); |
testing::Mock::VerifyAndClearExpectations(&mock_input_handler_); |
// The second animate starts scrolling in the positive X and Y directions. |
- EXPECT_CALL(mock_input_handler_, ScheduleAnimation()); |
+ EXPECT_CALL(mock_input_handler_, SetNeedsAnimate()); |
EXPECT_CALL(mock_input_handler_, ScrollBegin(testing::_, testing::_)) |
.WillOnce(testing::Return(cc::InputHandler::ScrollStarted)); |
EXPECT_CALL(mock_input_handler_, |
@@ -1162,7 +1162,7 @@ TEST_F(InputHandlerProxyTest, GestureFlingStopsAtContentEdge) { |
latest_overscroll_delta); |
// The next call to animate will no longer scroll vertically. |
- EXPECT_CALL(mock_input_handler_, ScheduleAnimation()); |
+ EXPECT_CALL(mock_input_handler_, SetNeedsAnimate()); |
EXPECT_CALL(mock_input_handler_, ScrollBegin(testing::_, testing::_)) |
.WillOnce(testing::Return(cc::InputHandler::ScrollStarted)); |
EXPECT_CALL(mock_input_handler_, |
@@ -1207,7 +1207,7 @@ TEST_F(InputHandlerProxyTest, GestureFlingNotCancelledBySmallTimeDelta) { |
gesture_.globalX = fling_global_point.x; |
gesture_.globalY = fling_global_point.y; |
gesture_.modifiers = modifiers; |
- EXPECT_CALL(mock_input_handler_, ScheduleAnimation()); |
+ EXPECT_CALL(mock_input_handler_, SetNeedsAnimate()); |
EXPECT_CALL(mock_input_handler_, FlingScrollBegin()) |
.WillOnce(testing::Return(cc::InputHandler::ScrollStarted)); |
EXPECT_EQ(expected_disposition_, input_handler_->HandleInputEvent(gesture_)); |
@@ -1215,7 +1215,7 @@ TEST_F(InputHandlerProxyTest, GestureFlingNotCancelledBySmallTimeDelta) { |
testing::Mock::VerifyAndClearExpectations(&mock_input_handler_); |
// With an animation timestamp equivalent to the starting timestamp, the |
// animation will simply be rescheduled. |
- EXPECT_CALL(mock_input_handler_, ScheduleAnimation()); |
+ EXPECT_CALL(mock_input_handler_, SetNeedsAnimate()); |
input_handler_->Animate(time); |
testing::Mock::VerifyAndClearExpectations(&mock_input_handler_); |
@@ -1223,7 +1223,7 @@ TEST_F(InputHandlerProxyTest, GestureFlingNotCancelledBySmallTimeDelta) { |
// A small time delta should not stop the fling, even if the client |
// reports no scrolling. |
- EXPECT_CALL(mock_input_handler_, ScheduleAnimation()); |
+ EXPECT_CALL(mock_input_handler_, SetNeedsAnimate()); |
EXPECT_CALL(mock_input_handler_, |
ScrollBy(testing::_, |
testing::Property(&gfx::Vector2dF::x, testing::Lt(0)))) |
@@ -1236,7 +1236,7 @@ TEST_F(InputHandlerProxyTest, GestureFlingNotCancelledBySmallTimeDelta) { |
// A time delta of zero should not stop the fling, and neither should it |
// trigger scrolling on the client. |
- EXPECT_CALL(mock_input_handler_, ScheduleAnimation()); |
+ EXPECT_CALL(mock_input_handler_, SetNeedsAnimate()); |
input_handler_->Animate(time); |
testing::Mock::VerifyAndClearExpectations(&mock_input_handler_); |
@@ -1276,18 +1276,18 @@ TEST_F(InputHandlerProxyTest, GestureFlingCancelledAfterBothAxesStopScrolling) { |
gesture_.data.flingStart.velocityY = fling_delta.y; |
EXPECT_CALL(mock_input_handler_, FlingScrollBegin()) |
.WillOnce(testing::Return(cc::InputHandler::ScrollStarted)); |
- EXPECT_CALL(mock_input_handler_, ScheduleAnimation()); |
+ EXPECT_CALL(mock_input_handler_, SetNeedsAnimate()); |
EXPECT_EQ(expected_disposition_, input_handler_->HandleInputEvent(gesture_)); |
testing::Mock::VerifyAndClearExpectations(&mock_input_handler_); |
// The first animate doesn't cause any scrolling. |
- EXPECT_CALL(mock_input_handler_, ScheduleAnimation()); |
+ EXPECT_CALL(mock_input_handler_, SetNeedsAnimate()); |
base::TimeTicks time = base::TimeTicks() + base::TimeDelta::FromSeconds(10); |
input_handler_->Animate(time); |
testing::Mock::VerifyAndClearExpectations(&mock_input_handler_); |
// The second animate starts scrolling in the positive X and Y directions. |
- EXPECT_CALL(mock_input_handler_, ScheduleAnimation()); |
+ EXPECT_CALL(mock_input_handler_, SetNeedsAnimate()); |
EXPECT_CALL(mock_input_handler_, |
ScrollBy(testing::_, |
testing::Property(&gfx::Vector2dF::y, testing::Lt(0)))) |
@@ -1312,7 +1312,7 @@ TEST_F(InputHandlerProxyTest, GestureFlingCancelledAfterBothAxesStopScrolling) { |
latest_overscroll_delta); |
// The next call to animate will no longer scroll vertically. |
- EXPECT_CALL(mock_input_handler_, ScheduleAnimation()); |
+ EXPECT_CALL(mock_input_handler_, SetNeedsAnimate()); |
EXPECT_CALL(mock_input_handler_, |
ScrollBy(testing::_, |
testing::Property(&gfx::Vector2dF::y, testing::Eq(0)))) |
@@ -1337,7 +1337,7 @@ TEST_F(InputHandlerProxyTest, GestureFlingCancelledAfterBothAxesStopScrolling) { |
latest_overscroll_delta); |
// The next call to animate will no longer scroll horizontally or vertically, |
// and the fling should be cancelled. |
- EXPECT_CALL(mock_input_handler_, ScheduleAnimation()).Times(0); |
+ EXPECT_CALL(mock_input_handler_, SetNeedsAnimate()).Times(0); |
EXPECT_CALL(mock_input_handler_, ScrollBy(testing::_, testing::_)).Times(0); |
EXPECT_CALL(mock_input_handler_, ScrollEnd()); |
time += base::TimeDelta::FromMilliseconds(10); |
@@ -1426,7 +1426,7 @@ TEST_F(InputHandlerProxyTest, GestureFlingCancelledByKeyboardEvent) { |
gesture_.data.flingStart.velocityY = fling_delta.y; |
EXPECT_CALL(mock_input_handler_, FlingScrollBegin()) |
.WillOnce(testing::Return(cc::InputHandler::ScrollStarted)); |
- EXPECT_CALL(mock_input_handler_, ScheduleAnimation()); |
+ EXPECT_CALL(mock_input_handler_, SetNeedsAnimate()); |
EXPECT_EQ(expected_disposition_, input_handler_->HandleInputEvent(gesture_)); |
EXPECT_TRUE(input_handler_->gesture_scroll_on_impl_thread_for_testing()); |
testing::Mock::VerifyAndClearExpectations(&mock_input_handler_); |
@@ -1481,7 +1481,7 @@ TEST_F(InputHandlerProxyTest, GestureFlingWithNegativeTimeDelta) { |
gesture_.globalX = fling_global_point.x; |
gesture_.globalY = fling_global_point.y; |
gesture_.modifiers = modifiers; |
- EXPECT_CALL(mock_input_handler_, ScheduleAnimation()); |
+ EXPECT_CALL(mock_input_handler_, SetNeedsAnimate()); |
EXPECT_CALL(mock_input_handler_, FlingScrollBegin()) |
.WillOnce(testing::Return(cc::InputHandler::ScrollStarted)); |
EXPECT_EQ(expected_disposition_, input_handler_->HandleInputEvent(gesture_)); |
@@ -1491,7 +1491,7 @@ TEST_F(InputHandlerProxyTest, GestureFlingWithNegativeTimeDelta) { |
// If we get a negative time delta, that is, the Animation tick time happens |
// before the fling's start time then we should *not* try scrolling and |
// instead reset the fling start time. |
- EXPECT_CALL(mock_input_handler_, ScheduleAnimation()); |
+ EXPECT_CALL(mock_input_handler_, SetNeedsAnimate()); |
EXPECT_CALL(mock_input_handler_, |
ScrollBy(testing::_, |
testing::_)).Times(0); |
@@ -1503,7 +1503,7 @@ TEST_F(InputHandlerProxyTest, GestureFlingWithNegativeTimeDelta) { |
// The first call should have reset the start time so subsequent calls should |
// generate scroll events. |
- EXPECT_CALL(mock_input_handler_, ScheduleAnimation()); |
+ EXPECT_CALL(mock_input_handler_, SetNeedsAnimate()); |
EXPECT_CALL(mock_input_handler_, |
ScrollBy(testing::_, |
testing::Property(&gfx::Vector2dF::x, testing::Lt(0)))) |