DescriptionAdded a StringDescription() function to safely print object pointers that 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.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=191439
Patch Set 1 #Patch Set 2 : fixed indentation #
Total comments: 2
Patch Set 3 : obj is enough #Messages
Total messages: 6 (0 generated)
|