Chromium Code Reviews| 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..5e4ec1f4b1436670b917d693e44420c127279896 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.h" |
|
danakj
2014/07/07 18:52:27
do you mean rect_f.h?
jamesr
2014/07/07 19:37:25
Whoops, yes. Will fix
|
| 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, |
|
danakj
2014/07/07 18:52:27
Is this related to this CL somehow or here by mist
jamesr
2014/07/07 19:37:25
It's related - code that was doing comparisons bet
|
| + const char* rhs_expr, |
| + const RectF& lhs, |
| + const RectF& rhs); |
| + |
| #define EXPECT_SKCOLOR_EQ(a, b) \ |
| EXPECT_PRED_FORMAT2(::gfx::AssertSkColorsEqual, a, b) |