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

Unified Diff: testing/gtest_mac.h

Issue 1211283003: Overload EXPECT_NSEQ to handle NSRect. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 | « no previous file | testing/gtest_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/gtest_mac.h
diff --git a/testing/gtest_mac.h b/testing/gtest_mac.h
index aa48c945431c8995889103eed8ee861cec1b9f81..8ec532bbaaf007b02b31202051de36eba6a385f9 100644
--- a/testing/gtest_mac.h
+++ b/testing/gtest_mac.h
@@ -29,6 +29,20 @@ GTEST_API_ AssertionResult CmpHelperNSNE(const char* expected_expression,
id<NSObject> expected,
id<NSObject> actual);
+// This overloaded version allows comparison between NSRect objects using
+// NSEqualRects. Used to implement {ASSERT|EXPECT}_EQ().
tapted 2015/06/26 06:26:07 {ASSERT|EXPECT}_NSEQ?
jackhou1 2015/06/30 00:33:13 Done.
+GTEST_API_ AssertionResult CmpHelperNSEQ(const char* expected_expression,
+ const char* actual_expression,
+ const NSRect& expected,
+ const NSRect& actual);
+
+// This overloaded version allows comparison between NSRect objects using
+// NSEqualRects. Used to implement {ASSERT|EXPECT}_EQ().
tapted 2015/06/26 06:26:07 EQ->NE or, probably, {ASSERT|EXPECT}_NSNE?
jackhou1 2015/06/30 00:33:13 Done.
+GTEST_API_ AssertionResult CmpHelperNSNE(const char* expected_expression,
+ const char* actual_expression,
+ const NSRect& expected,
+ const NSRect& actual);
+
} // namespace internal
} // namespace testing
« no previous file with comments | « no previous file | testing/gtest_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698