Index: ui/gfx/geometry/point_f.h |
diff --git a/ui/gfx/geometry/point_f.h b/ui/gfx/geometry/point_f.h |
index 00266d311d0ffad81baaca9d9be55d25fff95f3b..82d00e6eb507b0b86c9f12bd74f8bd393fd7b30a 100644 |
--- a/ui/gfx/geometry/point_f.h |
+++ b/ui/gfx/geometry/point_f.h |
@@ -5,6 +5,7 @@ |
#ifndef UI_GFX_GEOMETRY_POINT_F_H_ |
#define UI_GFX_GEOMETRY_POINT_F_H_ |
+#include <iosfwd> |
#include <string> |
#include "ui/gfx/geometry/point_base.h" |
@@ -70,6 +71,11 @@ inline PointF ScalePoint(const PointF& p, float scale) { |
extern template class PointBase<PointF, float, Vector2dF>; |
#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 PointF& point, ::std::ostream* os); |
+ |
} // namespace gfx |
#endif // UI_GFX_GEOMETRY_POINT_F_H_ |