From c64fb19fe4112e5dcf1826517b8eb9cf4bc098f1 Mon Sep 17 00:00:00 2001 From: "joaodasilva@chromium.org" Date: Fri, 16 Nov 2012 10:47:50 +0000 Subject: Fixed gtest_mac.mm after gtest roll to 621. 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 --- testing/gtest_mac.mm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'testing') diff --git a/testing/gtest_mac.mm b/testing/gtest_mac.mm index 94c9a20..c36b18b 100644 --- a/testing/gtest_mac.mm +++ b/testing/gtest_mac.mm @@ -4,6 +4,8 @@ #import "gtest_mac.h" +#include + #include #include #include @@ -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); } -- cgit v1.1