diff options
author | Gennadiy Civil <misterg@google.com> | 2018-10-23 15:13:41 -0400 |
---|---|---|
committer | Gennadiy Civil <misterg@google.com> | 2018-10-23 15:13:42 -0400 |
commit | 20eaf6e3a9dbefcb1fb91b9a438aaef70cd999cf (patch) | |
tree | 5c1342dd6e163bf6ffca9cb3320733f2ba25c618 /googlemock/include | |
parent | a743780ad03ba3cbcb2f76f8a74249f0cae46acc (diff) | |
parent | 0cefda7749756806445a9caab4d8517c808f61f6 (diff) | |
download | googletest-20eaf6e3a9dbefcb1fb91b9a438aaef70cd999cf.tar.gz googletest-20eaf6e3a9dbefcb1fb91b9a438aaef70cd999cf.tar.bz2 googletest-20eaf6e3a9dbefcb1fb91b9a438aaef70cd999cf.zip |
Merge pull request #1911 from BrukerJWD:isnice
PiperOrigin-RevId: 218384341
Diffstat (limited to 'googlemock/include')
-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 849bc92a..5d4b73ba 100644 --- a/googlemock/include/gmock/gmock-spec-builders.h +++ b/googlemock/include/gmock/gmock-spec-builders.h @@ -399,6 +399,16 @@ class GTEST_API_ Mock { static bool VerifyAndClear(void* mock_obj) GTEST_LOCK_EXCLUDED_(internal::g_gmock_mutex); + // Returns whether the mock was created as a naggy mock (default) + static bool IsNaggy(void* mock_obj) + GTEST_LOCK_EXCLUDED_(internal::g_gmock_mutex); + // Returns whether the mock was created as a nice mock + static bool IsNice(void* mock_obj) + GTEST_LOCK_EXCLUDED_(internal::g_gmock_mutex); + // Returns whether 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; |