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

Unified Diff: Source/core/editing/StyledMarkupSerializerTest.cpp

Issue 1171323003: Fix unit test style in core/{dom,editing,html}/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: whitespace fix 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/editing/InputMethodControllerTest.cpp ('k') | Source/core/editing/SurroundingTextTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/StyledMarkupSerializerTest.cpp
diff --git a/Source/core/editing/StyledMarkupSerializerTest.cpp b/Source/core/editing/StyledMarkupSerializerTest.cpp
index 7233fe163c2db2a29309f96fba294a64f03aaed7..916593c8f9bde3506bf7b652dd532ce3d6a4e365 100644
--- a/Source/core/editing/StyledMarkupSerializerTest.cpp
+++ b/Source/core/editing/StyledMarkupSerializerTest.cpp
@@ -32,7 +32,7 @@ namespace blink {
// in layout tests.
class StyledMarkupSerializerTest : public ::testing::Test {
protected:
- virtual void SetUp() override;
+ void SetUp() override;
HTMLDocument& document() const { return *m_document; }
@@ -63,7 +63,7 @@ std::string StyledMarkupSerializerTest::serialize()
return CreateMarkupAlgorithm<Tree>::createMarkup(start, end).utf8().data();
}
-PassRefPtrWillBeRawPtr<ShadowRoot> createShadowRootForElementWithIDAndSetInnerHTML(TreeScope& scope, const char* hostElementID, const char* shadowRootContent)
+static PassRefPtrWillBeRawPtr<ShadowRoot> createShadowRootForElementWithIDAndSetInnerHTML(TreeScope& scope, const char* hostElementID, const char* shadowRootContent)
{
RefPtrWillBeRawPtr<ShadowRoot> shadowRoot = scope.getElementById(AtomicString::fromUTF8(hostElementID))->createShadowRoot(ASSERT_NO_EXCEPTION);
shadowRoot->setInnerHTML(String::fromUTF8(shadowRootContent), ASSERT_NO_EXCEPTION);
@@ -179,4 +179,4 @@ TEST_F(StyledMarkupSerializerTest, StyleDisplayNone)
EXPECT_EQ(expectedResult, serialize<EditingStrategy>());
}
-} // namespace
+} // namespace blink
« no previous file with comments | « Source/core/editing/InputMethodControllerTest.cpp ('k') | Source/core/editing/SurroundingTextTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698