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

Unified Diff: Source/core/editing/GranularityStrategyTest.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/FrameSelectionTest.cpp ('k') | Source/core/editing/InputMethodControllerTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/GranularityStrategyTest.cpp
diff --git a/Source/core/editing/GranularityStrategyTest.cpp b/Source/core/editing/GranularityStrategyTest.cpp
index 1cdaf711c8191a9eb36e7ba8a7aaa6e5175e4454..c2d21f74eea8f23019d2d1067509cb9b61a540a5 100644
--- a/Source/core/editing/GranularityStrategyTest.cpp
+++ b/Source/core/editing/GranularityStrategyTest.cpp
@@ -22,9 +22,7 @@
#include "wtf/testing/WTFTestHelpers.h"
#include <gtest/gtest.h>
-using namespace blink;
-
-namespace {
+namespace blink {
#define EXPECT_EQ_SELECTED_TEXT(text) \
EXPECT_EQ(text, WebString(selection().selectedText()).utf8())
@@ -40,7 +38,7 @@ IntPoint visiblePositionToContentsPoint(const VisiblePosition& pos)
class GranularityStrategyTest : public ::testing::Test {
protected:
- virtual void SetUp() override;
+ void SetUp() override;
DummyPageHolder& dummyPageHolder() const { return *m_dummyPageHolder; }
HTMLDocument& document() const;
@@ -660,4 +658,5 @@ TEST_F(GranularityStrategyTest, DirectionSwitchStartOnBoundary)
selection().moveRangeSelectionExtent(m_wordMiddles[4]);
EXPECT_EQ_SELECTED_TEXT("mnopqr iiin");
}
-}
+
+} // namespace blink
« no previous file with comments | « Source/core/editing/FrameSelectionTest.cpp ('k') | Source/core/editing/InputMethodControllerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698