Chromium Code Reviews| Index: content/browser/renderer_host/render_widget_host_unittest.cc |
| diff --git a/content/browser/renderer_host/render_widget_host_unittest.cc b/content/browser/renderer_host/render_widget_host_unittest.cc |
| index 95620f942d58d94cf611f93d9a59d5b1185117da..3eca3c6c31cc4483f61004b2b0a6c4b2fb1ff312 100644 |
| --- a/content/browser/renderer_host/render_widget_host_unittest.cc |
| +++ b/content/browser/renderer_host/render_widget_host_unittest.cc |
| @@ -171,7 +171,6 @@ class MockInputRouter : public InputRouter { |
| const GestureEventWithLatencyInfo& gesture_event) const OVERRIDE { |
| return true; |
| } |
| - virtual bool HasQueuedGestureEvents() const OVERRIDE { return true; } |
| // IPC::Listener |
| virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE { |
| @@ -2289,12 +2288,15 @@ TEST_F(RenderWidgetHostTest, OverscrollMouseMoveCompletion) { |
| // Overscroll gesture is in progress. Send a mouse-move now. This should |
| // complete the gesture (because the amount overscrolled is above the |
| - // threshold), and consume the event. |
| + // threshold). |
| SimulateMouseMove(5, 10, 0); |
| EXPECT_EQ(OVERSCROLL_EAST, host_->overscroll_delegate()->completed_mode()); |
| EXPECT_EQ(OVERSCROLL_NONE, host_->overscroll_mode()); |
| EXPECT_EQ(OVERSCROLL_NONE, host_->overscroll_delegate()->current_mode()); |
| - EXPECT_EQ(0U, process_->sink().message_count()); |
| + EXPECT_EQ(1U, process_->sink().message_count()); |
| + process_->sink().ClearMessages(); |
| + SendInputEventACK(WebInputEvent::MouseMove, |
| + INPUT_EVENT_ACK_STATE_NOT_CONSUMED); |
|
jdduke (slow)
2013/09/12 16:32:35
Are there any additional states or event sequences
sadrul
2013/09/12 17:31:20
I added some expectations in a few more tests.
|
| SimulateGestureEvent(WebInputEvent::GestureScrollEnd, |
| WebGestureEvent::Touchscreen); |