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

Unified Diff: content/browser/renderer_host/render_widget_host_unittest.cc

Issue 660663002: Clear pending events upon main frame navigation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updates Created 6 years, 1 month 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
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 830ab01ed0cd7bbb7be25ea388ed52aaab6ceed8..a1cb8fe6799a748527c66838e72aacf62188fea9 100644
--- a/content/browser/renderer_host/render_widget_host_unittest.cc
+++ b/content/browser/renderer_host/render_widget_host_unittest.cc
@@ -70,7 +70,6 @@ class MockInputRouter : public InputRouter {
~MockInputRouter() override {}
// InputRouter
- void Flush() override { flush_called_ = true; }
bool SendInput(scoped_ptr<IPC::Message> message) override {
send_event_called_ = true;
return true;
@@ -96,6 +95,7 @@ class MockInputRouter : public InputRouter {
client_->FilterInputEvent(touch_event.event, touch_event.latency) ==
INPUT_EVENT_ACK_STATE_NOT_CONSUMED;
}
+ virtual void RequestFlushedNotification() override {}
const NativeWebKeyboardEvent* GetLastKeyboardEvent() const override {
NOTREACHED();
return NULL;
@@ -110,7 +110,6 @@ class MockInputRouter : public InputRouter {
return false;
}
- bool flush_called_;
bool send_event_called_;
bool sent_mouse_event_;
bool sent_wheel_event_;

Powered by Google App Engine
This is Rietveld 408576698