OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "core/editing/spellcheck/SpellCheckTestBase.h" | 5 #include "core/editing/spellcheck/SpellCheckTestBase.h" |
6 | 6 |
| 7 #include "core/frame/LocalFrame.h" |
| 8 |
7 namespace blink { | 9 namespace blink { |
8 | 10 |
9 void SpellCheckTestBase::SetUp() { | 11 void SpellCheckTestBase::SetUp() { |
10 Page::PageClients page_clients; | 12 Page::PageClients page_clients; |
11 FillWithEmptyClients(page_clients); | 13 FillWithEmptyClients(page_clients); |
12 spell_checker_client_ = WTF::WrapUnique(new DummySpellCheckerClient); | 14 spell_checker_client_ = WTF::WrapUnique(new DummySpellCheckerClient); |
13 page_clients.spell_checker_client = spell_checker_client_.get(); | 15 page_clients.spell_checker_client = spell_checker_client_.get(); |
14 SetupPageWithClients(&page_clients); | 16 SetupPageWithClients(&page_clients); |
15 } | 17 } |
16 | 18 |
| 19 SpellChecker& SpellCheckTestBase::GetSpellChecker() const { |
| 20 return GetFrame().GetSpellChecker(); |
| 21 } |
| 22 |
17 } // namespace blink | 23 } // namespace blink |
OLD | NEW |