Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
testing::internal::FunctionMocker< R()> Class Template Reference

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

Inheritance diagram for testing::internal::FunctionMocker< R()>:
Collaboration diagram for testing::internal::FunctionMocker< R()>:

Public Types

typedef R F()
 
typedef internal::Function< F >::ArgumentTuple ArgumentTuple
 
- Public Types inherited from testing::internal::FunctionMockerBase< R()>
typedef Function< R() >::Result Result
 
typedef Function< R() >::ArgumentTuple ArgumentTuple
 
typedef Function< R() >::ArgumentMatcherTuple ArgumentMatcherTuple
 

Public Member Functions

MockSpec< FWith ()
 
R Invoke ()
 
- Public Member Functions inherited from testing::internal::FunctionMockerBase< R()>
 FunctionMockerBase ()
 
virtual ~FunctionMockerBase () GTEST_LOCK_EXCLUDED_(g_gmock_mutex)
 
const OnCallSpec< R() > * FindOnCallSpec (const ArgumentTuple &args) const
 
Result PerformDefaultAction (typename RvalueRef< typename Function< R() >::ArgumentTuple >::type args, const std::string &call_description) const
 
virtual UntypedActionResultHolderBaseUntypedPerformDefaultAction (void *untyped_args, const std::string &call_description) const
 
virtual UntypedActionResultHolderBaseUntypedPerformAction (const void *untyped_action, void *untyped_args) const
 
virtual void ClearDefaultActionsLocked () GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex)
 
- Public Member Functions inherited from testing::internal::UntypedFunctionMockerBase
 UntypedFunctionMockerBase ()
 
virtual ~UntypedFunctionMockerBase ()
 
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 (void *untyped_args) GTEST_LOCK_EXCLUDED_(g_gmock_mutex)
 

Additional Inherited Members

- Protected Types inherited from testing::internal::FunctionMockerBase< R()>
typedef ActionResultHolder< ResultResultHolder
 
- Protected Types inherited from testing::internal::UntypedFunctionMockerBase
typedef std::vector< const void * > UntypedOnCallSpecs
 
typedef std::vector< internal::linked_ptr< ExpectationBase > > UntypedExpectations
 
- Protected Member Functions inherited from testing::internal::FunctionMockerBase< R()>
Result InvokeWith (typename RvalueRef< typename Function< R() >::ArgumentTuple >::type args) GTEST_LOCK_EXCLUDED_(g_gmock_mutex)
 
OnCallSpec< R() > & AddNewOnCallSpec (const char *file, int line, const ArgumentMatcherTuple &m) GTEST_LOCK_EXCLUDED_(g_gmock_mutex)
 
TypedExpectation< R() > & AddNewExpectation (const char *file, int line, const std::string &source_text, const ArgumentMatcherTuple &m) GTEST_LOCK_EXCLUDED_(g_gmock_mutex)
 
- Protected Member Functions inherited from testing::internal::UntypedFunctionMockerBase
Expectation GetHandleOf (ExpectationBase *exp)
 
- Protected Attributes inherited from testing::internal::UntypedFunctionMockerBase
const void * mock_obj_
 
const char * name_
 
UntypedOnCallSpecs untyped_on_call_specs_
 
UntypedExpectations untyped_expectations_
 

Detailed Description

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

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

Member Typedef Documentation

◆ ArgumentTuple

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

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

◆ F

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

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

Member Function Documentation

◆ Invoke()

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

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

75 {
76 // Even though gcc and MSVC don't enforce it, 'this->' is required
77 // by the C++ standard [14.6.4] here, as the base class type is
78 // dependent on the template argument (and thus shouldn't be
79 // looked into when resolving InvokeWith).
80 return this->InvokeWith(ArgumentTuple());
81 }
internal::Function< F >::ArgumentTuple ArgumentTuple
Result InvokeWith(typename RvalueRef< typename Function< R() >::ArgumentTuple >::type args) GTEST_LOCK_EXCLUDED_(g_gmock_mutex)

◆ With()

template<typename R >
MockSpec< F > testing::internal::FunctionMocker< R()>::With ( )
inline

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

71 {
72 return MockSpec<F>(this, ::testing::make_tuple());
73 }

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