Index: ui/gfx/geometry/rect.h |
diff --git a/ui/gfx/geometry/rect.h b/ui/gfx/geometry/rect.h |
index 28d37bc31b3013dcdc9ee96a325a4f8c1012b9f5..83258fd7e143252c17bffe779f5119af911c74ea 100644 |
--- a/ui/gfx/geometry/rect.h |
+++ b/ui/gfx/geometry/rect.h |
@@ -13,6 +13,7 @@ |
#define UI_GFX_GEOMETRY_RECT_H_ |
#include <cmath> |
+#include <iosfwd> |
#include <string> |
#include "ui/gfx/geometry/point.h" |
@@ -134,6 +135,11 @@ inline Rect ScaleToEnclosedRect(const Rect& rect, float scale) { |
extern template class RectBase<Rect, Point, Size, Insets, Vector2d, int>; |
#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 Rect& rect, ::std::ostream* os); |
+ |
} // namespace gfx |
#endif // UI_GFX_GEOMETRY_RECT_H_ |