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

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

Issue 628763003: Support InputRouter recycling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updates Created 6 years, 2 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
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 0b1d47f79a40f8597011245bb264b3a46a22956e..537df65154aafb92e62875fcd29441b44f651ecc 100644
--- a/content/browser/renderer_host/render_widget_host_unittest.cc
+++ b/content/browser/renderer_host/render_widget_host_unittest.cc
@@ -70,9 +70,6 @@ class MockInputRouter : public InputRouter {
virtual ~MockInputRouter() {}
// InputRouter
- virtual void Flush() override {
- flush_called_ = true;
- }
virtual bool SendInput(scoped_ptr<IPC::Message> message) override {
send_event_called_ = true;
return true;
@@ -101,6 +98,8 @@ class MockInputRouter : public InputRouter {
client_->FilterInputEvent(touch_event.event, touch_event.latency) ==
INPUT_EVENT_ACK_STATE_NOT_CONSUMED;
}
+ virtual void Recycle() override {}
+ virtual void RequestFlushedNotification() override {}
virtual const NativeWebKeyboardEvent* GetLastKeyboardEvent() const override {
NOTREACHED();
return NULL;
@@ -115,7 +114,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