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

Issue 4697004: [Mac] Better handling of nil for testing macros. (Closed)

Created:
10 years, 1 month ago by Scott Hess - ex-Googler
Modified:
9 years, 6 months ago
Reviewers:
Nico
CC:
chromium-reviews, pam+watch_chromium.org, Paweł Hajdan Jr., Robert Sesek
Visibility:
Public.

Description

[Mac] Better handling of nil for testing macros. EXPECT_NSEQ() and EXPECT_NSNE() were implemented in terms of [x isEqual:y]. This meant that EXPECT_NSEQ(nil, nil) failed, and EXPECT_NSNE(nil, nil) succeeded. Add additional tests against the raw pointers to resolve this. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=65710

Patch Set 1 #

Patch Set 2 : Comment about unable to test EXPECT_NSNE(nil, nil). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -2 lines) Patch
M testing/gtest_mac.mm View 2 chunks +2 lines, -2 lines 0 comments Download
M testing/gtest_mac_unittest.mm View 1 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Scott Hess - ex-Googler
10 years, 1 month ago (2010-11-10 19:03:08 UTC) #1
Nico
10 years, 1 month ago (2010-11-10 19:08:39 UTC) #2
LG

I don't think there's a good way to test that EXPECT_NSNE(nil, nil) fails now –
maybe just add a comment to the test for that.

Powered by Google App Engine
This is Rietveld 408576698