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

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

Issue 2191233002: Add platform/geometry pretty printers for logging and testing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fewer redundant spaces, more toString tests 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 9b25d44c66dc0bc497912b536acf27df84e11eaf..3ea6dc44b5a63caf69482317cde1ee9476295978 100644
--- a/third_party/WebKit/Source/platform/testing/GeometryPrinters.h
+++ b/third_party/WebKit/Source/platform/testing/GeometryPrinters.h
@@ -16,7 +16,12 @@ class FloatPoint3D;
class FloatQuad;
class FloatRect;
class FloatSize;
+class IntPoint;
+class IntRect;
+class IntSize;
+class LayoutPoint;
class LayoutRect;
+class LayoutSize;
// GTest print support for geometry classes.
//
@@ -37,8 +42,12 @@ void PrintTo(const FloatRect&, std::ostream*);
void PrintTo(const FloatRoundedRect&, std::ostream*);
void PrintTo(const FloatRoundedRect::Radii&, std::ostream*);
void PrintTo(const FloatSize&, std::ostream*);
+void PrintTo(const IntPoint&, std::ostream*);
void PrintTo(const IntRect&, std::ostream*);
+void PrintTo(const IntSize&, std::ostream*);
+void PrintTo(const LayoutPoint&, std::ostream*);
void PrintTo(const LayoutRect&, std::ostream*);
+void PrintTo(const LayoutSize&, std::ostream*);
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698