Adding a flag option to change the default mock type
This commit is contained in:
		@@ -648,7 +648,8 @@ 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::kDefault : g_uninteresting_call_reaction[mock_obj];
 | 
			
		||||
      static_cast<internal::CallReaction>(GMOCK_FLAG(default_mock_behavior)) :
 | 
			
		||||
      g_uninteresting_call_reaction[mock_obj];
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Tells Google Mock to ignore mock_obj when checking for leaked mock
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user