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

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

Issue 1204953002: Introduce EditingTestBase to share code among test files for editing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-06-24T15:31:52 Rebase for chaning bot(?) Created 5 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
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/editing/EditingTestBase.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef EditingTestBase_h
6 #define EditingTestBase_h
7
8 #include "core/dom/Position.h"
9 #include "core/testing/CoreTestHelpers.h"
10 #include "wtf/Forward.h"
11 #include <gtest/gtest.h>
12
13 namespace blink {
14
15 class DummyPageHolder;
16
17 class EditingTestBase : public ::testing::Test {
18 protected:
19 EditingTestBase();
20 ~EditingTestBase() override;
21
22 void SetUp() override;
23
24 Document& document() const;
25
26 static PassRefPtrWillBeRawPtr<ShadowRoot> createShadowRootForElementWithIDAn dSetInnerHTML(TreeScope&, const char* hostElementID, const char* shadowRootConte nt);
27
28 void setBodyContent(const char*);
29 PassRefPtrWillBeRawPtr<ShadowRoot> setShadowContent(const char*);
30
31 static Position positionInDOMTree(Node& anchor, int offset);
32 static PositionInComposedTree positionInComposedTree(Node& anchor, int offse t);
33
34 private:
35 OwnPtr<DummyPageHolder> m_dummyPageHolder;
36 };
37
38 } // namespace blink
39
40 #endif // EditingTestBase_h
OLDNEW
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/editing/EditingTestBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698