| Index: ui/gfx/test/ui_cocoa_test_helper.h
|
| diff --git a/ui/gfx/test/ui_cocoa_test_helper.h b/ui/gfx/test/ui_cocoa_test_helper.h
|
| index a86064ac2a2dc0a2a3be428c89dcf53225700a57..da00de15a06b69b7878fb6af2d362345da0ba0e3 100644
|
| --- a/ui/gfx/test/ui_cocoa_test_helper.h
|
| +++ b/ui/gfx/test/ui_cocoa_test_helper.h
|
| @@ -130,6 +130,11 @@
|
| (actual >= (expected - CGFLOAT_EPSILON) && \
|
| actual <= (expected + CGFLOAT_EPSILON))
|
|
|
| +// A test support macro which ascertains if two CGFloats are equal.
|
| +#define EXPECT_CGFLOAT_EQ(expected, actual) \
|
| + EXPECT_TRUE(CGFLOAT_EQ(expected, actual)) << \
|
| + expected << " != " << actual
|
| +
|
| // A test support macro which compares two NSRects for equality taking
|
| // the float epsilon into consideration.
|
| #define EXPECT_NSRECT_EQ(expected, actual) \
|
|
|