diff options
author | Jonathan Wendeborn <jonathan.wendeborn@bruker.com> | 2018-10-16 06:07:15 (GMT) |
---|---|---|
committer | Jonathan Wendeborn <jonathan.wendeborn@bruker.com> | 2018-10-16 06:07:15 (GMT) |
commit | 67a240a107888c0d3baba528f05820dcc8ac737f (patch) | |
tree | a8bcf64d3a65da74a154a9bb719f2f1a71312abe /googlemock/include/gmock/gmock-spec-builders.h | |
parent | ecd530865cefdfa7dea58e84f6aa1b548950363d (diff) | |
download | googletest-67a240a107888c0d3baba528f05820dcc8ac737f.zip googletest-67a240a107888c0d3baba528f05820dcc8ac737f.tar.gz googletest-67a240a107888c0d3baba528f05820dcc8ac737f.tar.bz2 |
Added Mock::IsNaggy, IsNice, and IsStrict
Diffstat (limited to 'googlemock/include/gmock/gmock-spec-builders.h')
-rw-r--r-- | googlemock/include/gmock/gmock-spec-builders.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/googlemock/include/gmock/gmock-spec-builders.h b/googlemock/include/gmock/gmock-spec-builders.h index fed7de6..1e8f732 100644 --- a/googlemock/include/gmock/gmock-spec-builders.h +++ b/googlemock/include/gmock/gmock-spec-builders.h @@ -389,6 +389,16 @@ class GTEST_API_ Mock { static bool VerifyAndClear(void* mock_obj) GTEST_LOCK_EXCLUDED_(internal::g_gmock_mutex); + // Returns wether the mock was created as a naggy mock (default) + static bool IsNaggy(void* mock_obj) + GTEST_LOCK_EXCLUDED_(internal::g_gmock_mutex); + // Returns wether the mock was created as a nice mock + static bool IsNice(void* mock_obj) + GTEST_LOCK_EXCLUDED_(internal::g_gmock_mutex); + // Returns wether the mock was created as a strict mock + static bool IsStrict(void* mock_obj) + GTEST_LOCK_EXCLUDED_(internal::g_gmock_mutex); + private: friend class internal::UntypedFunctionMockerBase; |