Lines Matching refs:mock_obj
269 void UntypedFunctionMockerBase::RegisterOwner(const void* mock_obj) in RegisterOwner() argument
273 mock_obj_ = mock_obj; in RegisterOwner()
275 Mock::Register(mock_obj, this); in RegisterOwner()
281 void UntypedFunctionMockerBase::SetOwnerAndName(const void* mock_obj, in SetOwnerAndName() argument
287 mock_obj_ = mock_obj; in SetOwnerAndName()
295 const void* mock_obj; in MockObject() local
303 mock_obj = mock_obj_; in MockObject()
305 return mock_obj; in MockObject()
597 void SetReactionOnUninterestingCalls(const void* mock_obj, in SetReactionOnUninterestingCalls() argument
601 g_uninteresting_call_reaction[mock_obj] = reaction; in SetReactionOnUninterestingCalls()
608 void Mock::AllowUninterestingCalls(const void* mock_obj) in AllowUninterestingCalls() argument
610 SetReactionOnUninterestingCalls(mock_obj, internal::kAllow); in AllowUninterestingCalls()
615 void Mock::WarnUninterestingCalls(const void* mock_obj) in WarnUninterestingCalls() argument
617 SetReactionOnUninterestingCalls(mock_obj, internal::kWarn); in WarnUninterestingCalls()
622 void Mock::FailUninterestingCalls(const void* mock_obj) in FailUninterestingCalls() argument
624 SetReactionOnUninterestingCalls(mock_obj, internal::kFail); in FailUninterestingCalls()
629 void Mock::UnregisterCallReaction(const void* mock_obj) in UnregisterCallReaction() argument
632 g_uninteresting_call_reaction.erase(mock_obj); in UnregisterCallReaction()
638 const void* mock_obj) in GetReactionOnUninterestingCalls() argument
641 return (g_uninteresting_call_reaction.count(mock_obj) == 0) ? in GetReactionOnUninterestingCalls()
642 internal::kDefault : g_uninteresting_call_reaction[mock_obj]; in GetReactionOnUninterestingCalls()
647 void Mock::AllowLeak(const void* mock_obj) in AllowLeak() argument
650 g_mock_object_registry.states()[mock_obj].leakable = true; in AllowLeak()
656 bool Mock::VerifyAndClearExpectations(void* mock_obj) in VerifyAndClearExpectations() argument
659 return VerifyAndClearExpectationsLocked(mock_obj); in VerifyAndClearExpectations()
665 bool Mock::VerifyAndClear(void* mock_obj) in VerifyAndClear() argument
668 ClearDefaultActionsLocked(mock_obj); in VerifyAndClear()
669 return VerifyAndClearExpectationsLocked(mock_obj); in VerifyAndClear()
675 bool Mock::VerifyAndClearExpectationsLocked(void* mock_obj) in VerifyAndClearExpectationsLocked() argument
678 if (g_mock_object_registry.states().count(mock_obj) == 0) { in VerifyAndClearExpectationsLocked()
687 g_mock_object_registry.states()[mock_obj].function_mockers; in VerifyAndClearExpectationsLocked()
701 void Mock::Register(const void* mock_obj, in Register() argument
705 g_mock_object_registry.states()[mock_obj].function_mockers.insert(mocker); in Register()
711 void Mock::RegisterUseByOnCallOrExpectCall(const void* mock_obj, in RegisterUseByOnCallOrExpectCall() argument
715 MockObjectState& state = g_mock_object_registry.states()[mock_obj]; in RegisterUseByOnCallOrExpectCall()
753 void Mock::ClearDefaultActionsLocked(void* mock_obj) in ClearDefaultActionsLocked() argument
757 if (g_mock_object_registry.states().count(mock_obj) == 0) { in ClearDefaultActionsLocked()
765 g_mock_object_registry.states()[mock_obj].function_mockers; in ClearDefaultActionsLocked()