summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2009-12-01 19:39:52 +0000
committerzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2009-12-01 19:39:52 +0000
commit4e08d4fffc0fd85cec52bf26ca8e60768c4db39a (patch)
tree44da89de56dcc1958fdc443d2c07befe35c2ace2 /include
parent89f3c263a8bb78a6a7ba2078852c2d3f1cc5ed86 (diff)
downloadgtest-4e08d4fffc0fd85cec52bf26ca8e60768c4db39a.tar.gz
gtest-4e08d4fffc0fd85cec52bf26ca8e60768c4db39a.tar.bz2
gtest-4e08d4fffc0fd85cec52bf26ca8e60768c4db39a.tar.xz
Exposes SkipPrefix s.t. it can be used by gmock (by Vlad Losev).
git-svn-id: http://googletest.googlecode.com/svn/trunk@346 861a406c-534a-0410-8894-cb66d6ee9925
Diffstat (limited to 'include')
-rw-r--r--include/gtest/internal/gtest-internal.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/gtest/internal/gtest-internal.h b/include/gtest/internal/gtest-internal.h
index 08cf67d..43e5f97 100644
--- a/include/gtest/internal/gtest-internal.h
+++ b/include/gtest/internal/gtest-internal.h
@@ -604,6 +604,11 @@ TestInfo* MakeAndRegisterTestInfo(
TearDownTestCaseFunc tear_down_tc,
TestFactoryBase* factory);
+// If *pstr starts with the given prefix, modifies *pstr to be right
+// past the prefix and returns true; otherwise leaves *pstr unchanged
+// and returns false. None of pstr, *pstr, and prefix can be NULL.
+bool SkipPrefix(const char* prefix, const char** pstr);
+
#if GTEST_HAS_TYPED_TEST || GTEST_HAS_TYPED_TEST_P
// State of the definition of a type-parameterized test case.