diff options
author | Vladimir Goncharov <amatanhead@yandex-team.ru> | 2020-06-20 13:38:55 (GMT) |
---|---|---|
committer | Vladimir Goncharov <amatanhead@yandex-team.ru> | 2020-08-03 20:47:57 (GMT) |
commit | 46734d9a66e858e2b419729b52d6aa21faa614c7 (patch) | |
tree | c099636a10a2e2249b706f40f43867a4ee7c2b6c /googlemock/include | |
parent | 9ac4cd0f4958608961f9b5ca27b99fe696e1dd27 (diff) | |
download | googletest-46734d9a66e858e2b419729b52d6aa21faa614c7.zip googletest-46734d9a66e858e2b419729b52d6aa21faa614c7.tar.gz googletest-46734d9a66e858e2b419729b52d6aa21faa614c7.tar.bz2 |
Small improvements: code style and property name
Diffstat (limited to 'googlemock/include')
-rw-r--r-- | googlemock/include/gmock/gmock-matchers.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/googlemock/include/gmock/gmock-matchers.h b/googlemock/include/gmock/gmock-matchers.h index 43456c2..cc04564 100644 --- a/googlemock/include/gmock/gmock-matchers.h +++ b/googlemock/include/gmock/gmock-matchers.h @@ -4843,7 +4843,7 @@ ThrowsMessage(const MessageMatcher& messageMatcher) { // literals, e.g. ThrowsMessage("message"). return MakePolymorphicMatcher( internal::ExceptionMatcherImpl<Err>{ - Property("description", &std::exception::what, + Property("what", &std::exception::what, MatcherCast<std::string>(messageMatcher))}); } template <typename Err, typename Message = std::string> @@ -4854,7 +4854,7 @@ ThrowsMessageHasSubstr(const internal::StringLike<Message>& message) { "expected an std::exception-derived class"); return MakePolymorphicMatcher( internal::ExceptionMatcherImpl<Err>{ - Property("description", &std::exception::what, HasSubstr(message))}); + Property("what", &std::exception::what, HasSubstr(message))}); } #endif // GTEST_HAS_EXCEPTIONS |