summaryrefslogtreecommitdiffstats
path: root/testing/gtest_mac.mm
Commit message (Collapse)AuthorAgeFilesLines
* Added a StringDescription() function to safely print object pointers that ↵pkl@chromium.org2013-03-291-4/+10
| | | | | | | | | | | | | may be nil. If expected or actual is nil, calling [[obj description] UTF8String] returns nil and results in a call to std::string constructor with a nil pointer. This causes a C++ exception. Review URL: https://chromiumcodereview.appspot.com/13318003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191439 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed gtest_mac.mm after gtest roll to 621.joaodasilva@chromium.org2012-11-161-4/+6
| | | | | | | | | | The issue is caused by the removal of the String(const char*) ctor in http://git.chromium.org/gitweb/?p=external/gtest.git;a=blobdiff;f=include/gtest/internal/gtest-string.h;h=472dd0583917c2ad786dbe4711b53fcadb772d3a;hp=967b11738ef234aa09e3879d98e77c7277e2d3c3;hb=03c314931649a999b0cf5deb0a434a1009157416;hpb=5d9f11fe81eaca3989ec7e8dbfe5b31608a75121. TBR=rsesek Review URL: https://codereview.chromium.org/11414027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168183 0039d316-1c4b-4281-b951-d872f2087c98
* [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