summaryrefslogtreecommitdiff
path: root/include/gtest/gtest-spi.h
diff options
context:
space:
mode:
authorzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2010-09-27 17:42:52 +0000
committerzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2010-09-27 17:42:52 +0000
commit375ce98f43aebcc1bd702cf9fcb860788e5cb820 (patch)
tree267c18d6dd6ee179748ea46e790f3c32c42a100e /include/gtest/gtest-spi.h
parent0bfb56317785c7960bedee9fda0bb879347e2121 (diff)
downloadgoogletest-375ce98f43aebcc1bd702cf9fcb860788e5cb820.tar.gz
Allows EXPECT_FATAL_FAILURE() and friends to accept a string object as the second argument.
git-svn-id: http://googletest.googlecode.com/svn/trunk@485 861a406c-534a-0410-8894-cb66d6ee9925
Diffstat (limited to 'include/gtest/gtest-spi.h')
-rw-r--r--include/gtest/gtest-spi.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/gtest/gtest-spi.h b/include/gtest/gtest-spi.h
index e338e36..b226e55 100644
--- a/include/gtest/gtest-spi.h
+++ b/include/gtest/gtest-spi.h
@@ -98,12 +98,12 @@ class GTEST_API_ SingleFailureChecker {
// The constructor remembers the arguments.
SingleFailureChecker(const TestPartResultArray* results,
TestPartResult::Type type,
- const char* substr);
+ const string& substr);
~SingleFailureChecker();
private:
const TestPartResultArray* const results_;
const TestPartResult::Type type_;
- const String substr_;
+ const string substr_;
GTEST_DISALLOW_COPY_AND_ASSIGN_(SingleFailureChecker);
};