• Home
  • Raw
  • Download

Lines Matching refs:mock_obj

278 void UntypedFunctionMockerBase::RegisterOwner(const void* mock_obj)  in RegisterOwner()  argument
282 mock_obj_ = mock_obj; in RegisterOwner()
284 Mock::Register(mock_obj, this); in RegisterOwner()
290 void UntypedFunctionMockerBase::SetOwnerAndName(const void* mock_obj, in SetOwnerAndName() argument
296 mock_obj_ = mock_obj; in SetOwnerAndName()
304 const void* mock_obj; in MockObject() local
312 mock_obj = mock_obj_; in MockObject()
314 return mock_obj; in MockObject()
606 void SetReactionOnUninterestingCalls(const void* mock_obj, in SetReactionOnUninterestingCalls() argument
610 g_uninteresting_call_reaction[mock_obj] = reaction; in SetReactionOnUninterestingCalls()
617 void Mock::AllowUninterestingCalls(const void* mock_obj) in AllowUninterestingCalls() argument
619 SetReactionOnUninterestingCalls(mock_obj, internal::kAllow); in AllowUninterestingCalls()
624 void Mock::WarnUninterestingCalls(const void* mock_obj) in WarnUninterestingCalls() argument
626 SetReactionOnUninterestingCalls(mock_obj, internal::kWarn); in WarnUninterestingCalls()
631 void Mock::FailUninterestingCalls(const void* mock_obj) in FailUninterestingCalls() argument
633 SetReactionOnUninterestingCalls(mock_obj, internal::kFail); in FailUninterestingCalls()
638 void Mock::UnregisterCallReaction(const void* mock_obj) in UnregisterCallReaction() argument
641 g_uninteresting_call_reaction.erase(mock_obj); in UnregisterCallReaction()
647 const void* mock_obj) in GetReactionOnUninterestingCalls() argument
650 return (g_uninteresting_call_reaction.count(mock_obj) == 0) ? in GetReactionOnUninterestingCalls()
651 internal::kDefault : g_uninteresting_call_reaction[mock_obj]; in GetReactionOnUninterestingCalls()
656 void Mock::AllowLeak(const void* mock_obj) in AllowLeak() argument
659 g_mock_object_registry.states()[mock_obj].leakable = true; in AllowLeak()
665 bool Mock::VerifyAndClearExpectations(void* mock_obj) in VerifyAndClearExpectations() argument
668 return VerifyAndClearExpectationsLocked(mock_obj); in VerifyAndClearExpectations()
674 bool Mock::VerifyAndClear(void* mock_obj) in VerifyAndClear() argument
677 ClearDefaultActionsLocked(mock_obj); in VerifyAndClear()
678 return VerifyAndClearExpectationsLocked(mock_obj); in VerifyAndClear()
684 bool Mock::VerifyAndClearExpectationsLocked(void* mock_obj) in VerifyAndClearExpectationsLocked() argument
687 if (g_mock_object_registry.states().count(mock_obj) == 0) { in VerifyAndClearExpectationsLocked()
696 g_mock_object_registry.states()[mock_obj].function_mockers; in VerifyAndClearExpectationsLocked()
710 void Mock::Register(const void* mock_obj, in Register() argument
714 g_mock_object_registry.states()[mock_obj].function_mockers.insert(mocker); in Register()
720 void Mock::RegisterUseByOnCallOrExpectCall(const void* mock_obj, in RegisterUseByOnCallOrExpectCall() argument
724 MockObjectState& state = g_mock_object_registry.states()[mock_obj]; in RegisterUseByOnCallOrExpectCall()
762 void Mock::ClearDefaultActionsLocked(void* mock_obj) in ClearDefaultActionsLocked() argument
766 if (g_mock_object_registry.states().count(mock_obj) == 0) { in ClearDefaultActionsLocked()
774 g_mock_object_registry.states()[mock_obj].function_mockers; in ClearDefaultActionsLocked()