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

Unified Diff: Source/platform/geometry/FloatRoundedRectTest.cpp

Issue 1182703002: Fix unit test style in Source/platform/, part 1. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
Index: Source/platform/geometry/FloatRoundedRectTest.cpp
diff --git a/Source/platform/geometry/FloatRoundedRectTest.cpp b/Source/platform/geometry/FloatRoundedRectTest.cpp
index 22ae1c2ebde2236d55cb290658c1d70721ed76f3..714b66e6d21f54737ef534304b466bc6790e8739 100644
--- a/Source/platform/geometry/FloatRoundedRectTest.cpp
+++ b/Source/platform/geometry/FloatRoundedRectTest.cpp
@@ -28,13 +28,10 @@
*/
#include "config.h"
-
#include "platform/geometry/FloatRoundedRect.h"
#include <gtest/gtest.h>
-using namespace blink;
-
namespace blink {
void PrintTo(const FloatSize& size, std::ostream* os)
@@ -69,10 +66,6 @@ void PrintTo(const FloatRoundedRect& roundedRect, std::ostream* os)
<< ::testing::PrintToString(roundedRect.radii()) << ")";
}
-} // namespace blink
-
-namespace {
-
#define TEST_INTERCEPTS(roundedRect, yCoordinate, expectedMinXIntercept, expectedMaxXIntercept) \
{ \
float minXIntercept; \
@@ -213,5 +206,5 @@ TEST(FloatRoundedRectTest, radiusCenterRect)
EXPECT_TRUE(r2.radiusCenterRect().isEmpty());
}
-} // namespace
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698