diff options
author | zhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925> | 2009-12-01 19:39:52 (GMT) |
---|---|---|
committer | zhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925> | 2009-12-01 19:39:52 (GMT) |
commit | 891b3716c4b6e4bd7fdbd642ecaab37776eb5935 (patch) | |
tree | 44da89de56dcc1958fdc443d2c07befe35c2ace2 /include/gtest/internal | |
parent | 2e075a7f60da95cd02a3935fda49d222a435d56a (diff) | |
download | googletest-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')
-rw-r--r-- | include/gtest/internal/gtest-internal.h | 5 |
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. |