Chromium Code Reviews| Index: third_party/WebKit/Source/core/html/TextControlElementTest.cpp |
| diff --git a/third_party/WebKit/Source/core/html/TextControlElementTest.cpp b/third_party/WebKit/Source/core/html/TextControlElementTest.cpp |
| index a4c577f0b6f7f33fd8bbdacb5791c5329af03f67..22d78a48528e4e4c689d3daf698f4b35f4e02dd3 100644 |
| --- a/third_party/WebKit/Source/core/html/TextControlElementTest.cpp |
| +++ b/third_party/WebKit/Source/core/html/TextControlElementTest.cpp |
| @@ -4,18 +4,17 @@ |
| #include "core/html/TextControlElement.h" |
| +#include <memory> |
|
yosin_UTC9
2017/02/23 02:52:08
Please move this removal in another patch to make
Xiaocheng
2017/02/23 03:36:43
Done.
|
| #include "core/dom/Document.h" |
| -#include "core/editing/spellcheck/SpellChecker.h" |
| +#include "core/editing/FrameSelection.h" |
| #include "core/frame/FrameView.h" |
| #include "core/html/HTMLInputElement.h" |
| #include "core/html/HTMLTextAreaElement.h" |
| #include "core/loader/EmptyClients.h" |
| -#include "core/page/SpellCheckerClient.h" |
| #include "core/testing/DummyPageHolder.h" |
| #include "platform/testing/UnitTestHelpers.h" |
| #include "testing/gtest/include/gtest/gtest.h" |
| #include "wtf/PtrUtil.h" |
| -#include <memory> |
| namespace blink { |
| @@ -32,7 +31,6 @@ class TextControlElementTest : public ::testing::Test { |
| void forceLayoutFlag(); |
| private: |
| - std::unique_ptr<SpellCheckerClient> m_spellCheckerClient; |
| std::unique_ptr<DummyPageHolder> m_dummyPageHolder; |
| Persistent<Document> m_document; |
| @@ -40,23 +38,9 @@ class TextControlElementTest : public ::testing::Test { |
| Persistent<HTMLInputElement> m_input; |
| }; |
| -class DummySpellCheckerClient : public EmptySpellCheckerClient { |
| - public: |
| - virtual ~DummySpellCheckerClient() {} |
| - |
| - bool isSpellCheckingEnabled() override { return true; } |
| - |
| - TextCheckerClient& textChecker() override { return m_emptyTextCheckerClient; } |
| - |
| - private: |
| - EmptyTextCheckerClient m_emptyTextCheckerClient; |
| -}; |
| - |
| void TextControlElementTest::SetUp() { |
| Page::PageClients pageClients; |
| fillWithEmptyClients(pageClients); |
| - m_spellCheckerClient = WTF::wrapUnique(new DummySpellCheckerClient); |
| - pageClients.spellCheckerClient = m_spellCheckerClient.get(); |
| m_dummyPageHolder = DummyPageHolder::create(IntSize(800, 600), &pageClients); |
| m_document = &m_dummyPageHolder->document(); |