| Index: blimp/engine/feature/engine_render_widget_feature_unittest.cc
|
| diff --git a/blimp/engine/feature/engine_render_widget_feature_unittest.cc b/blimp/engine/feature/engine_render_widget_feature_unittest.cc
|
| index a16b57d117a774ede7667e74339bf8d3760dc0d9..8621e4a6e2fdda536a40d6df587fc36e9c72fec1 100644
|
| --- a/blimp/engine/feature/engine_render_widget_feature_unittest.cc
|
| +++ b/blimp/engine/feature/engine_render_widget_feature_unittest.cc
|
| @@ -22,7 +22,7 @@
|
| #include "testing/gmock/include/gmock/gmock.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| #include "third_party/WebKit/public/web/WebInputEvent.h"
|
| -#include "ui/base/ime/text_input_client.h"
|
| +#include "ui/base/ime/dummy_text_input_client.h"
|
|
|
| using testing::_;
|
| using testing::InSequence;
|
| @@ -103,48 +103,11 @@ class MockRenderWidgetHost
|
| bool Send(IPC::Message* msg) override { return false; }
|
| };
|
|
|
| -class MockTextInputClient : public ui::TextInputClient {
|
| - ui::TextInputType text_input_type_;
|
| -
|
| +class MockTextInputClient : public ui::DummyTextInputClient {
|
| public:
|
| - MockTextInputClient() : text_input_type_(ui::TEXT_INPUT_TYPE_TEXT) {}
|
| + MockTextInputClient() : DummyTextInputClient(ui::TEXT_INPUT_TYPE_TEXT) {}
|
| ~MockTextInputClient() override {}
|
|
|
| - void SetCompositionText(const ui::CompositionText& composition) override {}
|
| - void ConfirmCompositionText() override {}
|
| - void ClearCompositionText() override {}
|
| - void InsertText(const base::string16& text) override {}
|
| - void InsertChar(const ui::KeyEvent& event) override {}
|
| - ui::TextInputType GetTextInputType() const override {
|
| - return text_input_type_;
|
| - }
|
| - ui::TextInputMode GetTextInputMode() const override {
|
| - return ui::TEXT_INPUT_MODE_DEFAULT;
|
| - }
|
| - int GetTextInputFlags() const override { return 0; }
|
| - bool CanComposeInline() const override { return false; }
|
| - gfx::Rect GetCaretBounds() const override { return gfx::Rect(); }
|
| - bool GetCompositionCharacterBounds(uint32_t index,
|
| - gfx::Rect* rect) const override {
|
| - return false;
|
| - }
|
| - bool HasCompositionText() const override { return false; }
|
| - bool GetTextRange(gfx::Range* range) const override { return false; }
|
| - bool GetCompositionTextRange(gfx::Range* range) const override {
|
| - return false;
|
| - }
|
| - bool GetSelectionRange(gfx::Range* range) const override { return false; }
|
| - bool SetSelectionRange(const gfx::Range& range) override { return false; }
|
| - bool DeleteRange(const gfx::Range& range) override { return false; }
|
| - void OnInputMethodChanged() override {}
|
| - bool ChangeTextDirectionAndLayoutAlignment(
|
| - base::i18n::TextDirection direction) override {
|
| - return false;
|
| - }
|
| - void ExtendSelectionAndDelete(size_t before, size_t after) override {}
|
| - void EnsureCaretInRect(const gfx::Rect& rect) override {}
|
| - bool IsEditCommandEnabled(int command_id) override { return false; }
|
| - void SetEditCommandForNextKeyEvent(int command_id) override {}
|
| bool GetTextFromRange(const gfx::Range& range,
|
| base::string16* text) const override {
|
| *text = base::string16(base::ASCIIToUTF16("green apple"));
|
|
|