AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Macros
GmockExtensions.h File Reference
#include <gmock/gmock.h>
Include dependency graph for GmockExtensions.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GMOCK_NOEXCEPT_MOCKER_(arity, constness, Method)   GTEST_CONCAT_TOKEN_(gmock##constness##noexcept##arity##_##Method##_, __LINE__)
 Internal macro for constructing method name. More...
 
#define GMOCK_NOEXCEPT_METHOD0_(tn, constness, ct, Method, ...)
 Internal macro for declaring and defining mock method. More...
 
#define GMOCK_NOEXCEPT_METHOD1_(tn, constness, ct, Method, ...)
 Internal macro for declaring and defining mock method. More...
 
#define GMOCK_NOEXCEPT_METHOD2_(tn, constness, ct, Method, ...)
 Internal macro for declaring and defining mock method. More...
 
#define GMOCK_NOEXCEPT_METHOD3_(tn, constness, ct, Method, ...)
 Internal macro for declaring and defining mock method. More...
 
#define GMOCK_NOEXCEPT_METHOD4_(tn, constness, ct, Method, ...)
 Internal macro for declaring and defining mock method. More...
 
#define GMOCK_NOEXCEPT_METHOD5_(tn, constness, ct, Method, ...)
 Internal macro for declaring and defining mock method. More...
 
#define GMOCK_NOEXCEPT_METHOD6_(tn, constness, ct, Method, ...)
 Internal macro for declaring and defining mock method. More...
 
#define GMOCK_NOEXCEPT_METHOD7_(tn, constness, ct, Method, ...)
 Internal macro for declaring and defining mock method. More...
 
#define GMOCK_NOEXCEPT_METHOD8_(tn, constness, ct, Method, ...)
 Internal macro for declaring and defining mock method. More...
 
#define GMOCK_NOEXCEPT_METHOD9_(tn, constness, ct, Method, ...)
 Internal macro for declaring and defining mock method. More...
 
#define GMOCK_NOEXCEPT_METHOD10_(tn, constness, ct, Method, ...)
 Internal macro for declaring and defining mock method. More...
 
#define MOCK_NOEXCEPT_METHOD0(m, ...)   GMOCK_NOEXCEPT_METHOD0_(, , , m, __VA_ARGS__)
 Macro to mock method with noexcept specifier. More...
 
#define MOCK_NOEXCEPT_METHOD1(m, ...)   GMOCK_NOEXCEPT_METHOD1_(, , , m, __VA_ARGS__)
 Macro to mock method with noexcept specifier. More...
 
#define MOCK_NOEXCEPT_METHOD2(m, ...)   GMOCK_NOEXCEPT_METHOD2_(, , , m, __VA_ARGS__)
 Macro to mock method with noexcept specifier. More...
 
#define MOCK_NOEXCEPT_METHOD3(m, ...)   GMOCK_NOEXCEPT_METHOD3_(, , , m, __VA_ARGS__)
 Macro to mock method with noexcept specifier. More...
 
#define MOCK_NOEXCEPT_METHOD4(m, ...)   GMOCK_NOEXCEPT_METHOD4_(, , , m, __VA_ARGS__)
 Macro to mock method with noexcept specifier. More...
 
#define MOCK_NOEXCEPT_METHOD5(m, ...)   GMOCK_NOEXCEPT_METHOD5_(, , , m, __VA_ARGS__)
 Macro to mock method with noexcept specifier. More...
 
#define MOCK_NOEXCEPT_METHOD6(m, ...)   GMOCK_NOEXCEPT_METHOD6_(, , , m, __VA_ARGS__)
 Macro to mock method with noexcept specifier. More...
 
#define MOCK_NOEXCEPT_METHOD7(m, ...)   GMOCK_NOEXCEPT_METHOD7_(, , , m, __VA_ARGS__)
 Macro to mock method with noexcept specifier. More...
 
#define MOCK_NOEXCEPT_METHOD8(m, ...)   GMOCK_NOEXCEPT_METHOD8_(, , , m, __VA_ARGS__)
 Macro to mock method with noexcept specifier. More...
 
#define MOCK_NOEXCEPT_METHOD9(m, ...)   GMOCK_NOEXCEPT_METHOD9_(, , , m, __VA_ARGS__)
 Macro to mock method with noexcept specifier. More...
 
#define MOCK_NOEXCEPT_METHOD10(m, ...)   GMOCK_NOEXCEPT_METHOD10_(, , , m, __VA_ARGS__)
 Macro to mock method with noexcept specifier. More...
 
#define MOCK_CONST_NOEXCEPT_METHOD0(m, ...)   GMOCK_NOEXCEPT_METHOD0_(, const, , m, __VA_ARGS__)
 Macro to mock method with const noexcept specifier. More...
 
#define MOCK_CONST_NOEXCEPT_METHOD1(m, ...)   GMOCK_NOEXCEPT_METHOD1_(, const, , m, __VA_ARGS__)
 Macro to mock method with const noexcept specifier. More...
 
#define MOCK_CONST_NOEXCEPT_METHOD2(m, ...)   GMOCK_NOEXCEPT_METHOD2_(, const, , m, __VA_ARGS__)
 Macro to mock method with const noexcept specifier. More...
 
#define MOCK_CONST_NOEXCEPT_METHOD3(m, ...)   GMOCK_NOEXCEPT_METHOD3_(, const, , m, __VA_ARGS__)
 Macro to mock method with const noexcept specifier. More...
 
#define MOCK_CONST_NOEXCEPT_METHOD4(m, ...)   GMOCK_NOEXCEPT_METHOD4_(, const, , m, __VA_ARGS__)
 Macro to mock method with const noexcept specifier. More...
 
#define MOCK_CONST_NOEXCEPT_METHOD5(m, ...)   GMOCK_NOEXCEPT_METHOD5_(, const, , m, __VA_ARGS__)
 Macro to mock method with const noexcept specifier. More...
 
#define MOCK_CONST_NOEXCEPT_METHOD6(m, ...)   GMOCK_NOEXCEPT_METHOD6_(, const, , m, __VA_ARGS__)
 Macro to mock method with const noexcept specifier. More...
 
#define MOCK_CONST_NOEXCEPT_METHOD7(m, ...)   GMOCK_NOEXCEPT_METHOD7_(, const, , m, __VA_ARGS__)
 Macro to mock method with const noexcept specifier. More...
 
#define MOCK_CONST_NOEXCEPT_METHOD8(m, ...)   GMOCK_NOEXCEPT_METHOD8_(, const, , m, __VA_ARGS__)
 Macro to mock method with const noexcept specifier. More...
 
#define MOCK_CONST_NOEXCEPT_METHOD9(m, ...)   GMOCK_NOEXCEPT_METHOD9_(, const, , m, __VA_ARGS__)
 Macro to mock method with const noexcept specifier. More...
 
#define MOCK_CONST_NOEXCEPT_METHOD10(m, ...)   GMOCK_NOEXCEPT_METHOD10_(, const, , m, __VA_ARGS__)
 Macro to mock method with const noexcept specifier. More...
 

Macro Definition Documentation

◆ GMOCK_NOEXCEPT_METHOD0_

#define GMOCK_NOEXCEPT_METHOD0_ (   tn,
  constness,
  ct,
  Method,
  ... 
)
Value:
GMOCK_RESULT_(tn, __VA_ARGS__) ct Method() constness noexcept { \
GTEST_COMPILE_ASSERT_( \
(::testing::tuple_size<tn ::testing::internal::Function<__VA_ARGS__>::ArgumentTuple>::value == 0), \
this_method_does_not_take_0_arguments); \
GMOCK_NOEXCEPT_MOCKER_(0, constness, Method).SetOwnerAndName(this, #Method); \
return GMOCK_NOEXCEPT_MOCKER_(0, constness, Method).Invoke(); \
} \
::testing::MockSpec<__VA_ARGS__>& gmock_##Method() constness noexcept { \
GMOCK_NOEXCEPT_MOCKER_(0, constness, Method).RegisterOwner(this); \
return GMOCK_NOEXCEPT_MOCKER_(0, constness, Method).With(); \
} \
mutable ::testing::FunctionMocker<__VA_ARGS__> GMOCK_NOEXCEPT_MOCKER_(0, constness, Method)
Definition: gmock-spec-builders.h:1246
#define GMOCK_NOEXCEPT_MOCKER_(arity, constness, Method)
Internal macro for constructing method name.
Definition: GmockExtensions.h:32
#define Method
Definition: gmock-spec-builders_test.cc:184
#define GMOCK_RESULT_(tn,...)
Definition: gmock-generated-function-mockers.h:337

Internal macro for declaring and defining mock method.

Macro declares and defines mock method with noexcept specifier. Otherwise it works similarly to macros GMOCK_METHOD0_ ... GMOCK_METHOD10_.

Parameters
tnNumber of arguments.
constnessOptional const specifier.
MethodMethod name.

◆ GMOCK_NOEXCEPT_METHOD10_

#define GMOCK_NOEXCEPT_METHOD10_ (   tn,
  constness,
  ct,
  Method,
  ... 
)

Internal macro for declaring and defining mock method.

Macro declares and defines mock method with noexcept specifier. Otherwise it works similarly to macros GMOCK_METHOD0_ ... GMOCK_METHOD10_.

Parameters
tnNumber of arguments.
constnessOptional const specifier.
MethodMethod name.

◆ GMOCK_NOEXCEPT_METHOD1_

#define GMOCK_NOEXCEPT_METHOD1_ (   tn,
  constness,
  ct,
  Method,
  ... 
)
Value:
GMOCK_RESULT_(tn, __VA_ARGS__) ct Method(GMOCK_ARG_(tn, 1, __VA_ARGS__) gmock_a1) constness noexcept { \
GTEST_COMPILE_ASSERT_( \
(::testing::tuple_size<tn ::testing::internal::Function<__VA_ARGS__>::ArgumentTuple>::value == 1), \
this_method_does_not_take_1_argument); \
GMOCK_NOEXCEPT_MOCKER_(1, constness, Method).SetOwnerAndName(this, #Method); \
return GMOCK_NOEXCEPT_MOCKER_(1, constness, Method).Invoke(gmock_a1); \
} \
::testing::MockSpec<__VA_ARGS__>& gmock_##Method(GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1) constness noexcept { \
GMOCK_NOEXCEPT_MOCKER_(1, constness, Method).RegisterOwner(this); \
return GMOCK_NOEXCEPT_MOCKER_(1, constness, Method).With(gmock_a1); \
} \
mutable ::testing::FunctionMocker<__VA_ARGS__> GMOCK_NOEXCEPT_MOCKER_(1, constness, Method)
Definition: gmock-spec-builders.h:1246
#define GMOCK_ARG_(tn, N,...)
Definition: gmock-generated-function-mockers.h:342
#define GMOCK_NOEXCEPT_MOCKER_(arity, constness, Method)
Internal macro for constructing method name.
Definition: GmockExtensions.h:32
#define Method
Definition: gmock-spec-builders_test.cc:184
#define GMOCK_RESULT_(tn,...)
Definition: gmock-generated-function-mockers.h:337
#define GMOCK_MATCHER_(tn, N,...)
Definition: gmock-generated-function-mockers.h:347

Internal macro for declaring and defining mock method.

Macro declares and defines mock method with noexcept specifier. Otherwise it works similarly to macros GMOCK_METHOD0_ ... GMOCK_METHOD10_.

Parameters
tnNumber of arguments.
constnessOptional const specifier.
MethodMethod name.

◆ GMOCK_NOEXCEPT_METHOD2_

#define GMOCK_NOEXCEPT_METHOD2_ (   tn,
  constness,
  ct,
  Method,
  ... 
)
Value:
GMOCK_RESULT_(tn, __VA_ARGS__) \
ct Method(GMOCK_ARG_(tn, 1, __VA_ARGS__) gmock_a1, GMOCK_ARG_(tn, 2, __VA_ARGS__) gmock_a2) constness noexcept { \
GTEST_COMPILE_ASSERT_( \
(::testing::tuple_size<tn ::testing::internal::Function<__VA_ARGS__>::ArgumentTuple>::value == 2), \
this_method_does_not_take_2_arguments); \
GMOCK_NOEXCEPT_MOCKER_(2, constness, Method).SetOwnerAndName(this, #Method); \
return GMOCK_NOEXCEPT_MOCKER_(2, constness, Method).Invoke(gmock_a1, gmock_a2); \
} \
GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1, GMOCK_MATCHER_(tn, 2, __VA_ARGS__) gmock_a2) constness noexcept { \
GMOCK_NOEXCEPT_MOCKER_(2, constness, Method).RegisterOwner(this); \
return GMOCK_NOEXCEPT_MOCKER_(2, constness, Method).With(gmock_a1, gmock_a2); \
} \
mutable ::testing::FunctionMocker<__VA_ARGS__> GMOCK_NOEXCEPT_MOCKER_(2, constness, Method)
Definition: gmock-spec-builders.h:1246
#define GMOCK_ARG_(tn, N,...)
Definition: gmock-generated-function-mockers.h:342
#define GMOCK_NOEXCEPT_MOCKER_(arity, constness, Method)
Internal macro for constructing method name.
Definition: GmockExtensions.h:32
#define Method
Definition: gmock-spec-builders_test.cc:184
#define GMOCK_RESULT_(tn,...)
Definition: gmock-generated-function-mockers.h:337
#define GMOCK_MATCHER_(tn, N,...)
Definition: gmock-generated-function-mockers.h:347

Internal macro for declaring and defining mock method.

Macro declares and defines mock method with noexcept specifier. Otherwise it works similarly to macros GMOCK_METHOD0_ ... GMOCK_METHOD10_.

Parameters
tnNumber of arguments.
constnessOptional const specifier.
MethodMethod name.

◆ GMOCK_NOEXCEPT_METHOD3_

#define GMOCK_NOEXCEPT_METHOD3_ (   tn,
  constness,
  ct,
  Method,
  ... 
)
Value:
GMOCK_RESULT_(tn, __VA_ARGS__) \
ct Method( \
GMOCK_ARG_(tn, 1, __VA_ARGS__) gmock_a1, \
GMOCK_ARG_(tn, 2, __VA_ARGS__) gmock_a2, \
GMOCK_ARG_(tn, 3, __VA_ARGS__) gmock_a3) constness noexcept { \
GTEST_COMPILE_ASSERT_( \
(::testing::tuple_size<tn ::testing::internal::Function<__VA_ARGS__>::ArgumentTuple>::value == 3), \
this_method_does_not_take_3_arguments); \
GMOCK_NOEXCEPT_MOCKER_(3, constness, Method).SetOwnerAndName(this, #Method); \
return GMOCK_NOEXCEPT_MOCKER_(3, constness, Method).Invoke(gmock_a1, gmock_a2, gmock_a3); \
} \
GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1, \
GMOCK_MATCHER_(tn, 2, __VA_ARGS__) gmock_a2, \
GMOCK_MATCHER_(tn, 3, __VA_ARGS__) gmock_a3) constness noexcept { \
GMOCK_NOEXCEPT_MOCKER_(3, constness, Method).RegisterOwner(this); \
return GMOCK_NOEXCEPT_MOCKER_(3, constness, Method).With(gmock_a1, gmock_a2, gmock_a3); \
} \
mutable ::testing::FunctionMocker<__VA_ARGS__> GMOCK_NOEXCEPT_MOCKER_(3, constness, Method)
Definition: gmock-spec-builders.h:1246
#define GMOCK_ARG_(tn, N,...)
Definition: gmock-generated-function-mockers.h:342
#define GMOCK_NOEXCEPT_MOCKER_(arity, constness, Method)
Internal macro for constructing method name.
Definition: GmockExtensions.h:32
#define Method
Definition: gmock-spec-builders_test.cc:184
#define GMOCK_RESULT_(tn,...)
Definition: gmock-generated-function-mockers.h:337
#define GMOCK_MATCHER_(tn, N,...)
Definition: gmock-generated-function-mockers.h:347

Internal macro for declaring and defining mock method.

Macro declares and defines mock method with noexcept specifier. Otherwise it works similarly to macros GMOCK_METHOD0_ ... GMOCK_METHOD10_.

Parameters
tnNumber of arguments.
constnessOptional const specifier.
MethodMethod name.

◆ GMOCK_NOEXCEPT_METHOD4_

#define GMOCK_NOEXCEPT_METHOD4_ (   tn,
  constness,
  ct,
  Method,
  ... 
)
Value:
GMOCK_RESULT_(tn, __VA_ARGS__) \
ct Method( \
GMOCK_ARG_(tn, 1, __VA_ARGS__) gmock_a1, \
GMOCK_ARG_(tn, 2, __VA_ARGS__) gmock_a2, \
GMOCK_ARG_(tn, 3, __VA_ARGS__) gmock_a3, \
GMOCK_ARG_(tn, 4, __VA_ARGS__) gmock_a4) constness noexcept { \
GTEST_COMPILE_ASSERT_( \
(::testing::tuple_size<tn ::testing::internal::Function<__VA_ARGS__>::ArgumentTuple>::value == 4), \
this_method_does_not_take_4_arguments); \
GMOCK_NOEXCEPT_MOCKER_(4, constness, Method).SetOwnerAndName(this, #Method); \
return GMOCK_NOEXCEPT_MOCKER_(4, constness, Method).Invoke(gmock_a1, gmock_a2, gmock_a3, gmock_a4); \
} \
GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1, \
GMOCK_MATCHER_(tn, 2, __VA_ARGS__) gmock_a2, \
GMOCK_MATCHER_(tn, 3, __VA_ARGS__) gmock_a3, \
GMOCK_MATCHER_(tn, 4, __VA_ARGS__) gmock_a4) constness noexcept { \
GMOCK_NOEXCEPT_MOCKER_(4, constness, Method).RegisterOwner(this); \
return GMOCK_NOEXCEPT_MOCKER_(4, constness, Method).With(gmock_a1, gmock_a2, gmock_a3, gmock_a4); \
} \
mutable ::testing::FunctionMocker<__VA_ARGS__> GMOCK_NOEXCEPT_MOCKER_(4, constness, Method)
Definition: gmock-spec-builders.h:1246
#define GMOCK_ARG_(tn, N,...)
Definition: gmock-generated-function-mockers.h:342
#define GMOCK_NOEXCEPT_MOCKER_(arity, constness, Method)
Internal macro for constructing method name.
Definition: GmockExtensions.h:32
#define Method
Definition: gmock-spec-builders_test.cc:184
#define GMOCK_RESULT_(tn,...)
Definition: gmock-generated-function-mockers.h:337
#define GMOCK_MATCHER_(tn, N,...)
Definition: gmock-generated-function-mockers.h:347

Internal macro for declaring and defining mock method.

Macro declares and defines mock method with noexcept specifier. Otherwise it works similarly to macros GMOCK_METHOD0_ ... GMOCK_METHOD10_.

Parameters
tnNumber of arguments.
constnessOptional const specifier.
MethodMethod name.

◆ GMOCK_NOEXCEPT_METHOD5_

#define GMOCK_NOEXCEPT_METHOD5_ (   tn,
  constness,
  ct,
  Method,
  ... 
)
Value:
GMOCK_RESULT_(tn, __VA_ARGS__) \
ct Method( \
GMOCK_ARG_(tn, 1, __VA_ARGS__) gmock_a1, \
GMOCK_ARG_(tn, 2, __VA_ARGS__) gmock_a2, \
GMOCK_ARG_(tn, 3, __VA_ARGS__) gmock_a3, \
GMOCK_ARG_(tn, 4, __VA_ARGS__) gmock_a4, \
GMOCK_ARG_(tn, 5, __VA_ARGS__) gmock_a5) constness noexcept { \
GTEST_COMPILE_ASSERT_( \
(::testing::tuple_size<tn ::testing::internal::Function<__VA_ARGS__>::ArgumentTuple>::value == 5), \
this_method_does_not_take_5_arguments); \
GMOCK_NOEXCEPT_MOCKER_(5, constness, Method).SetOwnerAndName(this, #Method); \
return GMOCK_NOEXCEPT_MOCKER_(5, constness, Method).Invoke(gmock_a1, gmock_a2, gmock_a3, gmock_a4, gmock_a5); \
} \
GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1, \
GMOCK_MATCHER_(tn, 2, __VA_ARGS__) gmock_a2, \
GMOCK_MATCHER_(tn, 3, __VA_ARGS__) gmock_a3, \
GMOCK_MATCHER_(tn, 4, __VA_ARGS__) gmock_a4, \
GMOCK_MATCHER_(tn, 5, __VA_ARGS__) gmock_a5) constness noexcept { \
GMOCK_NOEXCEPT_MOCKER_(5, constness, Method).RegisterOwner(this); \
return GMOCK_NOEXCEPT_MOCKER_(5, constness, Method).With(gmock_a1, gmock_a2, gmock_a3, gmock_a4, gmock_a5); \
} \
mutable ::testing::FunctionMocker<__VA_ARGS__> GMOCK_NOEXCEPT_MOCKER_(5, constness, Method)
Definition: gmock-spec-builders.h:1246
#define GMOCK_ARG_(tn, N,...)
Definition: gmock-generated-function-mockers.h:342
#define GMOCK_NOEXCEPT_MOCKER_(arity, constness, Method)
Internal macro for constructing method name.
Definition: GmockExtensions.h:32
#define Method
Definition: gmock-spec-builders_test.cc:184
#define GMOCK_RESULT_(tn,...)
Definition: gmock-generated-function-mockers.h:337
#define GMOCK_MATCHER_(tn, N,...)
Definition: gmock-generated-function-mockers.h:347

Internal macro for declaring and defining mock method.

Macro declares and defines mock method with noexcept specifier. Otherwise it works similarly to macros GMOCK_METHOD0_ ... GMOCK_METHOD10_.

Parameters
tnNumber of arguments.
constnessOptional const specifier.
MethodMethod name.

◆ GMOCK_NOEXCEPT_METHOD6_

#define GMOCK_NOEXCEPT_METHOD6_ (   tn,
  constness,
  ct,
  Method,
  ... 
)
Value:
GMOCK_RESULT_(tn, __VA_ARGS__) \
ct Method( \
GMOCK_ARG_(tn, 1, __VA_ARGS__) gmock_a1, \
GMOCK_ARG_(tn, 2, __VA_ARGS__) gmock_a2, \
GMOCK_ARG_(tn, 3, __VA_ARGS__) gmock_a3, \
GMOCK_ARG_(tn, 4, __VA_ARGS__) gmock_a4, \
GMOCK_ARG_(tn, 5, __VA_ARGS__) gmock_a5, \
GMOCK_ARG_(tn, 6, __VA_ARGS__) gmock_a6) constness noexcept { \
GTEST_COMPILE_ASSERT_( \
(::testing::tuple_size<tn ::testing::internal::Function<__VA_ARGS__>::ArgumentTuple>::value == 6), \
this_method_does_not_take_6_arguments); \
GMOCK_NOEXCEPT_MOCKER_(6, constness, Method).SetOwnerAndName(this, #Method); \
return GMOCK_NOEXCEPT_MOCKER_(6, constness, Method) \
.Invoke(gmock_a1, gmock_a2, gmock_a3, gmock_a4, gmock_a5, gmock_a6); \
} \
GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1, \
GMOCK_MATCHER_(tn, 2, __VA_ARGS__) gmock_a2, \
GMOCK_MATCHER_(tn, 3, __VA_ARGS__) gmock_a3, \
GMOCK_MATCHER_(tn, 4, __VA_ARGS__) gmock_a4, \
GMOCK_MATCHER_(tn, 5, __VA_ARGS__) gmock_a5, \
GMOCK_MATCHER_(tn, 6, __VA_ARGS__) gmock_a6) constness noexcept { \
GMOCK_NOEXCEPT_MOCKER_(6, constness, Method).RegisterOwner(this); \
return GMOCK_NOEXCEPT_MOCKER_(6, constness, Method) \
.With(gmock_a1, gmock_a2, gmock_a3, gmock_a4, gmock_a5, gmock_a6); \
} \
mutable ::testing::FunctionMocker<__VA_ARGS__> GMOCK_NOEXCEPT_MOCKER_(6, constness, Method)
Definition: gmock-spec-builders.h:1246
#define GMOCK_ARG_(tn, N,...)
Definition: gmock-generated-function-mockers.h:342
#define GMOCK_NOEXCEPT_MOCKER_(arity, constness, Method)
Internal macro for constructing method name.
Definition: GmockExtensions.h:32
#define Method
Definition: gmock-spec-builders_test.cc:184
#define GMOCK_RESULT_(tn,...)
Definition: gmock-generated-function-mockers.h:337
#define GMOCK_MATCHER_(tn, N,...)
Definition: gmock-generated-function-mockers.h:347

Internal macro for declaring and defining mock method.

Macro declares and defines mock method with noexcept specifier. Otherwise it works similarly to macros GMOCK_METHOD0_ ... GMOCK_METHOD10_.

Parameters
tnNumber of arguments.
constnessOptional const specifier.
MethodMethod name.

◆ GMOCK_NOEXCEPT_METHOD7_

#define GMOCK_NOEXCEPT_METHOD7_ (   tn,
  constness,
  ct,
  Method,
  ... 
)
Value:
GMOCK_RESULT_(tn, __VA_ARGS__) \
ct Method( \
GMOCK_ARG_(tn, 1, __VA_ARGS__) gmock_a1, \
GMOCK_ARG_(tn, 2, __VA_ARGS__) gmock_a2, \
GMOCK_ARG_(tn, 3, __VA_ARGS__) gmock_a3, \
GMOCK_ARG_(tn, 4, __VA_ARGS__) gmock_a4, \
GMOCK_ARG_(tn, 5, __VA_ARGS__) gmock_a5, \
GMOCK_ARG_(tn, 6, __VA_ARGS__) gmock_a6, \
GMOCK_ARG_(tn, 7, __VA_ARGS__) gmock_a7) constness noexcept { \
GTEST_COMPILE_ASSERT_( \
(::testing::tuple_size<tn ::testing::internal::Function<__VA_ARGS__>::ArgumentTuple>::value == 7), \
this_method_does_not_take_7_arguments); \
GMOCK_NOEXCEPT_MOCKER_(7, constness, Method).SetOwnerAndName(this, #Method); \
return GMOCK_NOEXCEPT_MOCKER_(7, constness, Method) \
.Invoke(gmock_a1, gmock_a2, gmock_a3, gmock_a4, gmock_a5, gmock_a6, gmock_a7); \
} \
GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1, \
GMOCK_MATCHER_(tn, 2, __VA_ARGS__) gmock_a2, \
GMOCK_MATCHER_(tn, 3, __VA_ARGS__) gmock_a3, \
GMOCK_MATCHER_(tn, 4, __VA_ARGS__) gmock_a4, \
GMOCK_MATCHER_(tn, 5, __VA_ARGS__) gmock_a5, \
GMOCK_MATCHER_(tn, 6, __VA_ARGS__) gmock_a6, \
GMOCK_MATCHER_(tn, 7, __VA_ARGS__) gmock_a7) constness noexcept { \
GMOCK_NOEXCEPT_MOCKER_(7, constness, Method).RegisterOwner(this); \
return GMOCK_NOEXCEPT_MOCKER_(7, constness, Method) \
.With(gmock_a1, gmock_a2, gmock_a3, gmock_a4, gmock_a5, gmock_a6, gmock_a7); \
} \
mutable ::testing::FunctionMocker<__VA_ARGS__> GMOCK_NOEXCEPT_MOCKER_(7, constness, Method)
Definition: gmock-spec-builders.h:1246
#define GMOCK_ARG_(tn, N,...)
Definition: gmock-generated-function-mockers.h:342
#define GMOCK_NOEXCEPT_MOCKER_(arity, constness, Method)
Internal macro for constructing method name.
Definition: GmockExtensions.h:32
#define Method
Definition: gmock-spec-builders_test.cc:184
#define GMOCK_RESULT_(tn,...)
Definition: gmock-generated-function-mockers.h:337
#define GMOCK_MATCHER_(tn, N,...)
Definition: gmock-generated-function-mockers.h:347

Internal macro for declaring and defining mock method.

Macro declares and defines mock method with noexcept specifier. Otherwise it works similarly to macros GMOCK_METHOD0_ ... GMOCK_METHOD10_.

Parameters
tnNumber of arguments.
constnessOptional const specifier.
MethodMethod name.

◆ GMOCK_NOEXCEPT_METHOD8_

#define GMOCK_NOEXCEPT_METHOD8_ (   tn,
  constness,
  ct,
  Method,
  ... 
)

Internal macro for declaring and defining mock method.

Macro declares and defines mock method with noexcept specifier. Otherwise it works similarly to macros GMOCK_METHOD0_ ... GMOCK_METHOD10_.

Parameters
tnNumber of arguments.
constnessOptional const specifier.
MethodMethod name.

◆ GMOCK_NOEXCEPT_METHOD9_

#define GMOCK_NOEXCEPT_METHOD9_ (   tn,
  constness,
  ct,
  Method,
  ... 
)

Internal macro for declaring and defining mock method.

Macro declares and defines mock method with noexcept specifier. Otherwise it works similarly to macros GMOCK_METHOD0_ ... GMOCK_METHOD10_.

Parameters
tnNumber of arguments.
constnessOptional const specifier.
MethodMethod name.

◆ GMOCK_NOEXCEPT_MOCKER_

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

Internal macro for constructing method name.

Macro constructs method name in a manner similar to GMOCK_MOCKER_.

Parameters
arityParameter count.
constnessOptional const specifier.
MethodMethod name.
Returns
Method name.

◆ MOCK_CONST_NOEXCEPT_METHOD0

#define MOCK_CONST_NOEXCEPT_METHOD0 (   m,
  ... 
)    GMOCK_NOEXCEPT_METHOD0_(, const, , m, __VA_ARGS__)

Macro to mock method with const noexcept specifier.

◆ MOCK_CONST_NOEXCEPT_METHOD1

#define MOCK_CONST_NOEXCEPT_METHOD1 (   m,
  ... 
)    GMOCK_NOEXCEPT_METHOD1_(, const, , m, __VA_ARGS__)

Macro to mock method with const noexcept specifier.

◆ MOCK_CONST_NOEXCEPT_METHOD10

#define MOCK_CONST_NOEXCEPT_METHOD10 (   m,
  ... 
)    GMOCK_NOEXCEPT_METHOD10_(, const, , m, __VA_ARGS__)

Macro to mock method with const noexcept specifier.

◆ MOCK_CONST_NOEXCEPT_METHOD2

#define MOCK_CONST_NOEXCEPT_METHOD2 (   m,
  ... 
)    GMOCK_NOEXCEPT_METHOD2_(, const, , m, __VA_ARGS__)

Macro to mock method with const noexcept specifier.

◆ MOCK_CONST_NOEXCEPT_METHOD3

#define MOCK_CONST_NOEXCEPT_METHOD3 (   m,
  ... 
)    GMOCK_NOEXCEPT_METHOD3_(, const, , m, __VA_ARGS__)

Macro to mock method with const noexcept specifier.

◆ MOCK_CONST_NOEXCEPT_METHOD4

#define MOCK_CONST_NOEXCEPT_METHOD4 (   m,
  ... 
)    GMOCK_NOEXCEPT_METHOD4_(, const, , m, __VA_ARGS__)

Macro to mock method with const noexcept specifier.

◆ MOCK_CONST_NOEXCEPT_METHOD5

#define MOCK_CONST_NOEXCEPT_METHOD5 (   m,
  ... 
)    GMOCK_NOEXCEPT_METHOD5_(, const, , m, __VA_ARGS__)

Macro to mock method with const noexcept specifier.

◆ MOCK_CONST_NOEXCEPT_METHOD6

#define MOCK_CONST_NOEXCEPT_METHOD6 (   m,
  ... 
)    GMOCK_NOEXCEPT_METHOD6_(, const, , m, __VA_ARGS__)

Macro to mock method with const noexcept specifier.

◆ MOCK_CONST_NOEXCEPT_METHOD7

#define MOCK_CONST_NOEXCEPT_METHOD7 (   m,
  ... 
)    GMOCK_NOEXCEPT_METHOD7_(, const, , m, __VA_ARGS__)

Macro to mock method with const noexcept specifier.

◆ MOCK_CONST_NOEXCEPT_METHOD8

#define MOCK_CONST_NOEXCEPT_METHOD8 (   m,
  ... 
)    GMOCK_NOEXCEPT_METHOD8_(, const, , m, __VA_ARGS__)

Macro to mock method with const noexcept specifier.

◆ MOCK_CONST_NOEXCEPT_METHOD9

#define MOCK_CONST_NOEXCEPT_METHOD9 (   m,
  ... 
)    GMOCK_NOEXCEPT_METHOD9_(, const, , m, __VA_ARGS__)

Macro to mock method with const noexcept specifier.

◆ MOCK_NOEXCEPT_METHOD0

#define MOCK_NOEXCEPT_METHOD0 (   m,
  ... 
)    GMOCK_NOEXCEPT_METHOD0_(, , , m, __VA_ARGS__)

Macro to mock method with noexcept specifier.

◆ MOCK_NOEXCEPT_METHOD1

#define MOCK_NOEXCEPT_METHOD1 (   m,
  ... 
)    GMOCK_NOEXCEPT_METHOD1_(, , , m, __VA_ARGS__)

Macro to mock method with noexcept specifier.

◆ MOCK_NOEXCEPT_METHOD10

#define MOCK_NOEXCEPT_METHOD10 (   m,
  ... 
)    GMOCK_NOEXCEPT_METHOD10_(, , , m, __VA_ARGS__)

Macro to mock method with noexcept specifier.

◆ MOCK_NOEXCEPT_METHOD2

#define MOCK_NOEXCEPT_METHOD2 (   m,
  ... 
)    GMOCK_NOEXCEPT_METHOD2_(, , , m, __VA_ARGS__)

Macro to mock method with noexcept specifier.

◆ MOCK_NOEXCEPT_METHOD3

#define MOCK_NOEXCEPT_METHOD3 (   m,
  ... 
)    GMOCK_NOEXCEPT_METHOD3_(, , , m, __VA_ARGS__)

Macro to mock method with noexcept specifier.

◆ MOCK_NOEXCEPT_METHOD4

#define MOCK_NOEXCEPT_METHOD4 (   m,
  ... 
)    GMOCK_NOEXCEPT_METHOD4_(, , , m, __VA_ARGS__)

Macro to mock method with noexcept specifier.

◆ MOCK_NOEXCEPT_METHOD5

#define MOCK_NOEXCEPT_METHOD5 (   m,
  ... 
)    GMOCK_NOEXCEPT_METHOD5_(, , , m, __VA_ARGS__)

Macro to mock method with noexcept specifier.

◆ MOCK_NOEXCEPT_METHOD6

#define MOCK_NOEXCEPT_METHOD6 (   m,
  ... 
)    GMOCK_NOEXCEPT_METHOD6_(, , , m, __VA_ARGS__)

Macro to mock method with noexcept specifier.

◆ MOCK_NOEXCEPT_METHOD7

#define MOCK_NOEXCEPT_METHOD7 (   m,
  ... 
)    GMOCK_NOEXCEPT_METHOD7_(, , , m, __VA_ARGS__)

Macro to mock method with noexcept specifier.

◆ MOCK_NOEXCEPT_METHOD8

#define MOCK_NOEXCEPT_METHOD8 (   m,
  ... 
)    GMOCK_NOEXCEPT_METHOD8_(, , , m, __VA_ARGS__)

Macro to mock method with noexcept specifier.

◆ MOCK_NOEXCEPT_METHOD9

#define MOCK_NOEXCEPT_METHOD9 (   m,
  ... 
)    GMOCK_NOEXCEPT_METHOD9_(, , , m, __VA_ARGS__)

Macro to mock method with noexcept specifier.

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0