Lines Matching refs:Method
133 #define GMOCK_MOCKER_(arity, constness, Method) \ argument
134 GTEST_CONCAT_TOKEN_(gmock##constness##arity##_##Method##_, __LINE__)
137 #define GMOCK_METHOD0_(tn, constness, ct, Method, ...) \ argument
141 GMOCK_RESULT_(tn, __VA_ARGS__) ct Method( \
143 GMOCK_MOCKER_(0, constness, Method).SetOwnerAndName(this, #Method); \
144 return GMOCK_MOCKER_(0, constness, Method).Invoke(); \
147 gmock_##Method() constness { \
148 GMOCK_MOCKER_(0, constness, Method).RegisterOwner(this); \
149 return GMOCK_MOCKER_(0, constness, Method).With(); \
151 ::testing::MockSpec<__VA_ARGS__> gmock_##Method( \
155 gmock_##Method(); \
158 Method)
161 #define GMOCK_METHOD1_(tn, constness, ct, Method, ...) \ argument
165 GMOCK_RESULT_(tn, __VA_ARGS__) ct Method( \
167 GMOCK_MOCKER_(1, constness, Method).SetOwnerAndName(this, #Method); \
169 Method).Invoke(::std::forward<GMOCK_ARG_(tn, 1, \
173 gmock_##Method(GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1) constness { \
174 GMOCK_MOCKER_(1, constness, Method).RegisterOwner(this); \
175 return GMOCK_MOCKER_(1, constness, Method).With(gmock_a1); \
177 ::testing::MockSpec<__VA_ARGS__> gmock_##Method( \
181 gmock_##Method(::testing::A<GMOCK_ARG_(tn, 1, __VA_ARGS__)>()); \
184 Method)
187 #define GMOCK_METHOD2_(tn, constness, ct, Method, ...) \ argument
191 GMOCK_RESULT_(tn, __VA_ARGS__) ct Method( \
194 GMOCK_MOCKER_(2, constness, Method).SetOwnerAndName(this, #Method); \
196 Method).Invoke(::std::forward<GMOCK_ARG_(tn, 1, \
201 gmock_##Method(GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1, \
203 GMOCK_MOCKER_(2, constness, Method).RegisterOwner(this); \
204 return GMOCK_MOCKER_(2, constness, Method).With(gmock_a1, gmock_a2); \
206 ::testing::MockSpec<__VA_ARGS__> gmock_##Method( \
210 gmock_##Method(::testing::A<GMOCK_ARG_(tn, 1, __VA_ARGS__)>(), \
214 Method)
217 #define GMOCK_METHOD3_(tn, constness, ct, Method, ...) \ argument
221 GMOCK_RESULT_(tn, __VA_ARGS__) ct Method( \
225 GMOCK_MOCKER_(3, constness, Method).SetOwnerAndName(this, #Method); \
227 Method).Invoke(::std::forward<GMOCK_ARG_(tn, 1, \
233 gmock_##Method(GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1, \
236 GMOCK_MOCKER_(3, constness, Method).RegisterOwner(this); \
237 return GMOCK_MOCKER_(3, constness, Method).With(gmock_a1, gmock_a2, \
240 ::testing::MockSpec<__VA_ARGS__> gmock_##Method( \
244 gmock_##Method(::testing::A<GMOCK_ARG_(tn, 1, __VA_ARGS__)>(), \
249 Method)
252 #define GMOCK_METHOD4_(tn, constness, ct, Method, ...) \ argument
256 GMOCK_RESULT_(tn, __VA_ARGS__) ct Method( \
260 GMOCK_MOCKER_(4, constness, Method).SetOwnerAndName(this, #Method); \
262 Method).Invoke(::std::forward<GMOCK_ARG_(tn, 1, \
269 gmock_##Method(GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1, \
273 GMOCK_MOCKER_(4, constness, Method).RegisterOwner(this); \
274 return GMOCK_MOCKER_(4, constness, Method).With(gmock_a1, gmock_a2, \
277 ::testing::MockSpec<__VA_ARGS__> gmock_##Method( \
281 gmock_##Method(::testing::A<GMOCK_ARG_(tn, 1, __VA_ARGS__)>(), \
287 Method)
290 #define GMOCK_METHOD5_(tn, constness, ct, Method, ...) \ argument
294 GMOCK_RESULT_(tn, __VA_ARGS__) ct Method( \
299 GMOCK_MOCKER_(5, constness, Method).SetOwnerAndName(this, #Method); \
301 Method).Invoke(::std::forward<GMOCK_ARG_(tn, 1, \
309 gmock_##Method(GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1, \
314 GMOCK_MOCKER_(5, constness, Method).RegisterOwner(this); \
315 return GMOCK_MOCKER_(5, constness, Method).With(gmock_a1, gmock_a2, \
318 ::testing::MockSpec<__VA_ARGS__> gmock_##Method( \
322 gmock_##Method(::testing::A<GMOCK_ARG_(tn, 1, __VA_ARGS__)>(), \
329 Method)
332 #define GMOCK_METHOD6_(tn, constness, ct, Method, ...) \ argument
336 GMOCK_RESULT_(tn, __VA_ARGS__) ct Method( \
342 GMOCK_MOCKER_(6, constness, Method).SetOwnerAndName(this, #Method); \
344 Method).Invoke(::std::forward<GMOCK_ARG_(tn, 1, \
353 gmock_##Method(GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1, \
359 GMOCK_MOCKER_(6, constness, Method).RegisterOwner(this); \
360 return GMOCK_MOCKER_(6, constness, Method).With(gmock_a1, gmock_a2, \
363 ::testing::MockSpec<__VA_ARGS__> gmock_##Method( \
367 gmock_##Method(::testing::A<GMOCK_ARG_(tn, 1, __VA_ARGS__)>(), \
375 Method)
378 #define GMOCK_METHOD7_(tn, constness, ct, Method, ...) \ argument
382 GMOCK_RESULT_(tn, __VA_ARGS__) ct Method( \
388 GMOCK_MOCKER_(7, constness, Method).SetOwnerAndName(this, #Method); \
390 Method).Invoke(::std::forward<GMOCK_ARG_(tn, 1, \
400 gmock_##Method(GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1, \
407 GMOCK_MOCKER_(7, constness, Method).RegisterOwner(this); \
408 return GMOCK_MOCKER_(7, constness, Method).With(gmock_a1, gmock_a2, \
411 ::testing::MockSpec<__VA_ARGS__> gmock_##Method( \
415 gmock_##Method(::testing::A<GMOCK_ARG_(tn, 1, __VA_ARGS__)>(), \
424 Method)
427 #define GMOCK_METHOD8_(tn, constness, ct, Method, ...) \ argument
431 GMOCK_RESULT_(tn, __VA_ARGS__) ct Method( \
438 GMOCK_MOCKER_(8, constness, Method).SetOwnerAndName(this, #Method); \
440 Method).Invoke(::std::forward<GMOCK_ARG_(tn, 1, \
451 gmock_##Method(GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1, \
459 GMOCK_MOCKER_(8, constness, Method).RegisterOwner(this); \
460 return GMOCK_MOCKER_(8, constness, Method).With(gmock_a1, gmock_a2, \
463 ::testing::MockSpec<__VA_ARGS__> gmock_##Method( \
467 gmock_##Method(::testing::A<GMOCK_ARG_(tn, 1, __VA_ARGS__)>(), \
477 Method)
480 #define GMOCK_METHOD9_(tn, constness, ct, Method, ...) \ argument
484 GMOCK_RESULT_(tn, __VA_ARGS__) ct Method( \
492 GMOCK_MOCKER_(9, constness, Method).SetOwnerAndName(this, #Method); \
494 Method).Invoke(::std::forward<GMOCK_ARG_(tn, 1, \
506 gmock_##Method(GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1, \
515 GMOCK_MOCKER_(9, constness, Method).RegisterOwner(this); \
516 return GMOCK_MOCKER_(9, constness, Method).With(gmock_a1, gmock_a2, \
520 ::testing::MockSpec<__VA_ARGS__> gmock_##Method( \
524 gmock_##Method(::testing::A<GMOCK_ARG_(tn, 1, __VA_ARGS__)>(), \
535 Method)
538 #define GMOCK_METHOD10_(tn, constness, ct, Method, ...) \ argument
542 GMOCK_RESULT_(tn, __VA_ARGS__) ct Method( \
550 GMOCK_MOCKER_(10, constness, Method).SetOwnerAndName(this, #Method); \
552 Method).Invoke(::std::forward<GMOCK_ARG_(tn, 1, \
565 gmock_##Method(GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1, \
576 GMOCK_MOCKER_(10, constness, Method).RegisterOwner(this); \
577 return GMOCK_MOCKER_(10, constness, Method).With(gmock_a1, gmock_a2, \
581 ::testing::MockSpec<__VA_ARGS__> gmock_##Method( \
585 gmock_##Method(::testing::A<GMOCK_ARG_(tn, 1, __VA_ARGS__)>(), \
597 Method)