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

Unified Diff: third_party/WebKit/Source/platform/testing/GeometryPrinters.h

Issue 2195903002: Add Double{Size, Point, Rect} pretty printers for logging and testing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@geometryPrettyPrinters2
Patch Set: Remove unnecessary String casts Created 4 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
Index: third_party/WebKit/Source/platform/testing/GeometryPrinters.h
diff --git a/third_party/WebKit/Source/platform/testing/GeometryPrinters.h b/third_party/WebKit/Source/platform/testing/GeometryPrinters.h
index 3ea6dc44b5a63caf69482317cde1ee9476295978..c5ccfbf4be068ba9bbd6714d5c4d3b1635744288 100644
--- a/third_party/WebKit/Source/platform/testing/GeometryPrinters.h
+++ b/third_party/WebKit/Source/platform/testing/GeometryPrinters.h
@@ -10,6 +10,9 @@
namespace blink {
+class DoublePoint;
+class DoubleRect;
+class DoubleSize;
class FloatBox;
class FloatPoint;
class FloatPoint3D;
@@ -34,6 +37,9 @@ class LayoutSize;
// use these printers. If, however, you get a link error about these symbols,
// you need to make sure the blink_platform_test_support target is linked in
// your unit test binary.
+void PrintTo(const DoublePoint&, std::ostream*);
+void PrintTo(const DoubleRect&, std::ostream*);
+void PrintTo(const DoubleSize&, std::ostream*);
void PrintTo(const FloatBox&, std::ostream*);
void PrintTo(const FloatPoint&, std::ostream*);
void PrintTo(const FloatPoint3D&, std::ostream*);

Powered by Google App Engine
This is Rietveld 408576698