summaryrefslogtreecommitdiffstats
path: root/include/gtest/internal/gtest-internal.h
diff options
context:
space:
mode:
authorzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2009-12-01 19:39:52 (GMT)
committerzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2009-12-01 19:39:52 (GMT)
commit891b3716c4b6e4bd7fdbd642ecaab37776eb5935 (patch)
tree44da89de56dcc1958fdc443d2c07befe35c2ace2 /include/gtest/internal/gtest-internal.h
parent2e075a7f60da95cd02a3935fda49d222a435d56a (diff)
downloadgoogletest-891b3716c4b6e4bd7fdbd642ecaab37776eb5935.zip
googletest-891b3716c4b6e4bd7fdbd642ecaab37776eb5935.tar.gz
googletest-891b3716c4b6e4bd7fdbd642ecaab37776eb5935.tar.bz2
Exposes SkipPrefix s.t. it can be used by gmock (by Vlad Losev).
Diffstat (limited to 'include/gtest/internal/gtest-internal.h')
-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.