Index: content/browser/frame_host/render_widget_host_view_child_frame_unittest.cc |
diff --git a/content/browser/frame_host/render_widget_host_view_child_frame_unittest.cc b/content/browser/frame_host/render_widget_host_view_child_frame_unittest.cc |
index 4584e084c71159d8e4ab004ef74527fe62ec48e7..abd442370e34374edfdfc4b463943d4c9c37d784 100644 |
--- a/content/browser/frame_host/render_widget_host_view_child_frame_unittest.cc |
+++ b/content/browser/frame_host/render_widget_host_view_child_frame_unittest.cc |
@@ -19,6 +19,7 @@ |
#include "content/browser/gpu/compositor_util.h" |
#include "content/browser/renderer_host/render_widget_host_delegate.h" |
#include "content/browser/renderer_host/render_widget_host_impl.h" |
+#include "content/common/text_input_state.h" |
#include "content/common/view_messages.h" |
#include "content/public/browser/render_widget_host_view.h" |
#include "content/public/test/mock_render_process_host.h" |
@@ -30,13 +31,20 @@ namespace content { |
namespace { |
class MockRenderWidgetHostDelegate : public RenderWidgetHostDelegate { |
public: |
- MockRenderWidgetHostDelegate() {} |
+ MockRenderWidgetHostDelegate() : text_input_state_(new TextInputState()) {} |
~MockRenderWidgetHostDelegate() override {} |
+ |
+ const TextInputState* GetTextInputState() override { |
+ return text_input_state_.get(); |
+ } |
+ |
private: |
void Cut() override {} |
void Copy() override {} |
void Paste() override {} |
void SelectAll() override {} |
+ |
+ scoped_ptr<TextInputState> text_input_state_; |
}; |
class MockCrossProcessFrameConnector : public CrossProcessFrameConnector { |