commit | b22ade8600b7fb6863a197e35b5c0aeeae61d51e | [log] [tgz] |
---|---|---|
author | jackhou <jackhou@chromium.org> | Wed Jul 01 00:44:39 2015 |
committer | Commit bot <commit-bot@chromium.org> | Wed Jul 01 00:45:17 2015 |
tree | 1d0c79a767d042a8936cc68fd9c2f4ed323f5138 | |
parent | 90d3bdc22f7826554dc0221f08bcc035bc7d9e54 [diff] |
Overload 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 Review URL: https://codereview.chromium.org/1211283003 Cr-Commit-Position: refs/heads/master@{#336939}