Sacado Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Macros | Typedefs | Functions
gmock-function-mocker.h File Reference
#include <type_traits>
#include <utility>
#include "gmock/gmock-spec-builders.h"
#include "gmock/internal/gmock-internal-utils.h"
#include "gmock/internal/gmock-pp.h"
Include dependency graph for gmock-function-mocker.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 testing
 
 testing::internal
 

Macros

#define THIRD_PARTY_GOOGLETEST_GOOGLEMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_FUNCTION_MOCKER_H_
 
#define MOCK_METHOD(...)   GMOCK_PP_VARIADIC_CALL(GMOCK_INTERNAL_MOCK_METHOD_ARG_, __VA_ARGS__)
 
#define GMOCK_INTERNAL_MOCK_METHOD_ARG_1(...)   GMOCK_INTERNAL_WRONG_ARITY(__VA_ARGS__)
 
#define GMOCK_INTERNAL_MOCK_METHOD_ARG_2(...)   GMOCK_INTERNAL_WRONG_ARITY(__VA_ARGS__)
 
#define GMOCK_INTERNAL_MOCK_METHOD_ARG_3(_Ret, _MethodName, _Args)   GMOCK_INTERNAL_MOCK_METHOD_ARG_4(_Ret, _MethodName, _Args, ())
 
#define GMOCK_INTERNAL_MOCK_METHOD_ARG_4(_Ret, _MethodName, _Args, _Spec)
 
#define GMOCK_INTERNAL_MOCK_METHOD_ARG_5(...)   GMOCK_INTERNAL_WRONG_ARITY(__VA_ARGS__)
 
#define GMOCK_INTERNAL_MOCK_METHOD_ARG_6(...)   GMOCK_INTERNAL_WRONG_ARITY(__VA_ARGS__)
 
#define GMOCK_INTERNAL_MOCK_METHOD_ARG_7(...)   GMOCK_INTERNAL_WRONG_ARITY(__VA_ARGS__)
 
#define GMOCK_INTERNAL_WRONG_ARITY(...)
 
#define GMOCK_INTERNAL_ASSERT_PARENTHESIS(_Tuple)
 
#define GMOCK_INTERNAL_ASSERT_VALID_SIGNATURE(_N,...)
 
#define GMOCK_INTERNAL_ASSERT_VALID_SPEC(_Spec)   GMOCK_PP_FOR_EACH(GMOCK_INTERNAL_ASSERT_VALID_SPEC_ELEMENT, ~, _Spec)
 
#define GMOCK_INTERNAL_MOCK_METHOD_IMPL(_N, _MethodName, _Constness,_Override, _Final, _NoexceptSpec,_CallType, _Signature)
 
#define GMOCK_INTERNAL_EXPAND(...)   __VA_ARGS__
 
#define GMOCK_INTERNAL_HAS_CONST(_Tuple)   GMOCK_PP_HAS_COMMA(GMOCK_PP_FOR_EACH(GMOCK_INTERNAL_DETECT_CONST, ~, _Tuple))
 
#define GMOCK_INTERNAL_HAS_OVERRIDE(_Tuple)
 
#define GMOCK_INTERNAL_HAS_FINAL(_Tuple)   GMOCK_PP_HAS_COMMA(GMOCK_PP_FOR_EACH(GMOCK_INTERNAL_DETECT_FINAL, ~, _Tuple))
 
#define GMOCK_INTERNAL_GET_NOEXCEPT_SPEC(_Tuple)   GMOCK_PP_FOR_EACH(GMOCK_INTERNAL_NOEXCEPT_SPEC_IF_NOEXCEPT, ~, _Tuple)
 
#define GMOCK_INTERNAL_NOEXCEPT_SPEC_IF_NOEXCEPT(_i, _, _elem)
 
#define GMOCK_INTERNAL_GET_CALLTYPE(_Tuple)   GMOCK_PP_FOR_EACH(GMOCK_INTERNAL_GET_CALLTYPE_IMPL, ~, _Tuple)
 
#define GMOCK_INTERNAL_ASSERT_VALID_SPEC_ELEMENT(_i, _, _elem)
 
#define GMOCK_INTERNAL_DETECT_CONST(_i, _, _elem)   GMOCK_PP_CAT(GMOCK_INTERNAL_DETECT_CONST_I_, _elem)
 
#define GMOCK_INTERNAL_DETECT_CONST_I_const   ,
 
#define GMOCK_INTERNAL_DETECT_OVERRIDE(_i, _, _elem)   GMOCK_PP_CAT(GMOCK_INTERNAL_DETECT_OVERRIDE_I_, _elem)
 
#define GMOCK_INTERNAL_DETECT_OVERRIDE_I_override   ,
 
#define GMOCK_INTERNAL_DETECT_FINAL(_i, _, _elem)   GMOCK_PP_CAT(GMOCK_INTERNAL_DETECT_FINAL_I_, _elem)
 
#define GMOCK_INTERNAL_DETECT_FINAL_I_final   ,
 
#define GMOCK_INTERNAL_DETECT_NOEXCEPT(_i, _, _elem)   GMOCK_PP_CAT(GMOCK_INTERNAL_DETECT_NOEXCEPT_I_, _elem)
 
#define GMOCK_INTERNAL_DETECT_NOEXCEPT_I_noexcept   ,
 
#define GMOCK_INTERNAL_GET_CALLTYPE_IMPL(_i, _, _elem)
 
#define GMOCK_INTERNAL_IS_CALLTYPE(_arg)
 
#define GMOCK_INTERNAL_IS_CALLTYPE_I(_arg)   GMOCK_PP_IS_ENCLOSED_PARENS(_arg)
 
#define GMOCK_INTERNAL_GET_VALUE_CALLTYPE(_arg)
 
#define GMOCK_INTERNAL_GET_VALUE_CALLTYPE_I(_arg)   GMOCK_PP_IDENTITY _arg
 
#define GMOCK_INTERNAL_IS_CALLTYPE_HELPER_Calltype
 
#define GMOCK_INTERNAL_SIGNATURE(_Ret, _Args)
 
#define GMOCK_INTERNAL_GET_TYPE(_i, _, _elem)
 
#define GMOCK_INTERNAL_PARAMETER(_i, _Signature, _)
 
#define GMOCK_INTERNAL_FORWARD_ARG(_i, _Signature, _)
 
#define GMOCK_INTERNAL_MATCHER_PARAMETER(_i, _Signature, _)
 
#define GMOCK_INTERNAL_MATCHER_ARGUMENT(_i, _1, _2)
 
#define GMOCK_INTERNAL_A_MATCHER_ARGUMENT(_i, _Signature, _)
 
#define GMOCK_INTERNAL_ARG_O(_i,...)   typename ::testing::internal::Function<__VA_ARGS__>::template Arg<_i>::type
 
#define GMOCK_INTERNAL_MATCHER_O(_i,...)
 
#define MOCK_METHOD0(m,...)   GMOCK_INTERNAL_MOCK_METHODN(, , m, 0, __VA_ARGS__)
 
#define MOCK_METHOD1(m,...)   GMOCK_INTERNAL_MOCK_METHODN(, , m, 1, __VA_ARGS__)
 
#define MOCK_METHOD2(m,...)   GMOCK_INTERNAL_MOCK_METHODN(, , m, 2, __VA_ARGS__)
 
#define MOCK_METHOD3(m,...)   GMOCK_INTERNAL_MOCK_METHODN(, , m, 3, __VA_ARGS__)
 
#define MOCK_METHOD4(m,...)   GMOCK_INTERNAL_MOCK_METHODN(, , m, 4, __VA_ARGS__)
 
#define MOCK_METHOD5(m,...)   GMOCK_INTERNAL_MOCK_METHODN(, , m, 5, __VA_ARGS__)
 
#define MOCK_METHOD6(m,...)   GMOCK_INTERNAL_MOCK_METHODN(, , m, 6, __VA_ARGS__)
 
#define MOCK_METHOD7(m,...)   GMOCK_INTERNAL_MOCK_METHODN(, , m, 7, __VA_ARGS__)
 
#define MOCK_METHOD8(m,...)   GMOCK_INTERNAL_MOCK_METHODN(, , m, 8, __VA_ARGS__)
 
#define MOCK_METHOD9(m,...)   GMOCK_INTERNAL_MOCK_METHODN(, , m, 9, __VA_ARGS__)
 
#define MOCK_METHOD10(m,...)   GMOCK_INTERNAL_MOCK_METHODN(, , m, 10, __VA_ARGS__)
 
#define MOCK_CONST_METHOD0(m,...)   GMOCK_INTERNAL_MOCK_METHODN(const, , m, 0, __VA_ARGS__)
 
#define MOCK_CONST_METHOD1(m,...)   GMOCK_INTERNAL_MOCK_METHODN(const, , m, 1, __VA_ARGS__)
 
#define MOCK_CONST_METHOD2(m,...)   GMOCK_INTERNAL_MOCK_METHODN(const, , m, 2, __VA_ARGS__)
 
#define MOCK_CONST_METHOD3(m,...)   GMOCK_INTERNAL_MOCK_METHODN(const, , m, 3, __VA_ARGS__)
 
#define MOCK_CONST_METHOD4(m,...)   GMOCK_INTERNAL_MOCK_METHODN(const, , m, 4, __VA_ARGS__)
 
#define MOCK_CONST_METHOD5(m,...)   GMOCK_INTERNAL_MOCK_METHODN(const, , m, 5, __VA_ARGS__)
 
#define MOCK_CONST_METHOD6(m,...)   GMOCK_INTERNAL_MOCK_METHODN(const, , m, 6, __VA_ARGS__)
 
#define MOCK_CONST_METHOD7(m,...)   GMOCK_INTERNAL_MOCK_METHODN(const, , m, 7, __VA_ARGS__)
 
#define MOCK_CONST_METHOD8(m,...)   GMOCK_INTERNAL_MOCK_METHODN(const, , m, 8, __VA_ARGS__)
 
#define MOCK_CONST_METHOD9(m,...)   GMOCK_INTERNAL_MOCK_METHODN(const, , m, 9, __VA_ARGS__)
 
#define MOCK_CONST_METHOD10(m,...)   GMOCK_INTERNAL_MOCK_METHODN(const, , m, 10, __VA_ARGS__)
 
#define MOCK_METHOD0_T(m,...)   MOCK_METHOD0(m, __VA_ARGS__)
 
#define MOCK_METHOD1_T(m,...)   MOCK_METHOD1(m, __VA_ARGS__)
 
#define MOCK_METHOD2_T(m,...)   MOCK_METHOD2(m, __VA_ARGS__)
 
#define MOCK_METHOD3_T(m,...)   MOCK_METHOD3(m, __VA_ARGS__)
 
#define MOCK_METHOD4_T(m,...)   MOCK_METHOD4(m, __VA_ARGS__)
 
#define MOCK_METHOD5_T(m,...)   MOCK_METHOD5(m, __VA_ARGS__)
 
#define MOCK_METHOD6_T(m,...)   MOCK_METHOD6(m, __VA_ARGS__)
 
#define MOCK_METHOD7_T(m,...)   MOCK_METHOD7(m, __VA_ARGS__)
 
#define MOCK_METHOD8_T(m,...)   MOCK_METHOD8(m, __VA_ARGS__)
 
#define MOCK_METHOD9_T(m,...)   MOCK_METHOD9(m, __VA_ARGS__)
 
#define MOCK_METHOD10_T(m,...)   MOCK_METHOD10(m, __VA_ARGS__)
 
#define MOCK_CONST_METHOD0_T(m,...)   MOCK_CONST_METHOD0(m, __VA_ARGS__)
 
#define MOCK_CONST_METHOD1_T(m,...)   MOCK_CONST_METHOD1(m, __VA_ARGS__)
 
#define MOCK_CONST_METHOD2_T(m,...)   MOCK_CONST_METHOD2(m, __VA_ARGS__)
 
#define MOCK_CONST_METHOD3_T(m,...)   MOCK_CONST_METHOD3(m, __VA_ARGS__)
 
#define MOCK_CONST_METHOD4_T(m,...)   MOCK_CONST_METHOD4(m, __VA_ARGS__)
 
#define MOCK_CONST_METHOD5_T(m,...)   MOCK_CONST_METHOD5(m, __VA_ARGS__)
 
#define MOCK_CONST_METHOD6_T(m,...)   MOCK_CONST_METHOD6(m, __VA_ARGS__)
 
#define MOCK_CONST_METHOD7_T(m,...)   MOCK_CONST_METHOD7(m, __VA_ARGS__)
 
#define MOCK_CONST_METHOD8_T(m,...)   MOCK_CONST_METHOD8(m, __VA_ARGS__)
 
#define MOCK_CONST_METHOD9_T(m,...)   MOCK_CONST_METHOD9(m, __VA_ARGS__)
 
#define MOCK_CONST_METHOD10_T(m,...)   MOCK_CONST_METHOD10(m, __VA_ARGS__)
 
#define MOCK_METHOD0_WITH_CALLTYPE(ct, m,...)   GMOCK_INTERNAL_MOCK_METHODN(, ct, m, 0, __VA_ARGS__)
 
#define MOCK_METHOD1_WITH_CALLTYPE(ct, m,...)   GMOCK_INTERNAL_MOCK_METHODN(, ct, m, 1, __VA_ARGS__)
 
#define MOCK_METHOD2_WITH_CALLTYPE(ct, m,...)   GMOCK_INTERNAL_MOCK_METHODN(, ct, m, 2, __VA_ARGS__)
 
#define MOCK_METHOD3_WITH_CALLTYPE(ct, m,...)   GMOCK_INTERNAL_MOCK_METHODN(, ct, m, 3, __VA_ARGS__)
 
#define MOCK_METHOD4_WITH_CALLTYPE(ct, m,...)   GMOCK_INTERNAL_MOCK_METHODN(, ct, m, 4, __VA_ARGS__)
 
#define MOCK_METHOD5_WITH_CALLTYPE(ct, m,...)   GMOCK_INTERNAL_MOCK_METHODN(, ct, m, 5, __VA_ARGS__)
 
#define MOCK_METHOD6_WITH_CALLTYPE(ct, m,...)   GMOCK_INTERNAL_MOCK_METHODN(, ct, m, 6, __VA_ARGS__)
 
#define MOCK_METHOD7_WITH_CALLTYPE(ct, m,...)   GMOCK_INTERNAL_MOCK_METHODN(, ct, m, 7, __VA_ARGS__)
 
#define MOCK_METHOD8_WITH_CALLTYPE(ct, m,...)   GMOCK_INTERNAL_MOCK_METHODN(, ct, m, 8, __VA_ARGS__)
 
#define MOCK_METHOD9_WITH_CALLTYPE(ct, m,...)   GMOCK_INTERNAL_MOCK_METHODN(, ct, m, 9, __VA_ARGS__)
 
#define MOCK_METHOD10_WITH_CALLTYPE(ct, m,...)   GMOCK_INTERNAL_MOCK_METHODN(, ct, m, 10, __VA_ARGS__)
 
#define MOCK_CONST_METHOD0_WITH_CALLTYPE(ct, m,...)   GMOCK_INTERNAL_MOCK_METHODN(const, ct, m, 0, __VA_ARGS__)
 
#define MOCK_CONST_METHOD1_WITH_CALLTYPE(ct, m,...)   GMOCK_INTERNAL_MOCK_METHODN(const, ct, m, 1, __VA_ARGS__)
 
#define MOCK_CONST_METHOD2_WITH_CALLTYPE(ct, m,...)   GMOCK_INTERNAL_MOCK_METHODN(const, ct, m, 2, __VA_ARGS__)
 
#define MOCK_CONST_METHOD3_WITH_CALLTYPE(ct, m,...)   GMOCK_INTERNAL_MOCK_METHODN(const, ct, m, 3, __VA_ARGS__)
 
#define MOCK_CONST_METHOD4_WITH_CALLTYPE(ct, m,...)   GMOCK_INTERNAL_MOCK_METHODN(const, ct, m, 4, __VA_ARGS__)
 
#define MOCK_CONST_METHOD5_WITH_CALLTYPE(ct, m,...)   GMOCK_INTERNAL_MOCK_METHODN(const, ct, m, 5, __VA_ARGS__)
 
#define MOCK_CONST_METHOD6_WITH_CALLTYPE(ct, m,...)   GMOCK_INTERNAL_MOCK_METHODN(const, ct, m, 6, __VA_ARGS__)
 
#define MOCK_CONST_METHOD7_WITH_CALLTYPE(ct, m,...)   GMOCK_INTERNAL_MOCK_METHODN(const, ct, m, 7, __VA_ARGS__)
 
#define MOCK_CONST_METHOD8_WITH_CALLTYPE(ct, m,...)   GMOCK_INTERNAL_MOCK_METHODN(const, ct, m, 8, __VA_ARGS__)
 
#define MOCK_CONST_METHOD9_WITH_CALLTYPE(ct, m,...)   GMOCK_INTERNAL_MOCK_METHODN(const, ct, m, 9, __VA_ARGS__)
 
#define MOCK_CONST_METHOD10_WITH_CALLTYPE(ct, m,...)   GMOCK_INTERNAL_MOCK_METHODN(const, ct, m, 10, __VA_ARGS__)
 
#define MOCK_METHOD0_T_WITH_CALLTYPE(ct, m,...)   MOCK_METHOD0_WITH_CALLTYPE(ct, m, __VA_ARGS__)
 
#define MOCK_METHOD1_T_WITH_CALLTYPE(ct, m,...)   MOCK_METHOD1_WITH_CALLTYPE(ct, m, __VA_ARGS__)
 
#define MOCK_METHOD2_T_WITH_CALLTYPE(ct, m,...)   MOCK_METHOD2_WITH_CALLTYPE(ct, m, __VA_ARGS__)
 
#define MOCK_METHOD3_T_WITH_CALLTYPE(ct, m,...)   MOCK_METHOD3_WITH_CALLTYPE(ct, m, __VA_ARGS__)
 
#define MOCK_METHOD4_T_WITH_CALLTYPE(ct, m,...)   MOCK_METHOD4_WITH_CALLTYPE(ct, m, __VA_ARGS__)
 
#define MOCK_METHOD5_T_WITH_CALLTYPE(ct, m,...)   MOCK_METHOD5_WITH_CALLTYPE(ct, m, __VA_ARGS__)
 
#define MOCK_METHOD6_T_WITH_CALLTYPE(ct, m,...)   MOCK_METHOD6_WITH_CALLTYPE(ct, m, __VA_ARGS__)
 
#define MOCK_METHOD7_T_WITH_CALLTYPE(ct, m,...)   MOCK_METHOD7_WITH_CALLTYPE(ct, m, __VA_ARGS__)
 
#define MOCK_METHOD8_T_WITH_CALLTYPE(ct, m,...)   MOCK_METHOD8_WITH_CALLTYPE(ct, m, __VA_ARGS__)
 
#define MOCK_METHOD9_T_WITH_CALLTYPE(ct, m,...)   MOCK_METHOD9_WITH_CALLTYPE(ct, m, __VA_ARGS__)
 
#define MOCK_METHOD10_T_WITH_CALLTYPE(ct, m,...)   MOCK_METHOD10_WITH_CALLTYPE(ct, m, __VA_ARGS__)
 
#define MOCK_CONST_METHOD0_T_WITH_CALLTYPE(ct, m,...)   MOCK_CONST_METHOD0_WITH_CALLTYPE(ct, m, __VA_ARGS__)
 
#define MOCK_CONST_METHOD1_T_WITH_CALLTYPE(ct, m,...)   MOCK_CONST_METHOD1_WITH_CALLTYPE(ct, m, __VA_ARGS__)
 
#define MOCK_CONST_METHOD2_T_WITH_CALLTYPE(ct, m,...)   MOCK_CONST_METHOD2_WITH_CALLTYPE(ct, m, __VA_ARGS__)
 
#define MOCK_CONST_METHOD3_T_WITH_CALLTYPE(ct, m,...)   MOCK_CONST_METHOD3_WITH_CALLTYPE(ct, m, __VA_ARGS__)
 
#define MOCK_CONST_METHOD4_T_WITH_CALLTYPE(ct, m,...)   MOCK_CONST_METHOD4_WITH_CALLTYPE(ct, m, __VA_ARGS__)
 
#define MOCK_CONST_METHOD5_T_WITH_CALLTYPE(ct, m,...)   MOCK_CONST_METHOD5_WITH_CALLTYPE(ct, m, __VA_ARGS__)
 
#define MOCK_CONST_METHOD6_T_WITH_CALLTYPE(ct, m,...)   MOCK_CONST_METHOD6_WITH_CALLTYPE(ct, m, __VA_ARGS__)
 
#define MOCK_CONST_METHOD7_T_WITH_CALLTYPE(ct, m,...)   MOCK_CONST_METHOD7_WITH_CALLTYPE(ct, m, __VA_ARGS__)
 
#define MOCK_CONST_METHOD8_T_WITH_CALLTYPE(ct, m,...)   MOCK_CONST_METHOD8_WITH_CALLTYPE(ct, m, __VA_ARGS__)
 
#define MOCK_CONST_METHOD9_T_WITH_CALLTYPE(ct, m,...)   MOCK_CONST_METHOD9_WITH_CALLTYPE(ct, m, __VA_ARGS__)
 
#define MOCK_CONST_METHOD10_T_WITH_CALLTYPE(ct, m,...)   MOCK_CONST_METHOD10_WITH_CALLTYPE(ct, m, __VA_ARGS__)
 
#define GMOCK_INTERNAL_MOCK_METHODN(constness, ct, Method, args_num,...)
 
#define GMOCK_MOCKER_(arity, constness, Method)   GTEST_CONCAT_TOKEN_(gmock##constness##arity##_##Method##_, __LINE__)
 

Typedefs

template<typename T >
using testing::internal::identity_t = T
 

Functions

template<typename MockType >
const MockType * testing::internal::AdjustConstness_const (const MockType *mock)
 
template<typename MockType >
MockType * testing::internal::AdjustConstness_ (const MockType *mock)
 

Macro Definition Documentation

#define THIRD_PARTY_GOOGLETEST_GOOGLEMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_FUNCTION_MOCKER_H_

Definition at line 37 of file gmock-function-mocker.h.

#define MOCK_METHOD (   ...)    GMOCK_PP_VARIADIC_CALL(GMOCK_INTERNAL_MOCK_METHOD_ARG_, __VA_ARGS__)

Definition at line 71 of file gmock-function-mocker.h.

#define GMOCK_INTERNAL_MOCK_METHOD_ARG_1 (   ...)    GMOCK_INTERNAL_WRONG_ARITY(__VA_ARGS__)

Definition at line 74 of file gmock-function-mocker.h.

#define GMOCK_INTERNAL_MOCK_METHOD_ARG_2 (   ...)    GMOCK_INTERNAL_WRONG_ARITY(__VA_ARGS__)

Definition at line 77 of file gmock-function-mocker.h.

#define GMOCK_INTERNAL_MOCK_METHOD_ARG_3 (   _Ret,
  _MethodName,
  _Args 
)    GMOCK_INTERNAL_MOCK_METHOD_ARG_4(_Ret, _MethodName, _Args, ())

Definition at line 80 of file gmock-function-mocker.h.

#define GMOCK_INTERNAL_MOCK_METHOD_ARG_4 (   _Ret,
  _MethodName,
  _Args,
  _Spec 
)
Value:
GMOCK_PP_NARG0 _Args, _MethodName, GMOCK_INTERNAL_HAS_CONST(_Spec), \
(GMOCK_INTERNAL_SIGNATURE(_Ret, _Args)))
#define GMOCK_INTERNAL_GET_NOEXCEPT_SPEC(_Tuple)
#define GMOCK_INTERNAL_ASSERT_VALID_SIGNATURE(_N,...)
#define GMOCK_INTERNAL_HAS_OVERRIDE(_Tuple)
#define GMOCK_INTERNAL_GET_CALLTYPE(_Tuple)
#define GMOCK_INTERNAL_HAS_FINAL(_Tuple)
#define GMOCK_INTERNAL_SIGNATURE(_Ret, _Args)
#define GMOCK_INTERNAL_MOCK_METHOD_IMPL(_N, _MethodName, _Constness,_Override, _Final, _NoexceptSpec,_CallType, _Signature)
#define GMOCK_INTERNAL_ASSERT_PARENTHESIS(_Tuple)
#define GMOCK_PP_NARG0(...)
Definition: gmock-pp.h:110
#define GMOCK_INTERNAL_ASSERT_VALID_SPEC(_Spec)
#define GMOCK_INTERNAL_HAS_CONST(_Tuple)

Definition at line 83 of file gmock-function-mocker.h.

#define GMOCK_INTERNAL_MOCK_METHOD_ARG_5 (   ...)    GMOCK_INTERNAL_WRONG_ARITY(__VA_ARGS__)

Definition at line 96 of file gmock-function-mocker.h.

#define GMOCK_INTERNAL_MOCK_METHOD_ARG_6 (   ...)    GMOCK_INTERNAL_WRONG_ARITY(__VA_ARGS__)

Definition at line 99 of file gmock-function-mocker.h.

#define GMOCK_INTERNAL_MOCK_METHOD_ARG_7 (   ...)    GMOCK_INTERNAL_WRONG_ARITY(__VA_ARGS__)

Definition at line 102 of file gmock-function-mocker.h.

#define GMOCK_INTERNAL_WRONG_ARITY (   ...)
Value:
static_assert( \
false, \
"MOCK_METHOD must be called with 3 or 4 arguments. _Ret, " \
"_MethodName, _Args and optionally _Spec. _Args and _Spec must be " \
"enclosed in parentheses. If _Ret is a type with unprotected commas, " \
"it must also be enclosed in parentheses.")

Definition at line 105 of file gmock-function-mocker.h.

#define GMOCK_INTERNAL_ASSERT_PARENTHESIS (   _Tuple)
Value:
static_assert( \
GMOCK_PP_STRINGIZE(_Tuple) " should be enclosed in parentheses.")
#define GMOCK_PP_STRINGIZE(...)
Definition: gmock-pp.h:8
#define GMOCK_PP_IS_ENCLOSED_PARENS(...)
Definition: gmock-pp.h:120

Definition at line 113 of file gmock-function-mocker.h.

#define GMOCK_INTERNAL_ASSERT_VALID_SIGNATURE (   _N,
  ... 
)
Value:
static_assert( \
"Signature must be a function type, maybe return type contains " \
"unprotected comma."); \
static_assert( \
::testing::tuple_size<typename ::testing::internal::Function< \
__VA_ARGS__>::ArgumentTuple>::value == _N, \
"This method does not take " GMOCK_PP_STRINGIZE( \
_N) " arguments. Parenthesize all types with unproctected commas.")
#define GMOCK_PP_STRINGIZE(...)
Definition: gmock-pp.h:8
int value

Definition at line 118 of file gmock-function-mocker.h.

#define GMOCK_INTERNAL_ASSERT_VALID_SPEC (   _Spec)    GMOCK_PP_FOR_EACH(GMOCK_INTERNAL_ASSERT_VALID_SPEC_ELEMENT, ~, _Spec)

Definition at line 129 of file gmock-function-mocker.h.

#define GMOCK_INTERNAL_MOCK_METHOD_IMPL (   _N,
  _MethodName,
  _Constness,
  _Override,
  _Final,
  _NoexceptSpec,
  _CallType,
  _Signature 
)
Value:
typename ::testing::internal::Function<GMOCK_PP_REMOVE_PARENS( \
_Signature)>::Result \
_MethodName(GMOCK_PP_REPEAT(GMOCK_INTERNAL_PARAMETER, _Signature, _N)) \
GMOCK_PP_IF(_Constness, const, ) _NoexceptSpec \
GMOCK_PP_IF(_Override, override, ) GMOCK_PP_IF(_Final, final, ) { \
GMOCK_MOCKER_(_N, _Constness, _MethodName) \
.SetOwnerAndName(this, #_MethodName); \
return GMOCK_MOCKER_(_N, _Constness, _MethodName) \
.Invoke(GMOCK_PP_REPEAT(GMOCK_INTERNAL_FORWARD_ARG, _Signature, _N)); \
} \
::testing::MockSpec<GMOCK_PP_REMOVE_PARENS(_Signature)> gmock_##_MethodName( \
GMOCK_PP_IF(_Constness, const, ) { \
GMOCK_MOCKER_(_N, _Constness, _MethodName).RegisterOwner(this); \
return GMOCK_MOCKER_(_N, _Constness, _MethodName) \
} \
::testing::MockSpec<GMOCK_PP_REMOVE_PARENS(_Signature)> gmock_##_MethodName( \
const ::testing::internal::WithoutMatchers&, \
GMOCK_PP_IF(_Constness, const, )::testing::internal::Function< \
GMOCK_PP_REMOVE_PARENS(_Signature)>*) const _NoexceptSpec { \
GMOCK_PP_IF(_Constness, const, ))(this) \
->gmock_##_MethodName(GMOCK_PP_REPEAT( \
GMOCK_INTERNAL_A_MATCHER_ARGUMENT, _Signature, _N)); \
} \
mutable ::testing::FunctionMocker<GMOCK_PP_REMOVE_PARENS(_Signature)> \
GMOCK_MOCKER_(_N, _Constness, _MethodName)
MockType * AdjustConstness_(const MockType *mock)
#define GMOCK_INTERNAL_PARAMETER(_i, _Signature, _)
#define GMOCK_PP_REPEAT(_Macro, _Data, _N)
Definition: gmock-pp.h:139
#define GMOCK_PP_CAT(_1, _2)
Definition: gmock-pp.h:5
#define GMOCK_INTERNAL_A_MATCHER_ARGUMENT(_i, _Signature, _)
#define GMOCK_PP_REMOVE_PARENS(...)
Definition: gmock-pp.h:125
#define GMOCK_INTERNAL_MATCHER_ARGUMENT(_i, _1, _2)
#define GMOCK_INTERNAL_EXPAND(...)
#define GMOCK_PP_IF(_Cond, _Then, _Else)
Definition: gmock-pp.h:86
#define GMOCK_MOCKER_(arity, constness, Method)
#define GMOCK_INTERNAL_MATCHER_PARAMETER(_i, _Signature, _)
#define GMOCK_INTERNAL_FORWARD_ARG(_i, _Signature, _)

Definition at line 132 of file gmock-function-mocker.h.

#define GMOCK_INTERNAL_EXPAND (   ...)    __VA_ARGS__

Definition at line 165 of file gmock-function-mocker.h.

#define GMOCK_INTERNAL_HAS_CONST (   _Tuple)    GMOCK_PP_HAS_COMMA(GMOCK_PP_FOR_EACH(GMOCK_INTERNAL_DETECT_CONST, ~, _Tuple))

Definition at line 168 of file gmock-function-mocker.h.

#define GMOCK_INTERNAL_HAS_OVERRIDE (   _Tuple)
Value:
#define GMOCK_PP_HAS_COMMA(...)
Definition: gmock-pp.h:35
#define GMOCK_PP_FOR_EACH(_Macro, _Data, _Tuple)
Definition: gmock-pp.h:131
#define GMOCK_INTERNAL_DETECT_OVERRIDE(_i, _, _elem)

Definition at line 171 of file gmock-function-mocker.h.

#define GMOCK_INTERNAL_HAS_FINAL (   _Tuple)    GMOCK_PP_HAS_COMMA(GMOCK_PP_FOR_EACH(GMOCK_INTERNAL_DETECT_FINAL, ~, _Tuple))

Definition at line 175 of file gmock-function-mocker.h.

#define GMOCK_INTERNAL_GET_NOEXCEPT_SPEC (   _Tuple)    GMOCK_PP_FOR_EACH(GMOCK_INTERNAL_NOEXCEPT_SPEC_IF_NOEXCEPT, ~, _Tuple)

Definition at line 178 of file gmock-function-mocker.h.

#define GMOCK_INTERNAL_NOEXCEPT_SPEC_IF_NOEXCEPT (   _i,
  _,
  _elem 
)
Value:
_elem, )
#define GMOCK_PP_HAS_COMMA(...)
Definition: gmock-pp.h:35
#define GMOCK_INTERNAL_DETECT_NOEXCEPT(_i, _, _elem)
#define GMOCK_PP_IF(_Cond, _Then, _Else)
Definition: gmock-pp.h:86

Definition at line 181 of file gmock-function-mocker.h.

#define GMOCK_INTERNAL_GET_CALLTYPE (   _Tuple)    GMOCK_PP_FOR_EACH(GMOCK_INTERNAL_GET_CALLTYPE_IMPL, ~, _Tuple)

Definition at line 186 of file gmock-function-mocker.h.

#define GMOCK_INTERNAL_ASSERT_VALID_SPEC_ELEMENT (   _i,
  _,
  _elem 
)
Value:
static_assert( \
_elem) " cannot be recognized as a valid specification modifier.");
#define GMOCK_PP_STRINGIZE(...)
Definition: gmock-pp.h:8
#define GMOCK_PP_HAS_COMMA(...)
Definition: gmock-pp.h:35
#define GMOCK_INTERNAL_DETECT_CONST(_i, _, _elem)
#define GMOCK_INTERNAL_DETECT_NOEXCEPT(_i, _, _elem)
#define GMOCK_INTERNAL_DETECT_FINAL(_i, _, _elem)
#define GMOCK_INTERNAL_IS_CALLTYPE(_arg)
#define GMOCK_INTERNAL_DETECT_OVERRIDE(_i, _, _elem)

Definition at line 189 of file gmock-function-mocker.h.

#define GMOCK_INTERNAL_DETECT_CONST (   _i,
  _,
  _elem 
)    GMOCK_PP_CAT(GMOCK_INTERNAL_DETECT_CONST_I_, _elem)

Definition at line 200 of file gmock-function-mocker.h.

#define GMOCK_INTERNAL_DETECT_CONST_I_const   ,

Definition at line 203 of file gmock-function-mocker.h.

#define GMOCK_INTERNAL_DETECT_OVERRIDE (   _i,
  _,
  _elem 
)    GMOCK_PP_CAT(GMOCK_INTERNAL_DETECT_OVERRIDE_I_, _elem)

Definition at line 205 of file gmock-function-mocker.h.

#define GMOCK_INTERNAL_DETECT_OVERRIDE_I_override   ,

Definition at line 208 of file gmock-function-mocker.h.

#define GMOCK_INTERNAL_DETECT_FINAL (   _i,
  _,
  _elem 
)    GMOCK_PP_CAT(GMOCK_INTERNAL_DETECT_FINAL_I_, _elem)

Definition at line 210 of file gmock-function-mocker.h.

#define GMOCK_INTERNAL_DETECT_FINAL_I_final   ,

Definition at line 213 of file gmock-function-mocker.h.

#define GMOCK_INTERNAL_DETECT_NOEXCEPT (   _i,
  _,
  _elem 
)    GMOCK_PP_CAT(GMOCK_INTERNAL_DETECT_NOEXCEPT_I_, _elem)

Definition at line 215 of file gmock-function-mocker.h.

#define GMOCK_INTERNAL_DETECT_NOEXCEPT_I_noexcept   ,

Definition at line 218 of file gmock-function-mocker.h.

#define GMOCK_INTERNAL_GET_CALLTYPE_IMPL (   _i,
  _,
  _elem 
)
Value:
(_elem)
#define GMOCK_PP_EMPTY(...)
Definition: gmock-pp.h:11
#define GMOCK_INTERNAL_GET_VALUE_CALLTYPE(_arg)
#define GMOCK_INTERNAL_IS_CALLTYPE(_arg)
#define GMOCK_PP_IF(_Cond, _Then, _Else)
Definition: gmock-pp.h:86

Definition at line 220 of file gmock-function-mocker.h.

#define GMOCK_INTERNAL_IS_CALLTYPE (   _arg)
Value:
GMOCK_PP_CAT(GMOCK_INTERNAL_IS_CALLTYPE_HELPER_, _arg))
#define GMOCK_PP_CAT(_1, _2)
Definition: gmock-pp.h:5
#define GMOCK_INTERNAL_IS_CALLTYPE_I(_arg)

Definition at line 228 of file gmock-function-mocker.h.

#define GMOCK_INTERNAL_IS_CALLTYPE_I (   _arg)    GMOCK_PP_IS_ENCLOSED_PARENS(_arg)

Definition at line 231 of file gmock-function-mocker.h.

#define GMOCK_INTERNAL_GET_VALUE_CALLTYPE (   _arg)
Value:
GMOCK_PP_CAT(GMOCK_INTERNAL_IS_CALLTYPE_HELPER_, _arg))
#define GMOCK_INTERNAL_GET_VALUE_CALLTYPE_I(_arg)
#define GMOCK_PP_CAT(_1, _2)
Definition: gmock-pp.h:5

Definition at line 233 of file gmock-function-mocker.h.

#define GMOCK_INTERNAL_GET_VALUE_CALLTYPE_I (   _arg)    GMOCK_PP_IDENTITY _arg

Definition at line 236 of file gmock-function-mocker.h.

#define GMOCK_INTERNAL_IS_CALLTYPE_HELPER_Calltype

Definition at line 239 of file gmock-function-mocker.h.

#define GMOCK_INTERNAL_SIGNATURE (   _Ret,
  _Args 
)
Value:
GMOCK_PP_IDENTITY)(_Ret)>( \
#define GMOCK_INTERNAL_GET_TYPE(_i, _, _elem)
#define GMOCK_PP_IS_BEGIN_PARENS(...)
Definition: gmock-pp.h:115
#define GMOCK_PP_FOR_EACH(_Macro, _Data, _Tuple)
Definition: gmock-pp.h:131
#define GMOCK_PP_REMOVE_PARENS(...)
Definition: gmock-pp.h:125
#define GMOCK_PP_IF(_Cond, _Then, _Else)
Definition: gmock-pp.h:86
#define GMOCK_PP_IDENTITY(_1)
Definition: gmock-pp.h:17

Definition at line 254 of file gmock-function-mocker.h.

#define GMOCK_INTERNAL_GET_TYPE (   _i,
  _,
  _elem 
)
Value:
(_elem)
#define GMOCK_PP_IS_BEGIN_PARENS(...)
Definition: gmock-pp.h:115
#define GMOCK_PP_COMMA_IF(_i)
Definition: gmock-pp.h:147
#define GMOCK_PP_REMOVE_PARENS(...)
Definition: gmock-pp.h:125
#define GMOCK_PP_IF(_Cond, _Then, _Else)
Definition: gmock-pp.h:86
#define GMOCK_PP_IDENTITY(_1)
Definition: gmock-pp.h:17

Definition at line 260 of file gmock-function-mocker.h.

#define GMOCK_INTERNAL_PARAMETER (   _i,
  _Signature,
 
)
Value:
gmock_a##_i
#define GMOCK_PP_COMMA_IF(_i)
Definition: gmock-pp.h:147
#define GMOCK_PP_REMOVE_PARENS(...)
Definition: gmock-pp.h:125
#define GMOCK_INTERNAL_ARG_O(_i,...)

Definition at line 266 of file gmock-function-mocker.h.

#define GMOCK_INTERNAL_FORWARD_ARG (   _i,
  _Signature,
 
)
Value:
::std::forward<GMOCK_INTERNAL_ARG_O( \
_i, GMOCK_PP_REMOVE_PARENS(_Signature))>(gmock_a##_i)
#define GMOCK_PP_COMMA_IF(_i)
Definition: gmock-pp.h:147
#define GMOCK_PP_REMOVE_PARENS(...)
Definition: gmock-pp.h:125
#define GMOCK_INTERNAL_ARG_O(_i,...)

Definition at line 271 of file gmock-function-mocker.h.

#define GMOCK_INTERNAL_MATCHER_PARAMETER (   _i,
  _Signature,
 
)
Value:
gmock_a##_i
#define GMOCK_PP_COMMA_IF(_i)
Definition: gmock-pp.h:147
#define GMOCK_INTERNAL_MATCHER_O(_i,...)
#define GMOCK_PP_REMOVE_PARENS(...)
Definition: gmock-pp.h:125

Definition at line 276 of file gmock-function-mocker.h.

#define GMOCK_INTERNAL_MATCHER_ARGUMENT (   _i,
  _1,
  _2 
)
Value:
gmock_a##_i
#define GMOCK_PP_COMMA_IF(_i)
Definition: gmock-pp.h:147

Definition at line 281 of file gmock-function-mocker.h.

#define GMOCK_INTERNAL_A_MATCHER_ARGUMENT (   _i,
  _Signature,
 
)
Value:
::testing::A<GMOCK_INTERNAL_ARG_O(_i, GMOCK_PP_REMOVE_PARENS(_Signature))>()
#define GMOCK_PP_COMMA_IF(_i)
Definition: gmock-pp.h:147

Definition at line 285 of file gmock-function-mocker.h.

#define GMOCK_INTERNAL_ARG_O (   _i,
  ... 
)    typename ::testing::internal::Function<__VA_ARGS__>::template Arg<_i>::type

Definition at line 289 of file gmock-function-mocker.h.

#define GMOCK_INTERNAL_MATCHER_O (   _i,
  ... 
)
Value:
const ::testing::Matcher<typename ::testing::internal::Function< \
__VA_ARGS__>::template Arg<_i>::type>&

Definition at line 292 of file gmock-function-mocker.h.

#define MOCK_METHOD0 (   m,
  ... 
)    GMOCK_INTERNAL_MOCK_METHODN(, , m, 0, __VA_ARGS__)

Definition at line 296 of file gmock-function-mocker.h.

#define MOCK_METHOD1 (   m,
  ... 
)    GMOCK_INTERNAL_MOCK_METHODN(, , m, 1, __VA_ARGS__)

Definition at line 297 of file gmock-function-mocker.h.

#define MOCK_METHOD2 (   m,
  ... 
)    GMOCK_INTERNAL_MOCK_METHODN(, , m, 2, __VA_ARGS__)

Definition at line 298 of file gmock-function-mocker.h.

#define MOCK_METHOD3 (   m,
  ... 
)    GMOCK_INTERNAL_MOCK_METHODN(, , m, 3, __VA_ARGS__)

Definition at line 299 of file gmock-function-mocker.h.

#define MOCK_METHOD4 (   m,
  ... 
)    GMOCK_INTERNAL_MOCK_METHODN(, , m, 4, __VA_ARGS__)

Definition at line 300 of file gmock-function-mocker.h.

#define MOCK_METHOD5 (   m,
  ... 
)    GMOCK_INTERNAL_MOCK_METHODN(, , m, 5, __VA_ARGS__)

Definition at line 301 of file gmock-function-mocker.h.

#define MOCK_METHOD6 (   m,
  ... 
)    GMOCK_INTERNAL_MOCK_METHODN(, , m, 6, __VA_ARGS__)

Definition at line 302 of file gmock-function-mocker.h.

#define MOCK_METHOD7 (   m,
  ... 
)    GMOCK_INTERNAL_MOCK_METHODN(, , m, 7, __VA_ARGS__)

Definition at line 303 of file gmock-function-mocker.h.

#define MOCK_METHOD8 (   m,
  ... 
)    GMOCK_INTERNAL_MOCK_METHODN(, , m, 8, __VA_ARGS__)

Definition at line 304 of file gmock-function-mocker.h.

#define MOCK_METHOD9 (   m,
  ... 
)    GMOCK_INTERNAL_MOCK_METHODN(, , m, 9, __VA_ARGS__)

Definition at line 305 of file gmock-function-mocker.h.

#define MOCK_METHOD10 (   m,
  ... 
)    GMOCK_INTERNAL_MOCK_METHODN(, , m, 10, __VA_ARGS__)

Definition at line 306 of file gmock-function-mocker.h.

#define MOCK_CONST_METHOD0 (   m,
  ... 
)    GMOCK_INTERNAL_MOCK_METHODN(const, , m, 0, __VA_ARGS__)

Definition at line 309 of file gmock-function-mocker.h.

#define MOCK_CONST_METHOD1 (   m,
  ... 
)    GMOCK_INTERNAL_MOCK_METHODN(const, , m, 1, __VA_ARGS__)

Definition at line 311 of file gmock-function-mocker.h.

#define MOCK_CONST_METHOD2 (   m,
  ... 
)    GMOCK_INTERNAL_MOCK_METHODN(const, , m, 2, __VA_ARGS__)

Definition at line 313 of file gmock-function-mocker.h.

#define MOCK_CONST_METHOD3 (   m,
  ... 
)    GMOCK_INTERNAL_MOCK_METHODN(const, , m, 3, __VA_ARGS__)

Definition at line 315 of file gmock-function-mocker.h.

#define MOCK_CONST_METHOD4 (   m,
  ... 
)    GMOCK_INTERNAL_MOCK_METHODN(const, , m, 4, __VA_ARGS__)

Definition at line 317 of file gmock-function-mocker.h.

#define MOCK_CONST_METHOD5 (   m,
  ... 
)    GMOCK_INTERNAL_MOCK_METHODN(const, , m, 5, __VA_ARGS__)

Definition at line 319 of file gmock-function-mocker.h.

#define MOCK_CONST_METHOD6 (   m,
  ... 
)    GMOCK_INTERNAL_MOCK_METHODN(const, , m, 6, __VA_ARGS__)

Definition at line 321 of file gmock-function-mocker.h.

#define MOCK_CONST_METHOD7 (   m,
  ... 
)    GMOCK_INTERNAL_MOCK_METHODN(const, , m, 7, __VA_ARGS__)

Definition at line 323 of file gmock-function-mocker.h.

#define MOCK_CONST_METHOD8 (   m,
  ... 
)    GMOCK_INTERNAL_MOCK_METHODN(const, , m, 8, __VA_ARGS__)

Definition at line 325 of file gmock-function-mocker.h.

#define MOCK_CONST_METHOD9 (   m,
  ... 
)    GMOCK_INTERNAL_MOCK_METHODN(const, , m, 9, __VA_ARGS__)

Definition at line 327 of file gmock-function-mocker.h.

#define MOCK_CONST_METHOD10 (   m,
  ... 
)    GMOCK_INTERNAL_MOCK_METHODN(const, , m, 10, __VA_ARGS__)

Definition at line 329 of file gmock-function-mocker.h.

#define MOCK_METHOD0_T (   m,
  ... 
)    MOCK_METHOD0(m, __VA_ARGS__)

Definition at line 332 of file gmock-function-mocker.h.

#define MOCK_METHOD1_T (   m,
  ... 
)    MOCK_METHOD1(m, __VA_ARGS__)

Definition at line 333 of file gmock-function-mocker.h.

#define MOCK_METHOD2_T (   m,
  ... 
)    MOCK_METHOD2(m, __VA_ARGS__)

Definition at line 334 of file gmock-function-mocker.h.

#define MOCK_METHOD3_T (   m,
  ... 
)    MOCK_METHOD3(m, __VA_ARGS__)

Definition at line 335 of file gmock-function-mocker.h.

#define MOCK_METHOD4_T (   m,
  ... 
)    MOCK_METHOD4(m, __VA_ARGS__)

Definition at line 336 of file gmock-function-mocker.h.

#define MOCK_METHOD5_T (   m,
  ... 
)    MOCK_METHOD5(m, __VA_ARGS__)

Definition at line 337 of file gmock-function-mocker.h.

#define MOCK_METHOD6_T (   m,
  ... 
)    MOCK_METHOD6(m, __VA_ARGS__)

Definition at line 338 of file gmock-function-mocker.h.

#define MOCK_METHOD7_T (   m,
  ... 
)    MOCK_METHOD7(m, __VA_ARGS__)

Definition at line 339 of file gmock-function-mocker.h.

#define MOCK_METHOD8_T (   m,
  ... 
)    MOCK_METHOD8(m, __VA_ARGS__)

Definition at line 340 of file gmock-function-mocker.h.

#define MOCK_METHOD9_T (   m,
  ... 
)    MOCK_METHOD9(m, __VA_ARGS__)

Definition at line 341 of file gmock-function-mocker.h.

#define MOCK_METHOD10_T (   m,
  ... 
)    MOCK_METHOD10(m, __VA_ARGS__)

Definition at line 342 of file gmock-function-mocker.h.

#define MOCK_CONST_METHOD0_T (   m,
  ... 
)    MOCK_CONST_METHOD0(m, __VA_ARGS__)

Definition at line 344 of file gmock-function-mocker.h.

#define MOCK_CONST_METHOD1_T (   m,
  ... 
)    MOCK_CONST_METHOD1(m, __VA_ARGS__)

Definition at line 345 of file gmock-function-mocker.h.

#define MOCK_CONST_METHOD2_T (   m,
  ... 
)    MOCK_CONST_METHOD2(m, __VA_ARGS__)

Definition at line 346 of file gmock-function-mocker.h.

#define MOCK_CONST_METHOD3_T (   m,
  ... 
)    MOCK_CONST_METHOD3(m, __VA_ARGS__)

Definition at line 347 of file gmock-function-mocker.h.

#define MOCK_CONST_METHOD4_T (   m,
  ... 
)    MOCK_CONST_METHOD4(m, __VA_ARGS__)

Definition at line 348 of file gmock-function-mocker.h.

#define MOCK_CONST_METHOD5_T (   m,
  ... 
)    MOCK_CONST_METHOD5(m, __VA_ARGS__)

Definition at line 349 of file gmock-function-mocker.h.

#define MOCK_CONST_METHOD6_T (   m,
  ... 
)    MOCK_CONST_METHOD6(m, __VA_ARGS__)

Definition at line 350 of file gmock-function-mocker.h.

#define MOCK_CONST_METHOD7_T (   m,
  ... 
)    MOCK_CONST_METHOD7(m, __VA_ARGS__)

Definition at line 351 of file gmock-function-mocker.h.

#define MOCK_CONST_METHOD8_T (   m,
  ... 
)    MOCK_CONST_METHOD8(m, __VA_ARGS__)

Definition at line 352 of file gmock-function-mocker.h.

#define MOCK_CONST_METHOD9_T (   m,
  ... 
)    MOCK_CONST_METHOD9(m, __VA_ARGS__)

Definition at line 353 of file gmock-function-mocker.h.

#define MOCK_CONST_METHOD10_T (   m,
  ... 
)    MOCK_CONST_METHOD10(m, __VA_ARGS__)

Definition at line 354 of file gmock-function-mocker.h.

#define MOCK_METHOD0_WITH_CALLTYPE (   ct,
  m,
  ... 
)    GMOCK_INTERNAL_MOCK_METHODN(, ct, m, 0, __VA_ARGS__)

Definition at line 356 of file gmock-function-mocker.h.

#define MOCK_METHOD1_WITH_CALLTYPE (   ct,
  m,
  ... 
)    GMOCK_INTERNAL_MOCK_METHODN(, ct, m, 1, __VA_ARGS__)

Definition at line 358 of file gmock-function-mocker.h.

#define MOCK_METHOD2_WITH_CALLTYPE (   ct,
  m,
  ... 
)    GMOCK_INTERNAL_MOCK_METHODN(, ct, m, 2, __VA_ARGS__)

Definition at line 360 of file gmock-function-mocker.h.

#define MOCK_METHOD3_WITH_CALLTYPE (   ct,
  m,
  ... 
)    GMOCK_INTERNAL_MOCK_METHODN(, ct, m, 3, __VA_ARGS__)

Definition at line 362 of file gmock-function-mocker.h.

#define MOCK_METHOD4_WITH_CALLTYPE (   ct,
  m,
  ... 
)    GMOCK_INTERNAL_MOCK_METHODN(, ct, m, 4, __VA_ARGS__)

Definition at line 364 of file gmock-function-mocker.h.

#define MOCK_METHOD5_WITH_CALLTYPE (   ct,
  m,
  ... 
)    GMOCK_INTERNAL_MOCK_METHODN(, ct, m, 5, __VA_ARGS__)

Definition at line 366 of file gmock-function-mocker.h.

#define MOCK_METHOD6_WITH_CALLTYPE (   ct,
  m,
  ... 
)    GMOCK_INTERNAL_MOCK_METHODN(, ct, m, 6, __VA_ARGS__)

Definition at line 368 of file gmock-function-mocker.h.

#define MOCK_METHOD7_WITH_CALLTYPE (   ct,
  m,
  ... 
)    GMOCK_INTERNAL_MOCK_METHODN(, ct, m, 7, __VA_ARGS__)

Definition at line 370 of file gmock-function-mocker.h.

#define MOCK_METHOD8_WITH_CALLTYPE (   ct,
  m,
  ... 
)    GMOCK_INTERNAL_MOCK_METHODN(, ct, m, 8, __VA_ARGS__)

Definition at line 372 of file gmock-function-mocker.h.

#define MOCK_METHOD9_WITH_CALLTYPE (   ct,
  m,
  ... 
)    GMOCK_INTERNAL_MOCK_METHODN(, ct, m, 9, __VA_ARGS__)

Definition at line 374 of file gmock-function-mocker.h.

#define MOCK_METHOD10_WITH_CALLTYPE (   ct,
  m,
  ... 
)    GMOCK_INTERNAL_MOCK_METHODN(, ct, m, 10, __VA_ARGS__)

Definition at line 376 of file gmock-function-mocker.h.

#define MOCK_CONST_METHOD0_WITH_CALLTYPE (   ct,
  m,
  ... 
)    GMOCK_INTERNAL_MOCK_METHODN(const, ct, m, 0, __VA_ARGS__)

Definition at line 379 of file gmock-function-mocker.h.

#define MOCK_CONST_METHOD1_WITH_CALLTYPE (   ct,
  m,
  ... 
)    GMOCK_INTERNAL_MOCK_METHODN(const, ct, m, 1, __VA_ARGS__)

Definition at line 381 of file gmock-function-mocker.h.

#define MOCK_CONST_METHOD2_WITH_CALLTYPE (   ct,
  m,
  ... 
)    GMOCK_INTERNAL_MOCK_METHODN(const, ct, m, 2, __VA_ARGS__)

Definition at line 383 of file gmock-function-mocker.h.

#define MOCK_CONST_METHOD3_WITH_CALLTYPE (   ct,
  m,
  ... 
)    GMOCK_INTERNAL_MOCK_METHODN(const, ct, m, 3, __VA_ARGS__)

Definition at line 385 of file gmock-function-mocker.h.

#define MOCK_CONST_METHOD4_WITH_CALLTYPE (   ct,
  m,
  ... 
)    GMOCK_INTERNAL_MOCK_METHODN(const, ct, m, 4, __VA_ARGS__)

Definition at line 387 of file gmock-function-mocker.h.

#define MOCK_CONST_METHOD5_WITH_CALLTYPE (   ct,
  m,
  ... 
)    GMOCK_INTERNAL_MOCK_METHODN(const, ct, m, 5, __VA_ARGS__)

Definition at line 389 of file gmock-function-mocker.h.

#define MOCK_CONST_METHOD6_WITH_CALLTYPE (   ct,
  m,
  ... 
)    GMOCK_INTERNAL_MOCK_METHODN(const, ct, m, 6, __VA_ARGS__)

Definition at line 391 of file gmock-function-mocker.h.

#define MOCK_CONST_METHOD7_WITH_CALLTYPE (   ct,
  m,
  ... 
)    GMOCK_INTERNAL_MOCK_METHODN(const, ct, m, 7, __VA_ARGS__)

Definition at line 393 of file gmock-function-mocker.h.

#define MOCK_CONST_METHOD8_WITH_CALLTYPE (   ct,
  m,
  ... 
)    GMOCK_INTERNAL_MOCK_METHODN(const, ct, m, 8, __VA_ARGS__)

Definition at line 395 of file gmock-function-mocker.h.

#define MOCK_CONST_METHOD9_WITH_CALLTYPE (   ct,
  m,
  ... 
)    GMOCK_INTERNAL_MOCK_METHODN(const, ct, m, 9, __VA_ARGS__)

Definition at line 397 of file gmock-function-mocker.h.

#define MOCK_CONST_METHOD10_WITH_CALLTYPE (   ct,
  m,
  ... 
)    GMOCK_INTERNAL_MOCK_METHODN(const, ct, m, 10, __VA_ARGS__)

Definition at line 399 of file gmock-function-mocker.h.

#define MOCK_METHOD0_T_WITH_CALLTYPE (   ct,
  m,
  ... 
)    MOCK_METHOD0_WITH_CALLTYPE(ct, m, __VA_ARGS__)

Definition at line 402 of file gmock-function-mocker.h.

#define MOCK_METHOD1_T_WITH_CALLTYPE (   ct,
  m,
  ... 
)    MOCK_METHOD1_WITH_CALLTYPE(ct, m, __VA_ARGS__)

Definition at line 404 of file gmock-function-mocker.h.

#define MOCK_METHOD2_T_WITH_CALLTYPE (   ct,
  m,
  ... 
)    MOCK_METHOD2_WITH_CALLTYPE(ct, m, __VA_ARGS__)

Definition at line 406 of file gmock-function-mocker.h.

#define MOCK_METHOD3_T_WITH_CALLTYPE (   ct,
  m,
  ... 
)    MOCK_METHOD3_WITH_CALLTYPE(ct, m, __VA_ARGS__)

Definition at line 408 of file gmock-function-mocker.h.

#define MOCK_METHOD4_T_WITH_CALLTYPE (   ct,
  m,
  ... 
)    MOCK_METHOD4_WITH_CALLTYPE(ct, m, __VA_ARGS__)

Definition at line 410 of file gmock-function-mocker.h.

#define MOCK_METHOD5_T_WITH_CALLTYPE (   ct,
  m,
  ... 
)    MOCK_METHOD5_WITH_CALLTYPE(ct, m, __VA_ARGS__)

Definition at line 412 of file gmock-function-mocker.h.

#define MOCK_METHOD6_T_WITH_CALLTYPE (   ct,
  m,
  ... 
)    MOCK_METHOD6_WITH_CALLTYPE(ct, m, __VA_ARGS__)

Definition at line 414 of file gmock-function-mocker.h.

#define MOCK_METHOD7_T_WITH_CALLTYPE (   ct,
  m,
  ... 
)    MOCK_METHOD7_WITH_CALLTYPE(ct, m, __VA_ARGS__)

Definition at line 416 of file gmock-function-mocker.h.

#define MOCK_METHOD8_T_WITH_CALLTYPE (   ct,
  m,
  ... 
)    MOCK_METHOD8_WITH_CALLTYPE(ct, m, __VA_ARGS__)

Definition at line 418 of file gmock-function-mocker.h.

#define MOCK_METHOD9_T_WITH_CALLTYPE (   ct,
  m,
  ... 
)    MOCK_METHOD9_WITH_CALLTYPE(ct, m, __VA_ARGS__)

Definition at line 420 of file gmock-function-mocker.h.

#define MOCK_METHOD10_T_WITH_CALLTYPE (   ct,
  m,
  ... 
)    MOCK_METHOD10_WITH_CALLTYPE(ct, m, __VA_ARGS__)

Definition at line 422 of file gmock-function-mocker.h.

#define MOCK_CONST_METHOD0_T_WITH_CALLTYPE (   ct,
  m,
  ... 
)    MOCK_CONST_METHOD0_WITH_CALLTYPE(ct, m, __VA_ARGS__)

Definition at line 425 of file gmock-function-mocker.h.

#define MOCK_CONST_METHOD1_T_WITH_CALLTYPE (   ct,
  m,
  ... 
)    MOCK_CONST_METHOD1_WITH_CALLTYPE(ct, m, __VA_ARGS__)

Definition at line 427 of file gmock-function-mocker.h.

#define MOCK_CONST_METHOD2_T_WITH_CALLTYPE (   ct,
  m,
  ... 
)    MOCK_CONST_METHOD2_WITH_CALLTYPE(ct, m, __VA_ARGS__)

Definition at line 429 of file gmock-function-mocker.h.

#define MOCK_CONST_METHOD3_T_WITH_CALLTYPE (   ct,
  m,
  ... 
)    MOCK_CONST_METHOD3_WITH_CALLTYPE(ct, m, __VA_ARGS__)

Definition at line 431 of file gmock-function-mocker.h.

#define MOCK_CONST_METHOD4_T_WITH_CALLTYPE (   ct,
  m,
  ... 
)    MOCK_CONST_METHOD4_WITH_CALLTYPE(ct, m, __VA_ARGS__)

Definition at line 433 of file gmock-function-mocker.h.

#define MOCK_CONST_METHOD5_T_WITH_CALLTYPE (   ct,
  m,
  ... 
)    MOCK_CONST_METHOD5_WITH_CALLTYPE(ct, m, __VA_ARGS__)

Definition at line 435 of file gmock-function-mocker.h.

#define MOCK_CONST_METHOD6_T_WITH_CALLTYPE (   ct,
  m,
  ... 
)    MOCK_CONST_METHOD6_WITH_CALLTYPE(ct, m, __VA_ARGS__)

Definition at line 437 of file gmock-function-mocker.h.

#define MOCK_CONST_METHOD7_T_WITH_CALLTYPE (   ct,
  m,
  ... 
)    MOCK_CONST_METHOD7_WITH_CALLTYPE(ct, m, __VA_ARGS__)

Definition at line 439 of file gmock-function-mocker.h.

#define MOCK_CONST_METHOD8_T_WITH_CALLTYPE (   ct,
  m,
  ... 
)    MOCK_CONST_METHOD8_WITH_CALLTYPE(ct, m, __VA_ARGS__)

Definition at line 441 of file gmock-function-mocker.h.

#define MOCK_CONST_METHOD9_T_WITH_CALLTYPE (   ct,
  m,
  ... 
)    MOCK_CONST_METHOD9_WITH_CALLTYPE(ct, m, __VA_ARGS__)

Definition at line 443 of file gmock-function-mocker.h.

#define MOCK_CONST_METHOD10_T_WITH_CALLTYPE (   ct,
  m,
  ... 
)    MOCK_CONST_METHOD10_WITH_CALLTYPE(ct, m, __VA_ARGS__)

Definition at line 445 of file gmock-function-mocker.h.

#define GMOCK_INTERNAL_MOCK_METHODN (   constness,
  ct,
  Method,
  args_num,
  ... 
)
Value:
args_num, Method, GMOCK_PP_NARG0(constness), 0, 0, , ct, \
#define GMOCK_INTERNAL_ASSERT_VALID_SIGNATURE(_N,...)
#define GMOCK_INTERNAL_MOCK_METHOD_IMPL(_N, _MethodName, _Constness,_Override, _Final, _NoexceptSpec,_CallType, _Signature)
#define Method
#define GMOCK_PP_NARG0(...)
Definition: gmock-pp.h:110

Definition at line 448 of file gmock-function-mocker.h.

#define GMOCK_MOCKER_ (   arity,
  constness,
  Method 
)    GTEST_CONCAT_TOKEN_(gmock##constness##arity##_##Method##_, __LINE__)

Definition at line 455 of file gmock-function-mocker.h.