Index: ui/gfx/test/gfx_util.h |
diff --git a/ui/gfx/test/gfx_util.h b/ui/gfx/test/gfx_util.h |
index 999322ad4ee811dfd79dc57375a5fa5a0e5becef..f5e9d9d0f8942f97b8553dba155deff2609d7f18 100644 |
--- a/ui/gfx/test/gfx_util.h |
+++ b/ui/gfx/test/gfx_util.h |
@@ -11,7 +11,7 @@ |
#include "testing/gtest/include/gtest/gtest.h" |
#include "third_party/skia/include/core/SkColor.h" |
#include "ui/gfx/box_f.h" |
- |
+#include "ui/gfx/geometry/rect_f.h" |
namespace gfx { |
@@ -24,6 +24,14 @@ namespace gfx { |
const BoxF& lhs, |
const BoxF& rhs); |
+#define EXPECT_RECTF_EQ(a, b) \ |
+ EXPECT_PRED_FORMAT2(::gfx::AssertRectFloatEqual, a, b) |
+ |
+::testing::AssertionResult AssertRectFloatEqual(const char* lhs_expr, |
+ const char* rhs_expr, |
+ const RectF& lhs, |
+ const RectF& rhs); |
+ |
#define EXPECT_SKCOLOR_EQ(a, b) \ |
EXPECT_PRED_FORMAT2(::gfx::AssertSkColorsEqual, a, b) |