Improves the tests for nice, naggy, and strict mocks.

This commit is contained in:
zhanyong.wan
2013-03-01 07:10:07 +00:00
parent 20d1a235bc
commit c896504e41
5 changed files with 77 additions and 25 deletions

View File

@@ -639,7 +639,7 @@ internal::CallReaction Mock::GetReactionOnUninterestingCalls(
GTEST_LOCK_EXCLUDED_(internal::g_gmock_mutex) {
internal::MutexLock l(&internal::g_gmock_mutex);
return (g_uninteresting_call_reaction.count(mock_obj) == 0) ?
internal::kWarn : g_uninteresting_call_reaction[mock_obj];
internal::kDefault : g_uninteresting_call_reaction[mock_obj];
}
// Tells Google Mock to ignore mock_obj when checking for leaked mock