diff options
author | gpetit <gaspard.petit@eidosmontreal.com> | 2017-08-14 12:49:22 -0400 |
---|---|---|
committer | gpetit <gaspard.petit@eidosmontreal.com> | 2017-08-14 12:49:22 -0400 |
commit | 6219d60eb9b71d98c28fe541aeec4a1db284730e (patch) | |
tree | a9f61d077c3183ab4b458de7624ab2d7a05cd0e3 /googlemock/include/gmock/internal/gmock-internal-utils.h | |
parent | c113a7151d282cd32d246062783c83ccc65feb28 (diff) | |
parent | 673c975a963f356b19fea90cb57b69192253da2a (diff) | |
download | googletest-6219d60eb9b71d98c28fe541aeec4a1db284730e.tar.gz googletest-6219d60eb9b71d98c28fe541aeec4a1db284730e.tar.bz2 googletest-6219d60eb9b71d98c28fe541aeec4a1db284730e.zip |
Merge remote-tracking branch 'origin/master' into support_xboxone
Diffstat (limited to 'googlemock/include/gmock/internal/gmock-internal-utils.h')
-rw-r--r-- | googlemock/include/gmock/internal/gmock-internal-utils.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/googlemock/include/gmock/internal/gmock-internal-utils.h b/googlemock/include/gmock/internal/gmock-internal-utils.h index e2ddb05c..7e65cea8 100644 --- a/googlemock/include/gmock/internal/gmock-internal-utils.h +++ b/googlemock/include/gmock/internal/gmock-internal-utils.h @@ -267,7 +267,7 @@ class FailureReporterInterface { // Reports a failure that occurred at the given source file location. virtual void ReportFailure(FailureType type, const char* file, int line, - const string& message) = 0; + const std::string& message) = 0; }; // Returns the failure reporter used by Google Mock. @@ -279,7 +279,7 @@ GTEST_API_ FailureReporterInterface* GetFailureReporter(); // inline this function to prevent it from showing up in the stack // trace. inline void Assert(bool condition, const char* file, int line, - const string& msg) { + const std::string& msg) { if (!condition) { GetFailureReporter()->ReportFailure(FailureReporterInterface::kFatal, file, line, msg); @@ -292,7 +292,7 @@ inline void Assert(bool condition, const char* file, int line) { // Verifies that condition is true; generates a non-fatal failure if // condition is false. inline void Expect(bool condition, const char* file, int line, - const string& msg) { + const std::string& msg) { if (!condition) { GetFailureReporter()->ReportFailure(FailureReporterInterface::kNonfatal, file, line, msg); @@ -328,8 +328,7 @@ GTEST_API_ bool LogIsVisible(LogSeverity severity); // stack_frames_to_skip is treated as 0, since we don't know which // function calls will be inlined by the compiler and need to be // conservative. -GTEST_API_ void Log(LogSeverity severity, - const string& message, +GTEST_API_ void Log(LogSeverity severity, const std::string& message, int stack_frames_to_skip); // TODO(wan@google.com): group all type utilities together. |