| Index: content/browser/renderer_host/input/input_router_impl_unittest.cc
|
| diff --git a/content/browser/renderer_host/input/input_router_impl_unittest.cc b/content/browser/renderer_host/input/input_router_impl_unittest.cc
|
| index fbbddb1906d915203bcea0ca54439b3dcccd4ca7..3e613f5b4d503dd22062c9ded025502e89bb84ea 100644
|
| --- a/content/browser/renderer_host/input/input_router_impl_unittest.cc
|
| +++ b/content/browser/renderer_host/input/input_router_impl_unittest.cc
|
| @@ -1759,9 +1759,10 @@ TEST_F(InputRouterImplTest, TouchpadPinchAndScrollUpdate) {
|
| EXPECT_EQ(1, client_->in_flight_event_count());
|
|
|
| // Ack'ing the first scroll should trigger both the coalesced scroll and the
|
| - // coalesced pinch events (which is sent to the renderer as a wheel event).
|
| + // coalesced pinch events.
|
| SendInputEventACK(WebInputEvent::GestureScrollUpdate,
|
| INPUT_EVENT_ACK_STATE_CONSUMED);
|
| + EXPECT_EQ(WebInputEvent::GestureScrollUpdate, ack_handler_->ack_event_type());
|
| EXPECT_EQ(1U, ack_handler_->GetAndResetAckCount());
|
| EXPECT_EQ(2U, GetSentMessageCountAndResetSink());
|
| EXPECT_EQ(2, client_->in_flight_event_count());
|
| @@ -1770,12 +1771,15 @@ TEST_F(InputRouterImplTest, TouchpadPinchAndScrollUpdate) {
|
| SendInputEventACK(WebInputEvent::GestureScrollUpdate,
|
| INPUT_EVENT_ACK_STATE_CONSUMED);
|
| EXPECT_EQ(0U, GetSentMessageCountAndResetSink());
|
| + EXPECT_EQ(WebInputEvent::GestureScrollUpdate, ack_handler_->ack_event_type());
|
| EXPECT_EQ(1U, ack_handler_->GetAndResetAckCount());
|
| EXPECT_EQ(1, client_->in_flight_event_count());
|
|
|
| // Ack the wheel event.
|
| - SendInputEventACK(WebInputEvent::MouseWheel, INPUT_EVENT_ACK_STATE_CONSUMED);
|
| + SendInputEventACK(WebInputEvent::GesturePinchUpdate,
|
| + INPUT_EVENT_ACK_STATE_CONSUMED);
|
| EXPECT_EQ(0U, GetSentMessageCountAndResetSink());
|
| + EXPECT_EQ(WebInputEvent::GesturePinchUpdate, ack_handler_->ack_event_type());
|
| EXPECT_EQ(1U, ack_handler_->GetAndResetAckCount());
|
| EXPECT_EQ(0, client_->in_flight_event_count());
|
| }
|
|
|