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

Side by Side Diff: third_party/WebKit/Source/core/editing/EditingTestBase.h

Issue 2711053002: Ensure spell checking is enabled in SpellCheckerTest (Closed)
Patch Set: Keep editing changes only Created 3 years, 9 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 EditingTestBase_h 5 #ifndef EditingTestBase_h
6 #define EditingTestBase_h 6 #define EditingTestBase_h
7 7
8 #include "core/editing/Position.h"
9 #include "wtf/Forward.h"
10 #include <gtest/gtest.h> 8 #include <gtest/gtest.h>
11 #include <memory> 9 #include <memory>
12 #include <string> 10 #include <string>
11 #include "core/editing/Position.h"
12 #include "core/testing/DummyPageHolder.h"
13 #include "wtf/Forward.h"
13 14
14 namespace blink { 15 namespace blink {
15 16
16 class DummyPageHolder;
17 class FrameSelection; 17 class FrameSelection;
18 class LocalFrame; 18 class LocalFrame;
19 19
20 class EditingTestBase : public ::testing::Test { 20 class EditingTestBase : public ::testing::Test {
21 USING_FAST_MALLOC(EditingTestBase); 21 USING_FAST_MALLOC(EditingTestBase);
22 22
23 protected: 23 protected:
24 EditingTestBase(); 24 EditingTestBase();
25 ~EditingTestBase() override; 25 ~EditingTestBase() override;
26 26
27 void SetUp() override; 27 void SetUp() override;
28 28
29 void setupPageWithClients(Page::PageClients*);
30
29 Document& document() const; 31 Document& document() const;
30 DummyPageHolder& dummyPageHolder() const { return *m_dummyPageHolder; } 32 DummyPageHolder& dummyPageHolder() const { return *m_dummyPageHolder; }
31 LocalFrame& frame() const; 33 LocalFrame& frame() const;
32 FrameSelection& selection() const; 34 FrameSelection& selection() const;
33 35
34 static ShadowRoot* createShadowRootForElementWithIDAndSetInnerHTML( 36 static ShadowRoot* createShadowRootForElementWithIDAndSetInnerHTML(
35 TreeScope&, 37 TreeScope&,
36 const char* hostElementID, 38 const char* hostElementID,
37 const char* shadowRootContent); 39 const char* shadowRootContent);
38 40
39 void setBodyContent(const std::string&); 41 void setBodyContent(const std::string&);
40 ShadowRoot* setShadowContent(const char* shadowContent, 42 ShadowRoot* setShadowContent(const char* shadowContent,
41 const char* shadowHostId); 43 const char* shadowHostId);
42 void updateAllLifecyclePhases(); 44 void updateAllLifecyclePhases();
43 45
44 private: 46 private:
45 std::unique_ptr<DummyPageHolder> m_dummyPageHolder; 47 std::unique_ptr<DummyPageHolder> m_dummyPageHolder;
46 }; 48 };
47 49
48 } // namespace blink 50 } // namespace blink
49 51
50 #endif // EditingTestBase_h 52 #endif // EditingTestBase_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/editing/BUILD.gn ('k') | third_party/WebKit/Source/core/editing/EditingTestBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698