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 #ifndef SpellCheckTestBase_h | 5 #ifndef SpellCheckTestBase_h |
6 #define SpellCheckTestBase_h | 6 #define SpellCheckTestBase_h |
7 | 7 |
8 #include "core/editing/EditingTestBase.h" | 8 #include "core/editing/EditingTestBase.h" |
9 #include "core/loader/EmptyClients.h" | 9 #include "core/loader/EmptyClients.h" |
10 #include "core/testing/DummyPageHolder.h" | 10 #include "core/testing/DummyPageHolder.h" |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
| 14 class SpellChecker; |
| 15 |
14 class SpellCheckTestBase : public EditingTestBase { | 16 class SpellCheckTestBase : public EditingTestBase { |
15 protected: | 17 protected: |
16 void SetUp() override; | 18 void SetUp() override; |
17 | 19 |
| 20 SpellChecker& GetSpellChecker() const; |
| 21 |
18 private: | 22 private: |
19 class DummySpellCheckerClient : public EmptySpellCheckerClient { | 23 class DummySpellCheckerClient : public EmptySpellCheckerClient { |
20 public: | 24 public: |
21 virtual ~DummySpellCheckerClient() {} | 25 virtual ~DummySpellCheckerClient() {} |
22 | 26 |
23 bool IsSpellCheckingEnabled() override { return true; } | 27 bool IsSpellCheckingEnabled() override { return true; } |
24 }; | 28 }; |
25 | 29 |
26 std::unique_ptr<DummySpellCheckerClient> spell_checker_client_; | 30 std::unique_ptr<DummySpellCheckerClient> spell_checker_client_; |
27 }; | 31 }; |
28 | 32 |
29 } // namespace blink | 33 } // namespace blink |
30 | 34 |
31 #endif // SpellCheckTestBase_h | 35 #endif // SpellCheckTestBase_h |
OLD | NEW |