DescriptionOverload EXPECT_NSEQ to handle NSRect/NSPoint.
Previously, the typical pattern is:
EXPECT_TRUE(NSEqualRects(expected_rect, actual_rect));
But this does not print useful information upon failure.
This CL allows tests to compare NSRects with:
EXPECT_NSEQ(expected_rect, actual_rect);
which prints the NSRect upon failure.
Similarly for NSPoint.
BUG=None
Committed: https://crrev.com/b22ade8600b7fb6863a197e35b5c0aeeae61d51e
Cr-Commit-Position: refs/heads/master@{#336939}
Patch Set 1 #
Total comments: 4
Patch Set 2 : Address comments. #Patch Set 3 : Include CoreGraphics.h in all files. #Patch Set 4 : If-def out on IOS. #Patch Set 5 : Use GTEST_OS_IOS instead of OS_IOS #Patch Set 6 : If-def out on GTEST_OS_IOS. #Patch Set 7 : Also handle NSPoint. #
Messages
Total messages: 12 (3 generated)
|