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

Unified Diff: testing/gtest_mac_unittest.mm

Issue 15690016: Fix GTestMac.AssertNSEQ on Mac 64. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/gtest_mac_unittest.mm
diff --git a/testing/gtest_mac_unittest.mm b/testing/gtest_mac_unittest.mm
index da3d555a28b7e0bd53533c7c590b7185643ae9e7..9363b410fdfc2f0f35923b6fe307dbe058567205 100644
--- a/testing/gtest_mac_unittest.mm
+++ b/testing/gtest_mac_unittest.mm
@@ -28,10 +28,10 @@ TEST(GTestMac, ExpectNSEQ) {
TEST(GTestMac, AssertNSEQ) {
base::mac::ScopedNSAutoreleasePool pool;
- NSNumber* n1 = [NSNumber numberWithInt:42];
- NSNumber* n2 = [NSNumber numberWithInt:42];
- EXPECT_NE(n1, n2);
- ASSERT_NSEQ(n1, n2);
+ NSString* s1 = [NSString stringWithUTF8String:"a"];
+ NSString* s2 = @"a";
+ EXPECT_NE(s1, s2);
+ ASSERT_NSEQ(s1, s2);
}
TEST(GTestMac, ExpectNSNE) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698