Orxonox  0.0.5 Codename: Arcturus
Public Types | Public Member Functions | Protected Types | Protected Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
testing::internal::FunctionMockerBase< F > Class Template Reference

#include </home/jenkins/workspace/orxonox_doxygen_trunk/src/external/gmock/include/gmock/gmock-generated-function-mockers.h>

Inheritance diagram for testing::internal::FunctionMockerBase< F >:
testing::internal::UntypedFunctionMockerBase

Public Types

typedef Function< F >::ArgumentMatcherTuple ArgumentMatcherTuple
 
typedef Function< F >::ArgumentTuple ArgumentTuple
 
typedef Function< F >::Result Result
 

Public Member Functions

 FunctionMockerBase ()
 
virtual ~FunctionMockerBase ()
 
virtual void ClearDefaultActionsLocked ()
 
const OnCallSpec< F > * FindOnCallSpec (const ArgumentTuple &args) const
 
Result PerformDefaultAction (const ArgumentTuple &args, const string &call_description) const
 
virtual UntypedActionResultHolderBaseUntypedPerformAction (const void *untyped_action, const void *untyped_args) const
 
virtual UntypedActionResultHolderBaseUntypedPerformDefaultAction (const void *untyped_args, const string &call_description) const
 
- Public Member Functions inherited from testing::internal::UntypedFunctionMockerBase
 UntypedFunctionMockerBase ()
 
virtual ~UntypedFunctionMockerBase ()
 
const voidMockObject () const
 
const char * Name () const
 
void RegisterOwner (const void *mock_obj)
 
void SetOwnerAndName (const void *mock_obj, const char *name)
 
const UntypedActionResultHolderBaseUntypedInvokeWith (const void *untyped_args)
 
bool VerifyAndClearExpectationsLocked ()
 

Protected Types

typedef ActionResultHolder< ResultResultHolder
 
- Protected Types inherited from testing::internal::UntypedFunctionMockerBase
typedef std::vector< internal::linked_ptr< ExpectationBase > > UntypedExpectations
 
typedef std::vector< const void * > UntypedOnCallSpecs
 

Protected Member Functions

TypedExpectation< F > & AddNewExpectation (const char *file, int line, const string &source_text, const ArgumentMatcherTuple &m)
 
OnCallSpec< F > & AddNewOnCallSpec (const char *file, int line, const ArgumentMatcherTuple &m)
 
MockSpec< F > & current_spec ()
 
Result InvokeWith (const ArgumentTuple &args)
 
- Protected Member Functions inherited from testing::internal::UntypedFunctionMockerBase
Expectation GetHandleOf (ExpectationBase *exp)
 

Private Member Functions

void DescribeDefaultActionTo (const ArgumentTuple &args,::std::ostream *os) const
 
TypedExpectation< F > * FindMatchingExpectationLocked (const ArgumentTuple &args) const
 
void FormatUnexpectedCallMessageLocked (const ArgumentTuple &args,::std::ostream *os,::std::ostream *why) const
 
 GTEST_DISALLOW_COPY_AND_ASSIGN_ (FunctionMockerBase)
 
void PrintTriedExpectationsLocked (const ArgumentTuple &args,::std::ostream *why) const
 
virtual void UntypedDescribeUninterestingCall (const void *untyped_args,::std::ostream *os) const
 
virtual const ExpectationBaseUntypedFindMatchingExpectation (const void *untyped_args, const void **untyped_action, bool *is_excessive,::std::ostream *what,::std::ostream *why)
 
virtual void UntypedPrintArgs (const void *untyped_args,::std::ostream *os) const
 

Private Attributes

MockSpec< F > current_spec_
 

Friends

template<typename Function >
class MockSpec
 
template<typename Func >
class TypedExpectation
 

Additional Inherited Members

- Protected Attributes inherited from testing::internal::UntypedFunctionMockerBase
const voidmock_obj_
 
const char * name_
 
UntypedExpectations untyped_expectations_
 
UntypedOnCallSpecs untyped_on_call_specs_
 

Member Typedef Documentation

template<typename F>
typedef Function<F>::Result testing::internal::FunctionMockerBase< F >::Result
template<typename F>
typedef ActionResultHolder<Result> testing::internal::FunctionMockerBase< F >::ResultHolder
protected

Constructor & Destructor Documentation

template<typename F>
testing::internal::FunctionMockerBase< F >::FunctionMockerBase ( )
inline
template<typename F>
virtual testing::internal::FunctionMockerBase< F >::~FunctionMockerBase ( )
inlinevirtual

Member Function Documentation

template<typename F>
TypedExpectation<F>& testing::internal::FunctionMockerBase< F >::AddNewExpectation ( const char *  file,
int  line,
const string source_text,
const ArgumentMatcherTuple m 
)
inlineprotected
template<typename F>
OnCallSpec<F>& testing::internal::FunctionMockerBase< F >::AddNewOnCallSpec ( const char *  file,
int  line,
const ArgumentMatcherTuple m 
)
inlineprotected
template<typename F>
virtual void testing::internal::FunctionMockerBase< F >::ClearDefaultActionsLocked ( )
inlinevirtual
template<typename F>
MockSpec<F>& testing::internal::FunctionMockerBase< F >::current_spec ( )
inlineprotected
template<typename F>
void testing::internal::FunctionMockerBase< F >::DescribeDefaultActionTo ( const ArgumentTuple args,
::std::ostream *  os 
) const
inlineprivate
template<typename F>
TypedExpectation<F>* testing::internal::FunctionMockerBase< F >::FindMatchingExpectationLocked ( const ArgumentTuple args) const
inlineprivate
template<typename F>
const OnCallSpec<F>* testing::internal::FunctionMockerBase< F >::FindOnCallSpec ( const ArgumentTuple args) const
inline
template<typename F>
void testing::internal::FunctionMockerBase< F >::FormatUnexpectedCallMessageLocked ( const ArgumentTuple args,
::std::ostream *  os,
::std::ostream *  why 
) const
inlineprivate
template<typename F>
testing::internal::FunctionMockerBase< F >::GTEST_DISALLOW_COPY_AND_ASSIGN_ ( FunctionMockerBase< F >  )
private
template<typename F>
Result testing::internal::FunctionMockerBase< F >::InvokeWith ( const ArgumentTuple args)
inlineprotected
template<typename F>
Result testing::internal::FunctionMockerBase< F >::PerformDefaultAction ( const ArgumentTuple args,
const string call_description 
) const
inline
template<typename F>
void testing::internal::FunctionMockerBase< F >::PrintTriedExpectationsLocked ( const ArgumentTuple args,
::std::ostream *  why 
) const
inlineprivate
template<typename F>
virtual void testing::internal::FunctionMockerBase< F >::UntypedDescribeUninterestingCall ( const void untyped_args,
::std::ostream *  os 
) const
inlineprivatevirtual
template<typename F>
virtual const ExpectationBase* testing::internal::FunctionMockerBase< F >::UntypedFindMatchingExpectation ( const void untyped_args,
const void **  untyped_action,
bool *  is_excessive,
::std::ostream *  what,
::std::ostream *  why 
)
inlineprivatevirtual
template<typename F>
virtual UntypedActionResultHolderBase* testing::internal::FunctionMockerBase< F >::UntypedPerformAction ( const void untyped_action,
const void untyped_args 
) const
inlinevirtual
template<typename F>
virtual UntypedActionResultHolderBase* testing::internal::FunctionMockerBase< F >::UntypedPerformDefaultAction ( const void untyped_args,
const string call_description 
) const
inlinevirtual
template<typename F>
virtual void testing::internal::FunctionMockerBase< F >::UntypedPrintArgs ( const void untyped_args,
::std::ostream *  os 
) const
inlineprivatevirtual

Friends And Related Function Documentation

template<typename F>
template<typename Function >
friend class MockSpec
friend
template<typename F>
template<typename Func >
friend class TypedExpectation
friend

Member Data Documentation

template<typename F>
MockSpec<F> testing::internal::FunctionMockerBase< F >::current_spec_
private

The documentation for this class was generated from the following files: