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

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 gfx_test_support dep to video_encode_accelerator_unittest Created 6 years, 5 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
« no previous file with comments | « ui/gfx/gfx.gyp ('k') | ui/gfx/test/gfx_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « ui/gfx/gfx.gyp ('k') | ui/gfx/test/gfx_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698