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

Unified Diff: cc/test/geometry_test_utils.h

Issue 10984053: cc: Use ui/gfx geometry types for the CCRenderPass and CCDrawQuad classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 2 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/stubs/int_size.h ('k') | cc/test/layer_test_common.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 dc0e8ec3b369b4133f641a827ce3fcf1319c6061..9eaf52ada7c971d4aa1ef818d2e6a3261aeffc0e 100644
--- a/cc/test/geometry_test_utils.h
+++ b/cc/test/geometry_test_utils.h
@@ -14,18 +14,18 @@ namespace WebKitTests {
// These are macros instead of functions so that we get useful line numbers where a test failed.
#define EXPECT_FLOAT_RECT_EQ(expected, actual) \
{ \
- EXPECT_FLOAT_EQ((expected).location().x(), (actual).location().x()); \
- EXPECT_FLOAT_EQ((expected).location().y(), (actual).location().y()); \
- EXPECT_FLOAT_EQ((expected).size().width(), (actual).size().width()); \
- EXPECT_FLOAT_EQ((expected).size().height(), (actual).size().height()); \
+ EXPECT_FLOAT_EQ((expected).x(), (actual).x()); \
+ EXPECT_FLOAT_EQ((expected).y(), (actual).y()); \
+ EXPECT_FLOAT_EQ((expected).width(), (actual).width()); \
+ EXPECT_FLOAT_EQ((expected).height(), (actual).height()); \
}
#define EXPECT_RECT_EQ(expected, actual) \
{ \
- EXPECT_EQ((expected).location().x(), (actual).location().x()); \
- EXPECT_EQ((expected).location().y(), (actual).location().y()); \
- EXPECT_EQ((expected).size().width(), (actual).size().width()); \
- EXPECT_EQ((expected).size().height(), (actual).size().height()); \
+ EXPECT_EQ((expected).x(), (actual).x()); \
+ EXPECT_EQ((expected).y(), (actual).y()); \
+ EXPECT_EQ((expected).width(), (actual).width()); \
+ EXPECT_EQ((expected).height(), (actual).height()); \
}
#define EXPECT_SIZE_EQ(expected, actual) \
« no previous file with comments | « cc/stubs/int_size.h ('k') | cc/test/layer_test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698