Index: ui/gfx/geometry/point.h |
diff --git a/ui/gfx/geometry/point.h b/ui/gfx/geometry/point.h |
index ff99d71d3610b03f455c8cfd5b1e3d26fdae2463..aea9dbd15af5976c94ac1c3a432e3faf7b258911 100644 |
--- a/ui/gfx/geometry/point.h |
+++ b/ui/gfx/geometry/point.h |
@@ -5,6 +5,9 @@ |
#ifndef UI_GFX_GEOMETRY_POINT_H_ |
#define UI_GFX_GEOMETRY_POINT_H_ |
+#include <iosfwd> |
+#include <string> |
+ |
#include "ui/gfx/geometry/point_base.h" |
#include "ui/gfx/geometry/point_f.h" |
#include "ui/gfx/geometry/vector2d.h" |
@@ -85,6 +88,11 @@ inline Point PointAtOffsetFromOrigin(const Vector2d& offset_from_origin) { |
extern template class PointBase<Point, int, Vector2d>; |
#endif |
+// This is declared here for use in gtest-based unit tests but is defined in |
+// the gfx_test_support target. Depend on that to use this in your unit test. |
+// This should not be used in production code - call ToString() instead. |
+void PrintTo(const Point& point, ::std::ostream* os); |
+ |
} // namespace gfx |
#endif // UI_GFX_GEOMETRY_POINT_H_ |