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

Unified Diff: testing/gtest_mac.mm

Issue 11414027: Fixed gtest_mac.mm after gtest roll to 621. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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.mm
diff --git a/testing/gtest_mac.mm b/testing/gtest_mac.mm
index 94c9a203df2e4396348575f529176e48d61299a7..c36b18bb554c57efd085db984b2d585b0a5e276b 100644
--- a/testing/gtest_mac.mm
+++ b/testing/gtest_mac.mm
@@ -4,6 +4,8 @@
#import "gtest_mac.h"
+#include <string>
+
#include <gtest/internal/gtest-port.h>
#include <gtest/internal/gtest-string.h>
#include <gtest/gtest.h>
@@ -26,8 +28,8 @@ GTEST_API_ AssertionResult CmpHelperNSEQ(const char* expected_expression,
}
return EqFailure(expected_expression,
actual_expression,
- String([[expected description] UTF8String]),
- String([[actual description] UTF8String]),
+ std::string([[expected description] UTF8String]),
+ std::string([[actual description] UTF8String]),
false);
}
@@ -42,8 +44,8 @@ GTEST_API_ AssertionResult CmpHelperNSNE(const char* expected_expression,
}
Message msg;
msg << "Expected: (" << expected_expression << ") != (" << actual_expression
- << "), actual: " << String([[expected description] UTF8String])
- << " vs " << String([[actual description] UTF8String]);
+ << "), actual: " << std::string([[expected description] UTF8String])
+ << " vs " << std::string([[actual description] UTF8String]);
return AssertionFailure(msg);
}
« 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