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

Unified Diff: cc/test/geometry_test_utils.h

Issue 2230513005: Move visual rect unioning between paired items to cc::DisplayItemList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code review feedback. Created 4 years, 4 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 | « cc/test/fake_content_layer_client.cc ('k') | cc/test/solid_color_content_layer_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/geometry_test_utils.h
diff --git a/cc/test/geometry_test_utils.h b/cc/test/geometry_test_utils.h
index eee215ca14b6ef57e7f4d9f5750a36b67b02458d..6e015131fa7d676dd378130cc2ff279e10b9657a 100644
--- a/cc/test/geometry_test_utils.h
+++ b/cc/test/geometry_test_utils.h
@@ -21,6 +21,15 @@ namespace cc {
EXPECT_FLOAT_EQ((expected).height(), (actual).height()); \
} while (false)
+#define EXPECT_RECT_EQ(expected, actual) \
+ do { \
+ const gfx::Rect& actualRect = actual; \
+ EXPECT_EQ(expected.x(), actualRect.x()); \
+ EXPECT_EQ(expected.y(), actualRect.y()); \
+ EXPECT_EQ(expected.width(), actualRect.width()); \
+ EXPECT_EQ(expected.height(), actualRect.height()); \
+ } while (false)
+
#define EXPECT_RECT_NEAR(expected, actual, abs_error) \
do { \
EXPECT_NEAR((expected).x(), (actual).x(), (abs_error)); \
« no previous file with comments | « cc/test/fake_content_layer_client.cc ('k') | cc/test/solid_color_content_layer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698