Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Unified Diff: ui/gfx/test/gfx_util.h

Issue 368903003: Provide gtest printers for ui/gfx geometry types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missing gfx_test_support deps Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)

Powered by Google App Engine
This is Rietveld 408576698