summaryrefslogtreecommitdiffstats
path: root/testing/gtest_mac.mm
Commit message (Collapse)AuthorAgeFilesLines
* [Mac] Better handling of nil for testing macros.shess@chromium.org2010-11-101-2/+2
| | | | | | | | | | | | | | 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 Review URL: http://codereview.chromium.org/4697004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65710 0039d316-1c4b-4281-b951-d872f2087c98
* This adds adds four macros when compiling using GTEST_OS_MAC:rsesek@chromium.org2010-08-061-0/+53
{ASSERT,EXPECT}_NS{NE,EQ}. These test ObjC objects using |-isEqual:| and prints failures using the |-description| selector. This allows for better debugging output with ObjC++ test cases. BUG=http://code.google.com/p/googletest/issues/detail?id=303 TEST=Covered by unit tests. Review URL: http://codereview.chromium.org/3028047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55180 0039d316-1c4b-4281-b951-d872f2087c98