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

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

Issue 1285413007: Unify geometry test printers in a test support target. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: PrintTo instead of operator<< Created 5 years, 4 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/platform/geometry/FloatRoundedRect.h ('k') | Source/platform/geometry/FloatSize.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/geometry/FloatRoundedRectTest.cpp
diff --git a/Source/platform/geometry/FloatRoundedRectTest.cpp b/Source/platform/geometry/FloatRoundedRectTest.cpp
index 714b66e6d21f54737ef534304b466bc6790e8739..f398b53f892127bb7ccf5640cfdcb0d1f2595037 100644
--- a/Source/platform/geometry/FloatRoundedRectTest.cpp
+++ b/Source/platform/geometry/FloatRoundedRectTest.cpp
@@ -34,38 +34,6 @@
namespace blink {
-void PrintTo(const FloatSize& size, std::ostream* os)
-{
- *os << "FloatSize("
- << size.width() << ", "
- << size.height() << ")";
-}
-
-void PrintTo(const FloatRect& rect, std::ostream* os)
-{
- *os << "FloatRect("
- << rect.x() << ", "
- << rect.y() << ", "
- << rect.width() << ", "
- << rect.height() << ")";
-}
-
-void PrintTo(const FloatRoundedRect::Radii& radii, std::ostream* os)
-{
- *os << "FloatRoundedRect::Radii("
- << ::testing::PrintToString(radii.topLeft()) << ", "
- << ::testing::PrintToString(radii.topRight()) << ", "
- << ::testing::PrintToString(radii.bottomRight()) << ", "
- << ::testing::PrintToString(radii.bottomLeft()) << ")";
-}
-
-void PrintTo(const FloatRoundedRect& roundedRect, std::ostream* os)
-{
- *os << "FloatRoundedRect("
- << ::testing::PrintToString(roundedRect.rect()) << ", "
- << ::testing::PrintToString(roundedRect.radii()) << ")";
-}
-
#define TEST_INTERCEPTS(roundedRect, yCoordinate, expectedMinXIntercept, expectedMaxXIntercept) \
{ \
float minXIntercept; \
« no previous file with comments | « Source/platform/geometry/FloatRoundedRect.h ('k') | Source/platform/geometry/FloatSize.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698