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

Unified Diff: content/browser/renderer_host/text_input_client_mac_unittest.mm

Issue 10377158: Move keyboard related methods from RenderViewHostDelegate to a new RenderWidgetHostDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove crbug link Created 8 years, 7 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/text_input_client_mac_unittest.mm
diff --git a/content/browser/renderer_host/text_input_client_mac_unittest.mm b/content/browser/renderer_host/text_input_client_mac_unittest.mm
index 52b31d16eac183765642313dda15422423e3fecf..dc3b4c5241a4f70453a8bf19cf5c0c89f73f5fd4 100644
--- a/content/browser/renderer_host/text_input_client_mac_unittest.mm
+++ b/content/browser/renderer_host/text_input_client_mac_unittest.mm
@@ -8,6 +8,7 @@
#include "base/message_loop.h"
#include "base/threading/thread.h"
#include "content/browser/renderer_host/render_process_host_impl.h"
+#include "content/browser/renderer_host/render_widget_host_delegate.h"
#include "content/browser/renderer_host/render_widget_host_impl.h"
#include "content/browser/renderer_host/text_input_client_message_filter.h"
#include "content/common/text_input_client_messages.h"
@@ -25,6 +26,12 @@ namespace {
const int64 kTaskDelayMs = 200;
+class MockRenderWidgetHostDelegate : public content::RenderWidgetHostDelegate {
+ public:
+ MockRenderWidgetHostDelegate() {}
+ virtual ~MockRenderWidgetHostDelegate() {}
+};
+
// This test does not test the WebKit side of the dictionary system (which
// performs the actual data fetching), but rather this just tests that the
// service's signaling system works.
@@ -34,7 +41,9 @@ class TextInputClientMacTest : public testing::Test {
: message_loop_(MessageLoop::TYPE_UI),
browser_context_(),
process_factory_(),
- widget_(process_factory_.CreateRenderProcessHost(&browser_context_),
+ delegate_(),
+ widget_(&delegate_,
+ process_factory_.CreateRenderProcessHost(&browser_context_),
MSG_ROUTING_NONE),
thread_("TextInputClientMacTestThread") {}
@@ -72,6 +81,7 @@ class TextInputClientMacTest : public testing::Test {
// Gets deleted when the last RWH in the "process" gets destroyed.
MockRenderProcessHostFactory process_factory_;
+ MockRenderWidgetHostDelegate delegate_;
RenderWidgetHostImpl widget_;
base::Thread thread_;
« no previous file with comments | « content/browser/renderer_host/test_render_view_host.cc ('k') | content/browser/web_contents/interstitial_page_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698