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

Side by Side Diff: third_party/WebKit/Source/core/editing/spellcheck/SpellCheckTestBase.cpp

Issue 2919913002: Add SpellCheckTestBase::GetSpellChecker() (Closed)
Patch Set: Created 3 years, 6 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 unified diff | Download patch
OLDNEW
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698