v8toolkit  0.0.1
Utility library for embedding V8 Javascript engine in a c++ program
Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
testing::internal::FunctionMocker< R(A1)> Class Template Reference

#include <gmock-generated-function-mockers.h>

Inheritance diagram for testing::internal::FunctionMocker< R(A1)>:
Inheritance graph
[legend]
Collaboration diagram for testing::internal::FunctionMocker< R(A1)>:
Collaboration graph
[legend]

Public Types

typedef R F(A1)
 
typedef internal::Function< F >::ArgumentTuple ArgumentTuple
 
typedef Function< R(A1) >::Result Result
 
typedef Function< R(A1) >::ArgumentMatcherTuple ArgumentMatcherTuple
 

Public Member Functions

MockSpec< F > & With (const Matcher< A1 > &m1)
 
Invoke (A1 a1)
 
const OnCallSpec< R(A1) > * FindOnCallSpec (const ArgumentTuple &args) const
 
Result PerformDefaultAction (const ArgumentTuple &args, const string &call_description) const
 
virtual UntypedActionResultHolderBaseUntypedPerformDefaultAction (const void *untyped_args, const string &call_description) const
 
virtual UntypedActionResultHolderBaseUntypedPerformAction (const void *untyped_action, const void *untyped_args) const
 
virtual void ClearDefaultActionsLocked () GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex)
 
bool VerifyAndClearExpectationsLocked () GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex)
 
void RegisterOwner (const void *mock_obj) GTEST_LOCK_EXCLUDED_(g_gmock_mutex)
 
void SetOwnerAndName (const void *mock_obj, const char *name) GTEST_LOCK_EXCLUDED_(g_gmock_mutex)
 
const void * MockObject () const GTEST_LOCK_EXCLUDED_(g_gmock_mutex)
 
const char * Name () const GTEST_LOCK_EXCLUDED_(g_gmock_mutex)
 
UntypedActionResultHolderBaseUntypedInvokeWith (const void *untyped_args) GTEST_LOCK_EXCLUDED_(g_gmock_mutex)
 

Protected Types

typedef ActionResultHolder< ResultResultHolder
 
typedef std::vector< const void * > UntypedOnCallSpecs
 
typedef std::vector< internal::linked_ptr< ExpectationBase > > UntypedExpectations
 

Protected Member Functions

Result InvokeWith (const ArgumentTuple &args) GTEST_LOCK_EXCLUDED_(g_gmock_mutex)
 
OnCallSpec< R(A1) > & AddNewOnCallSpec (const char *file, int line, const ArgumentMatcherTuple &m) GTEST_LOCK_EXCLUDED_(g_gmock_mutex)
 
TypedExpectation< R(A1) > & AddNewExpectation (const char *file, int line, const string &source_text, const ArgumentMatcherTuple &m) GTEST_LOCK_EXCLUDED_(g_gmock_mutex)
 
MockSpec< R(A1) > & current_spec ()
 
Expectation GetHandleOf (ExpectationBase *exp)
 

Protected Attributes

const void * mock_obj_
 
const char * name_
 
UntypedOnCallSpecs untyped_on_call_specs_
 
UntypedExpectations untyped_expectations_
 

Detailed Description

template<typename R, typename A1>
class testing::internal::FunctionMocker< R(A1)>

Definition at line 85 of file gmock-generated-function-mockers.h.

Member Typedef Documentation

template<typename R , typename A1 >
typedef R testing::internal::FunctionMocker< R(A1)>::F(A1)

Definition at line 88 of file gmock-generated-function-mockers.h.

template<typename R , typename A1 >
typedef internal::Function<F>::ArgumentTuple testing::internal::FunctionMocker< R(A1)>::ArgumentTuple

Definition at line 89 of file gmock-generated-function-mockers.h.

typedef Function<R(A1) >::Result testing::internal::FunctionMockerBase< R(A1) >::Result
inherited

Definition at line 1458 of file gmock-spec-builders.h.

Definition at line 1460 of file gmock-spec-builders.h.

Definition at line 1577 of file gmock-spec-builders.h.

typedef std::vector<const void*> testing::internal::UntypedFunctionMockerBase::UntypedOnCallSpecs
protectedinherited

Definition at line 219 of file gmock-spec-builders.h.

Definition at line 222 of file gmock-spec-builders.h.

Member Function Documentation

template<typename R , typename A1 >
MockSpec<F>& testing::internal::FunctionMocker< R(A1)>::With ( const Matcher< A1 > &  m1)
inline

Definition at line 91 of file gmock-generated-function-mockers.h.

References std::tr1::make_tuple().

Here is the call graph for this function:

template<typename R , typename A1 >
R testing::internal::FunctionMocker< R(A1)>::Invoke ( A1  a1)
inline

Definition at line 96 of file gmock-generated-function-mockers.h.

const OnCallSpec<R(A1) >* testing::internal::FunctionMockerBase< R(A1) >::FindOnCallSpec ( const ArgumentTuple args) const
inlineinherited

Definition at line 1478 of file gmock-spec-builders.h.

Result testing::internal::FunctionMockerBase< R(A1) >::PerformDefaultAction ( const ArgumentTuple args,
const string call_description 
) const
inlineinherited

Definition at line 1498 of file gmock-spec-builders.h.

virtual UntypedActionResultHolderBase* testing::internal::FunctionMockerBase< R(A1) >::UntypedPerformDefaultAction ( const void *  untyped_args,
const string call_description 
) const
inlinevirtualinherited
virtual UntypedActionResultHolderBase* testing::internal::FunctionMockerBase< R(A1) >::UntypedPerformAction ( const void *  untyped_action,
const void *  untyped_args 
) const
inlinevirtualinherited
virtual void testing::internal::FunctionMockerBase< R(A1) >::ClearDefaultActionsLocked ( )
inlinevirtualinherited
Result testing::internal::FunctionMockerBase< R(A1) >::InvokeWith ( const ArgumentTuple args)
inlineprotectedinherited

Definition at line 1582 of file gmock-spec-builders.h.

OnCallSpec<R(A1) >& testing::internal::FunctionMockerBase< R(A1) >::AddNewOnCallSpec ( const char *  file,
int  line,
const ArgumentMatcherTuple m 
)
inlineprotectedinherited

Definition at line 1590 of file gmock-spec-builders.h.

TypedExpectation<R(A1) >& testing::internal::FunctionMockerBase< R(A1) >::AddNewExpectation ( const char *  file,
int  line,
const string source_text,
const ArgumentMatcherTuple m 
)
inlineprotectedinherited

Definition at line 1601 of file gmock-spec-builders.h.

MockSpec<R(A1) >& testing::internal::FunctionMockerBase< R(A1) >::current_spec ( )
inlineprotectedinherited

Definition at line 1624 of file gmock-spec-builders.h.

bool testing::internal::UntypedFunctionMockerBase::VerifyAndClearExpectationsLocked ( )
inherited
void testing::internal::UntypedFunctionMockerBase::RegisterOwner ( const void *  mock_obj)
inherited
void testing::internal::UntypedFunctionMockerBase::SetOwnerAndName ( const void *  mock_obj,
const char *  name 
)
inherited
const void* testing::internal::UntypedFunctionMockerBase::MockObject ( ) const
inherited
const char* testing::internal::UntypedFunctionMockerBase::Name ( ) const
inherited
UntypedActionResultHolderBase* testing::internal::UntypedFunctionMockerBase::UntypedInvokeWith ( const void *  untyped_args)
inherited
Expectation testing::internal::UntypedFunctionMockerBase::GetHandleOf ( ExpectationBase exp)
protectedinherited

Member Data Documentation

const void* testing::internal::UntypedFunctionMockerBase::mock_obj_
protectedinherited

Definition at line 231 of file gmock-spec-builders.h.

const char* testing::internal::UntypedFunctionMockerBase::name_
protectedinherited

Definition at line 235 of file gmock-spec-builders.h.

UntypedOnCallSpecs testing::internal::UntypedFunctionMockerBase::untyped_on_call_specs_
protectedinherited

Definition at line 238 of file gmock-spec-builders.h.

UntypedExpectations testing::internal::UntypedFunctionMockerBase::untyped_expectations_
protectedinherited

Definition at line 241 of file gmock-spec-builders.h.


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