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

Unified Diff: Source/core/editing/iterators/TextIteratorTest.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/VisibleSelectionTest.cpp ('k') | Source/core/html/HTMLDimensionTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/iterators/TextIteratorTest.cpp
diff --git a/Source/core/editing/iterators/TextIteratorTest.cpp b/Source/core/editing/iterators/TextIteratorTest.cpp
index 09cac58f3001eeb7f7aa734a7d79aa740c1981ed..a91da6483b17970e3f43667b439e5c5df79355b2 100644
--- a/Source/core/editing/iterators/TextIteratorTest.cpp
+++ b/Source/core/editing/iterators/TextIteratorTest.cpp
@@ -51,9 +51,7 @@
#include <gtest/gtest.h>
#include <string>
-using namespace blink;
-
-namespace {
+namespace blink {
struct DOMTree : NodeTraversal {
using PositionType = Position;
@@ -67,7 +65,7 @@ struct ComposedTree : ComposedTreeTraversal {
class TextIteratorTest : public ::testing::Test {
protected:
- virtual void SetUp() override;
+ void SetUp() override;
HTMLDocument& document() const { return *m_document; }
@@ -139,7 +137,7 @@ PassRefPtrWillBeRawPtr<Range> TextIteratorTest::getBodyRange() const
return range.release();
}
-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);
@@ -484,4 +482,4 @@ TEST_F(TextIteratorTest, SubrangeWithReplacedElements)
EXPECT_EQ(3, subrange->endOffset());
}
-}
+} // namespace blink
« no previous file with comments | « Source/core/editing/VisibleSelectionTest.cpp ('k') | Source/core/html/HTMLDimensionTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698