Electroneum
Loading...
Searching...
No Matches
testing::internal::FunctionMocker< R(A1, A2, A3, A4, A5, A6, A7, A8)> Class Template Reference

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

Inheritance diagram for testing::internal::FunctionMocker< R(A1, A2, A3, A4, A5, A6, A7, A8)>:
Collaboration diagram for testing::internal::FunctionMocker< R(A1, A2, A3, A4, A5, A6, A7, A8)>:

Public Types

typedef R F(A1, A2, A3, A4, A5, A6, A7, A8)
typedef internal::Function< F >::ArgumentTuple ArgumentTuple
Public Types inherited from testing::internal::FunctionMockerBase< R(A1, A2, A3, A4, A5, A6, A7, A8)>
typedef Function< R(A1, A2, A3, A4, A5, A6, A7, A8) >::Result Result
typedef Function< R(A1, A2, A3, A4, A5, A6, A7, A8) >::ArgumentTuple ArgumentTuple
typedef Function< R(A1, A2, A3, A4, A5, A6, A7, A8) >::ArgumentMatcherTuple ArgumentMatcherTuple

Public Member Functions

MockSpec< F > & With (const Matcher< A1 > &m1, const Matcher< A2 > &m2, const Matcher< A3 > &m3, const Matcher< A4 > &m4, const Matcher< A5 > &m5, const Matcher< A6 > &m6, const Matcher< A7 > &m7, const Matcher< A8 > &m8)
Invoke (A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8)
Public Member Functions inherited from testing::internal::FunctionMockerBase< R(A1, A2, A3, A4, A5, A6, A7, A8)>
 FunctionMockerBase ()
virtual ~FunctionMockerBase () GTEST_LOCK_EXCLUDED_(g_gmock_mutex)
const OnCallSpec< R(A1, A2, A3, A4, A5, A6, A7, A8) > * 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)
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 (const void *untyped_args) GTEST_LOCK_EXCLUDED_(g_gmock_mutex)

Additional Inherited Members

Protected Types inherited from testing::internal::FunctionMockerBase< R(A1, A2, A3, A4, A5, A6, A7, A8)>
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(A1, A2, A3, A4, A5, A6, A7, A8)>
Result InvokeWith (const ArgumentTuple &args) GTEST_LOCK_EXCLUDED_(g_gmock_mutex)
OnCallSpec< R(A1, A2, A3, A4, A5, A6, A7, A8) > & AddNewOnCallSpec (const char *file, int line, const ArgumentMatcherTuple &m) GTEST_LOCK_EXCLUDED_(g_gmock_mutex)
TypedExpectation< R(A1, A2, A3, A4, A5, A6, A7, A8) > & AddNewExpectation (const char *file, int line, const string &source_text, const ArgumentMatcherTuple &m) GTEST_LOCK_EXCLUDED_(g_gmock_mutex)
MockSpec< R(A1, A2, A3, A4, A5, A6, A7, A8) > & current_spec ()
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, typename A1, typename A2, typename A3, typename A4, typename A5, typename A6, typename A7, typename A8>
class testing::internal::FunctionMocker< R(A1, A2, A3, A4, A5, A6, A7, A8)>

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

Member Typedef Documentation

◆ ArgumentTuple

template<typename R, typename A1, typename A2, typename A3, typename A4, typename A5, typename A6, typename A7, typename A8>
typedef internal::Function<F>::ArgumentTuple testing::internal::FunctionMocker< R(A1, A2, A3, A4, A5, A6, A7, A8)>::ArgumentTuple

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

◆ F

template<typename R, typename A1, typename A2, typename A3, typename A4, typename A5, typename A6, typename A7, typename A8>
typedef R testing::internal::FunctionMocker< R(A1, A2, A3, A4, A5, A6, A7, A8)>::F(A1, A2, A3, A4, A5, A6, A7, A8)

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

Member Function Documentation

◆ Invoke()

template<typename R, typename A1, typename A2, typename A3, typename A4, typename A5, typename A6, typename A7, typename A8>
R testing::internal::FunctionMocker< R(A1, A2, A3, A4, A5, A6, A7, A8)>::Invoke ( A1 a1,
A2 a2,
A3 a3,
A4 a4,
A5 a5,
A6 a6,
A7 a7,
A8 a8 )
inline

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

259 {
260 // Even though gcc and MSVC don't enforce it, 'this->' is required
261 // by the C++ standard [14.6.4] here, as the base class type is
262 // dependent on the template argument (and thus shouldn't be
263 // looked into when resolving InvokeWith).
264 return this->InvokeWith(ArgumentTuple(a1, a2, a3, a4, a5, a6, a7, a8));
265 }
Result InvokeWith(const ArgumentTuple &args) GTEST_LOCK_EXCLUDED_(g_gmock_mutex)
Here is the call graph for this function:

◆ With()

template<typename R, typename A1, typename A2, typename A3, typename A4, typename A5, typename A6, typename A7, typename A8>
MockSpec< F > & testing::internal::FunctionMocker< R(A1, A2, A3, A4, A5, A6, A7, A8)>::With ( const Matcher< A1 > & m1,
const Matcher< A2 > & m2,
const Matcher< A3 > & m3,
const Matcher< A4 > & m4,
const Matcher< A5 > & m5,
const Matcher< A6 > & m6,
const Matcher< A7 > & m7,
const Matcher< A8 > & m8 )
inline

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

253 {
254 this->current_spec().SetMatchers(::testing::make_tuple(m1, m2, m3, m4, m5,
255 m6, m7, m8));
256 return this->current_spec();
257 }
Here is the call graph for this function:

The documentation for this class was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-function-mockers.h