41 #ifndef GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_ACTIONS_H_
42 #define GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_ACTIONS_H_
70 template <
typename Result,
class Impl>
73 static Result
Perform(Impl* impl, const ::std::tuple<>&
args) {
80 template <
typename A0>
81 static Result
Perform(Impl* impl, const ::std::tuple<A0>&
args) {
82 return impl->template gmock_PerformImpl<A0>(
args, std::get<0>(
args),
88 template <
typename A0,
typename A1>
89 static Result
Perform(Impl* impl, const ::std::tuple<A0, A1>&
args) {
90 return impl->template gmock_PerformImpl<A0, A1>(
args, std::get<0>(
args),
96 template <
typename A0,
typename A1,
typename A2>
97 static Result
Perform(Impl* impl, const ::std::tuple<A0, A1, A2>&
args) {
98 return impl->template gmock_PerformImpl<A0, A1, A2>(
args,
104 template <
typename A0,
typename A1,
typename A2,
typename A3>
105 static Result
Perform(Impl* impl, const ::std::tuple<A0, A1, A2, A3>&
args) {
106 return impl->template gmock_PerformImpl<A0, A1, A2, A3>(
args,
107 std::get<0>(
args), std::get<1>(
args), std::get<2>(
args),
112 template <
typename A0,
typename A1,
typename A2,
typename A3,
typename A4>
113 static Result
Perform(Impl* impl, const ::std::tuple<A0, A1, A2, A3,
115 return impl->template gmock_PerformImpl<A0, A1, A2, A3, A4>(
args,
116 std::get<0>(
args), std::get<1>(
args), std::get<2>(
args),
121 template <
typename A0,
typename A1,
typename A2,
typename A3,
typename A4,
123 static Result
Perform(Impl* impl, const ::std::tuple<A0, A1, A2, A3, A4,
125 return impl->template gmock_PerformImpl<A0, A1, A2, A3, A4, A5>(
args,
126 std::get<0>(
args), std::get<1>(
args), std::get<2>(
args),
127 std::get<3>(
args), std::get<4>(
args), std::get<5>(
args),
131 template <
typename A0,
typename A1,
typename A2,
typename A3,
typename A4,
132 typename A5,
typename A6>
133 static Result
Perform(Impl* impl, const ::std::tuple<A0, A1, A2, A3, A4, A5,
135 return impl->template gmock_PerformImpl<A0, A1, A2, A3, A4, A5, A6>(
args,
136 std::get<0>(
args), std::get<1>(
args), std::get<2>(
args),
137 std::get<3>(
args), std::get<4>(
args), std::get<5>(
args),
141 template <
typename A0,
typename A1,
typename A2,
typename A3,
typename A4,
142 typename A5,
typename A6,
typename A7>
143 static Result
Perform(Impl* impl, const ::std::tuple<A0, A1, A2, A3, A4, A5,
145 return impl->template gmock_PerformImpl<A0, A1, A2, A3, A4, A5, A6,
147 std::get<3>(
args), std::get<4>(
args), std::get<5>(
args),
151 template <
typename A0,
typename A1,
typename A2,
typename A3,
typename A4,
152 typename A5,
typename A6,
typename A7,
typename A8>
153 static Result
Perform(Impl* impl, const ::std::tuple<A0, A1, A2, A3, A4, A5,
155 return impl->template gmock_PerformImpl<A0, A1, A2, A3, A4, A5, A6, A7,
157 std::get<3>(
args), std::get<4>(
args), std::get<5>(
args),
158 std::get<6>(
args), std::get<7>(
args), std::get<8>(
args),
162 template <
typename A0,
typename A1,
typename A2,
typename A3,
typename A4,
163 typename A5,
typename A6,
typename A7,
typename A8,
typename A9>
164 static Result
Perform(Impl* impl, const ::std::tuple<A0, A1, A2, A3, A4, A5,
165 A6, A7, A8, A9>&
args) {
166 return impl->template gmock_PerformImpl<A0, A1, A2, A3, A4, A5, A6, A7, A8,
168 std::get<3>(
args), std::get<4>(
args), std::get<5>(
args),
169 std::get<6>(
args), std::get<7>(
args), std::get<8>(
args),
274 #define GMOCK_ACTION_ARG_TYPES_AND_NAMES_UNUSED_\
275 const args_type& args GTEST_ATTRIBUTE_UNUSED_, \
276 arg0_type arg0 GTEST_ATTRIBUTE_UNUSED_, \
277 arg1_type arg1 GTEST_ATTRIBUTE_UNUSED_, \
278 arg2_type arg2 GTEST_ATTRIBUTE_UNUSED_, \
279 arg3_type arg3 GTEST_ATTRIBUTE_UNUSED_, \
280 arg4_type arg4 GTEST_ATTRIBUTE_UNUSED_, \
281 arg5_type arg5 GTEST_ATTRIBUTE_UNUSED_, \
282 arg6_type arg6 GTEST_ATTRIBUTE_UNUSED_, \
283 arg7_type arg7 GTEST_ATTRIBUTE_UNUSED_, \
284 arg8_type arg8 GTEST_ATTRIBUTE_UNUSED_, \
285 arg9_type arg9 GTEST_ATTRIBUTE_UNUSED_
369 #define GMOCK_INTERNAL_DECL_HAS_1_TEMPLATE_PARAMS(kind0, name0) kind0 name0
370 #define GMOCK_INTERNAL_DECL_HAS_2_TEMPLATE_PARAMS(kind0, name0, kind1, \
371 name1) kind0 name0, kind1 name1
372 #define GMOCK_INTERNAL_DECL_HAS_3_TEMPLATE_PARAMS(kind0, name0, kind1, name1, \
373 kind2, name2) kind0 name0, kind1 name1, kind2 name2
374 #define GMOCK_INTERNAL_DECL_HAS_4_TEMPLATE_PARAMS(kind0, name0, kind1, name1, \
375 kind2, name2, kind3, name3) kind0 name0, kind1 name1, kind2 name2, \
377 #define GMOCK_INTERNAL_DECL_HAS_5_TEMPLATE_PARAMS(kind0, name0, kind1, name1, \
378 kind2, name2, kind3, name3, kind4, name4) kind0 name0, kind1 name1, \
379 kind2 name2, kind3 name3, kind4 name4
380 #define GMOCK_INTERNAL_DECL_HAS_6_TEMPLATE_PARAMS(kind0, name0, kind1, name1, \
381 kind2, name2, kind3, name3, kind4, name4, kind5, name5) kind0 name0, \
382 kind1 name1, kind2 name2, kind3 name3, kind4 name4, kind5 name5
383 #define GMOCK_INTERNAL_DECL_HAS_7_TEMPLATE_PARAMS(kind0, name0, kind1, name1, \
384 kind2, name2, kind3, name3, kind4, name4, kind5, name5, kind6, \
385 name6) kind0 name0, kind1 name1, kind2 name2, kind3 name3, kind4 name4, \
386 kind5 name5, kind6 name6
387 #define GMOCK_INTERNAL_DECL_HAS_8_TEMPLATE_PARAMS(kind0, name0, kind1, name1, \
388 kind2, name2, kind3, name3, kind4, name4, kind5, name5, kind6, name6, \
389 kind7, name7) kind0 name0, kind1 name1, kind2 name2, kind3 name3, \
390 kind4 name4, kind5 name5, kind6 name6, kind7 name7
391 #define GMOCK_INTERNAL_DECL_HAS_9_TEMPLATE_PARAMS(kind0, name0, kind1, name1, \
392 kind2, name2, kind3, name3, kind4, name4, kind5, name5, kind6, name6, \
393 kind7, name7, kind8, name8) kind0 name0, kind1 name1, kind2 name2, \
394 kind3 name3, kind4 name4, kind5 name5, kind6 name6, kind7 name7, \
396 #define GMOCK_INTERNAL_DECL_HAS_10_TEMPLATE_PARAMS(kind0, name0, kind1, \
397 name1, kind2, name2, kind3, name3, kind4, name4, kind5, name5, kind6, \
398 name6, kind7, name7, kind8, name8, kind9, name9) kind0 name0, \
399 kind1 name1, kind2 name2, kind3 name3, kind4 name4, kind5 name5, \
400 kind6 name6, kind7 name7, kind8 name8, kind9 name9
403 #define GMOCK_INTERNAL_LIST_HAS_1_TEMPLATE_PARAMS(kind0, name0) name0
404 #define GMOCK_INTERNAL_LIST_HAS_2_TEMPLATE_PARAMS(kind0, name0, kind1, \
406 #define GMOCK_INTERNAL_LIST_HAS_3_TEMPLATE_PARAMS(kind0, name0, kind1, name1, \
407 kind2, name2) name0, name1, name2
408 #define GMOCK_INTERNAL_LIST_HAS_4_TEMPLATE_PARAMS(kind0, name0, kind1, name1, \
409 kind2, name2, kind3, name3) name0, name1, name2, name3
410 #define GMOCK_INTERNAL_LIST_HAS_5_TEMPLATE_PARAMS(kind0, name0, kind1, name1, \
411 kind2, name2, kind3, name3, kind4, name4) name0, name1, name2, name3, \
413 #define GMOCK_INTERNAL_LIST_HAS_6_TEMPLATE_PARAMS(kind0, name0, kind1, name1, \
414 kind2, name2, kind3, name3, kind4, name4, kind5, name5) name0, name1, \
415 name2, name3, name4, name5
416 #define GMOCK_INTERNAL_LIST_HAS_7_TEMPLATE_PARAMS(kind0, name0, kind1, name1, \
417 kind2, name2, kind3, name3, kind4, name4, kind5, name5, kind6, \
418 name6) name0, name1, name2, name3, name4, name5, name6
419 #define GMOCK_INTERNAL_LIST_HAS_8_TEMPLATE_PARAMS(kind0, name0, kind1, name1, \
420 kind2, name2, kind3, name3, kind4, name4, kind5, name5, kind6, name6, \
421 kind7, name7) name0, name1, name2, name3, name4, name5, name6, name7
422 #define GMOCK_INTERNAL_LIST_HAS_9_TEMPLATE_PARAMS(kind0, name0, kind1, name1, \
423 kind2, name2, kind3, name3, kind4, name4, kind5, name5, kind6, name6, \
424 kind7, name7, kind8, name8) name0, name1, name2, name3, name4, name5, \
426 #define GMOCK_INTERNAL_LIST_HAS_10_TEMPLATE_PARAMS(kind0, name0, kind1, \
427 name1, kind2, name2, kind3, name3, kind4, name4, kind5, name5, kind6, \
428 name6, kind7, name7, kind8, name8, kind9, name9) name0, name1, name2, \
429 name3, name4, name5, name6, name7, name8, name9
432 #define GMOCK_INTERNAL_DECL_TYPE_AND_0_VALUE_PARAMS()
433 #define GMOCK_INTERNAL_DECL_TYPE_AND_1_VALUE_PARAMS(p0) , typename p0##_type
434 #define GMOCK_INTERNAL_DECL_TYPE_AND_2_VALUE_PARAMS(p0, p1) , \
435 typename p0##_type, typename p1##_type
436 #define GMOCK_INTERNAL_DECL_TYPE_AND_3_VALUE_PARAMS(p0, p1, p2) , \
437 typename p0##_type, typename p1##_type, typename p2##_type
438 #define GMOCK_INTERNAL_DECL_TYPE_AND_4_VALUE_PARAMS(p0, p1, p2, p3) , \
439 typename p0##_type, typename p1##_type, typename p2##_type, \
441 #define GMOCK_INTERNAL_DECL_TYPE_AND_5_VALUE_PARAMS(p0, p1, p2, p3, p4) , \
442 typename p0##_type, typename p1##_type, typename p2##_type, \
443 typename p3##_type, typename p4##_type
444 #define GMOCK_INTERNAL_DECL_TYPE_AND_6_VALUE_PARAMS(p0, p1, p2, p3, p4, p5) , \
445 typename p0##_type, typename p1##_type, typename p2##_type, \
446 typename p3##_type, typename p4##_type, typename p5##_type
447 #define GMOCK_INTERNAL_DECL_TYPE_AND_7_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, \
448 p6) , typename p0##_type, typename p1##_type, typename p2##_type, \
449 typename p3##_type, typename p4##_type, typename p5##_type, \
451 #define GMOCK_INTERNAL_DECL_TYPE_AND_8_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, \
452 p6, p7) , typename p0##_type, typename p1##_type, typename p2##_type, \
453 typename p3##_type, typename p4##_type, typename p5##_type, \
454 typename p6##_type, typename p7##_type
455 #define GMOCK_INTERNAL_DECL_TYPE_AND_9_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, \
456 p6, p7, p8) , typename p0##_type, typename p1##_type, typename p2##_type, \
457 typename p3##_type, typename p4##_type, typename p5##_type, \
458 typename p6##_type, typename p7##_type, typename p8##_type
459 #define GMOCK_INTERNAL_DECL_TYPE_AND_10_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, \
460 p6, p7, p8, p9) , typename p0##_type, typename p1##_type, \
461 typename p2##_type, typename p3##_type, typename p4##_type, \
462 typename p5##_type, typename p6##_type, typename p7##_type, \
463 typename p8##_type, typename p9##_type
466 #define GMOCK_INTERNAL_INIT_AND_0_VALUE_PARAMS()\
468 #define GMOCK_INTERNAL_INIT_AND_1_VALUE_PARAMS(p0)\
469 (p0##_type gmock_p0) : p0(::std::move(gmock_p0))
470 #define GMOCK_INTERNAL_INIT_AND_2_VALUE_PARAMS(p0, p1)\
471 (p0##_type gmock_p0, p1##_type gmock_p1) : p0(::std::move(gmock_p0)), \
472 p1(::std::move(gmock_p1))
473 #define GMOCK_INTERNAL_INIT_AND_3_VALUE_PARAMS(p0, p1, p2)\
474 (p0##_type gmock_p0, p1##_type gmock_p1, \
475 p2##_type gmock_p2) : p0(::std::move(gmock_p0)), \
476 p1(::std::move(gmock_p1)), p2(::std::move(gmock_p2))
477 #define GMOCK_INTERNAL_INIT_AND_4_VALUE_PARAMS(p0, p1, p2, p3)\
478 (p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
479 p3##_type gmock_p3) : p0(::std::move(gmock_p0)), \
480 p1(::std::move(gmock_p1)), p2(::std::move(gmock_p2)), \
481 p3(::std::move(gmock_p3))
482 #define GMOCK_INTERNAL_INIT_AND_5_VALUE_PARAMS(p0, p1, p2, p3, p4)\
483 (p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
484 p3##_type gmock_p3, p4##_type gmock_p4) : p0(::std::move(gmock_p0)), \
485 p1(::std::move(gmock_p1)), p2(::std::move(gmock_p2)), \
486 p3(::std::move(gmock_p3)), p4(::std::move(gmock_p4))
487 #define GMOCK_INTERNAL_INIT_AND_6_VALUE_PARAMS(p0, p1, p2, p3, p4, p5)\
488 (p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
489 p3##_type gmock_p3, p4##_type gmock_p4, \
490 p5##_type gmock_p5) : p0(::std::move(gmock_p0)), \
491 p1(::std::move(gmock_p1)), p2(::std::move(gmock_p2)), \
492 p3(::std::move(gmock_p3)), p4(::std::move(gmock_p4)), \
493 p5(::std::move(gmock_p5))
494 #define GMOCK_INTERNAL_INIT_AND_7_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6)\
495 (p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
496 p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5, \
497 p6##_type gmock_p6) : p0(::std::move(gmock_p0)), \
498 p1(::std::move(gmock_p1)), p2(::std::move(gmock_p2)), \
499 p3(::std::move(gmock_p3)), p4(::std::move(gmock_p4)), \
500 p5(::std::move(gmock_p5)), p6(::std::move(gmock_p6))
501 #define GMOCK_INTERNAL_INIT_AND_8_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, p7)\
502 (p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
503 p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5, \
504 p6##_type gmock_p6, p7##_type gmock_p7) : p0(::std::move(gmock_p0)), \
505 p1(::std::move(gmock_p1)), p2(::std::move(gmock_p2)), \
506 p3(::std::move(gmock_p3)), p4(::std::move(gmock_p4)), \
507 p5(::std::move(gmock_p5)), p6(::std::move(gmock_p6)), \
508 p7(::std::move(gmock_p7))
509 #define GMOCK_INTERNAL_INIT_AND_9_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
511 (p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
512 p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5, \
513 p6##_type gmock_p6, p7##_type gmock_p7, \
514 p8##_type gmock_p8) : p0(::std::move(gmock_p0)), \
515 p1(::std::move(gmock_p1)), p2(::std::move(gmock_p2)), \
516 p3(::std::move(gmock_p3)), p4(::std::move(gmock_p4)), \
517 p5(::std::move(gmock_p5)), p6(::std::move(gmock_p6)), \
518 p7(::std::move(gmock_p7)), p8(::std::move(gmock_p8))
519 #define GMOCK_INTERNAL_INIT_AND_10_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
521 (p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
522 p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5, \
523 p6##_type gmock_p6, p7##_type gmock_p7, p8##_type gmock_p8, \
524 p9##_type gmock_p9) : p0(::std::move(gmock_p0)), \
525 p1(::std::move(gmock_p1)), p2(::std::move(gmock_p2)), \
526 p3(::std::move(gmock_p3)), p4(::std::move(gmock_p4)), \
527 p5(::std::move(gmock_p5)), p6(::std::move(gmock_p6)), \
528 p7(::std::move(gmock_p7)), p8(::std::move(gmock_p8)), \
529 p9(::std::move(gmock_p9))
532 #define GMOCK_INTERNAL_DEFN_AND_0_VALUE_PARAMS()
533 #define GMOCK_INTERNAL_DEFN_AND_1_VALUE_PARAMS(p0) p0##_type p0;
534 #define GMOCK_INTERNAL_DEFN_AND_2_VALUE_PARAMS(p0, p1) p0##_type p0; \
536 #define GMOCK_INTERNAL_DEFN_AND_3_VALUE_PARAMS(p0, p1, p2) p0##_type p0; \
537 p1##_type p1; p2##_type p2;
538 #define GMOCK_INTERNAL_DEFN_AND_4_VALUE_PARAMS(p0, p1, p2, p3) p0##_type p0; \
539 p1##_type p1; p2##_type p2; p3##_type p3;
540 #define GMOCK_INTERNAL_DEFN_AND_5_VALUE_PARAMS(p0, p1, p2, p3, \
541 p4) p0##_type p0; p1##_type p1; p2##_type p2; p3##_type p3; p4##_type p4;
542 #define GMOCK_INTERNAL_DEFN_AND_6_VALUE_PARAMS(p0, p1, p2, p3, p4, \
543 p5) p0##_type p0; p1##_type p1; p2##_type p2; p3##_type p3; p4##_type p4; \
545 #define GMOCK_INTERNAL_DEFN_AND_7_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, \
546 p6) p0##_type p0; p1##_type p1; p2##_type p2; p3##_type p3; p4##_type p4; \
547 p5##_type p5; p6##_type p6;
548 #define GMOCK_INTERNAL_DEFN_AND_8_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
549 p7) p0##_type p0; p1##_type p1; p2##_type p2; p3##_type p3; p4##_type p4; \
550 p5##_type p5; p6##_type p6; p7##_type p7;
551 #define GMOCK_INTERNAL_DEFN_AND_9_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
552 p7, p8) p0##_type p0; p1##_type p1; p2##_type p2; p3##_type p3; \
553 p4##_type p4; p5##_type p5; p6##_type p6; p7##_type p7; p8##_type p8;
554 #define GMOCK_INTERNAL_DEFN_AND_10_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
555 p7, p8, p9) p0##_type p0; p1##_type p1; p2##_type p2; p3##_type p3; \
556 p4##_type p4; p5##_type p5; p6##_type p6; p7##_type p7; p8##_type p8; \
560 #define GMOCK_INTERNAL_LIST_AND_0_VALUE_PARAMS()
561 #define GMOCK_INTERNAL_LIST_AND_1_VALUE_PARAMS(p0) p0
562 #define GMOCK_INTERNAL_LIST_AND_2_VALUE_PARAMS(p0, p1) p0, p1
563 #define GMOCK_INTERNAL_LIST_AND_3_VALUE_PARAMS(p0, p1, p2) p0, p1, p2
564 #define GMOCK_INTERNAL_LIST_AND_4_VALUE_PARAMS(p0, p1, p2, p3) p0, p1, p2, p3
565 #define GMOCK_INTERNAL_LIST_AND_5_VALUE_PARAMS(p0, p1, p2, p3, p4) p0, p1, \
567 #define GMOCK_INTERNAL_LIST_AND_6_VALUE_PARAMS(p0, p1, p2, p3, p4, p5) p0, \
569 #define GMOCK_INTERNAL_LIST_AND_7_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, \
570 p6) p0, p1, p2, p3, p4, p5, p6
571 #define GMOCK_INTERNAL_LIST_AND_8_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
572 p7) p0, p1, p2, p3, p4, p5, p6, p7
573 #define GMOCK_INTERNAL_LIST_AND_9_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
574 p7, p8) p0, p1, p2, p3, p4, p5, p6, p7, p8
575 #define GMOCK_INTERNAL_LIST_AND_10_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
576 p7, p8, p9) p0, p1, p2, p3, p4, p5, p6, p7, p8, p9
579 #define GMOCK_INTERNAL_LIST_TYPE_AND_0_VALUE_PARAMS()
580 #define GMOCK_INTERNAL_LIST_TYPE_AND_1_VALUE_PARAMS(p0) , p0##_type
581 #define GMOCK_INTERNAL_LIST_TYPE_AND_2_VALUE_PARAMS(p0, p1) , p0##_type, \
583 #define GMOCK_INTERNAL_LIST_TYPE_AND_3_VALUE_PARAMS(p0, p1, p2) , p0##_type, \
585 #define GMOCK_INTERNAL_LIST_TYPE_AND_4_VALUE_PARAMS(p0, p1, p2, p3) , \
586 p0##_type, p1##_type, p2##_type, p3##_type
587 #define GMOCK_INTERNAL_LIST_TYPE_AND_5_VALUE_PARAMS(p0, p1, p2, p3, p4) , \
588 p0##_type, p1##_type, p2##_type, p3##_type, p4##_type
589 #define GMOCK_INTERNAL_LIST_TYPE_AND_6_VALUE_PARAMS(p0, p1, p2, p3, p4, p5) , \
590 p0##_type, p1##_type, p2##_type, p3##_type, p4##_type, p5##_type
591 #define GMOCK_INTERNAL_LIST_TYPE_AND_7_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, \
592 p6) , p0##_type, p1##_type, p2##_type, p3##_type, p4##_type, p5##_type, \
594 #define GMOCK_INTERNAL_LIST_TYPE_AND_8_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, \
595 p6, p7) , p0##_type, p1##_type, p2##_type, p3##_type, p4##_type, \
596 p5##_type, p6##_type, p7##_type
597 #define GMOCK_INTERNAL_LIST_TYPE_AND_9_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, \
598 p6, p7, p8) , p0##_type, p1##_type, p2##_type, p3##_type, p4##_type, \
599 p5##_type, p6##_type, p7##_type, p8##_type
600 #define GMOCK_INTERNAL_LIST_TYPE_AND_10_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, \
601 p6, p7, p8, p9) , p0##_type, p1##_type, p2##_type, p3##_type, p4##_type, \
602 p5##_type, p6##_type, p7##_type, p8##_type, p9##_type
605 #define GMOCK_INTERNAL_DECL_AND_0_VALUE_PARAMS()
606 #define GMOCK_INTERNAL_DECL_AND_1_VALUE_PARAMS(p0) p0##_type p0
607 #define GMOCK_INTERNAL_DECL_AND_2_VALUE_PARAMS(p0, p1) p0##_type p0, \
609 #define GMOCK_INTERNAL_DECL_AND_3_VALUE_PARAMS(p0, p1, p2) p0##_type p0, \
610 p1##_type p1, p2##_type p2
611 #define GMOCK_INTERNAL_DECL_AND_4_VALUE_PARAMS(p0, p1, p2, p3) p0##_type p0, \
612 p1##_type p1, p2##_type p2, p3##_type p3
613 #define GMOCK_INTERNAL_DECL_AND_5_VALUE_PARAMS(p0, p1, p2, p3, \
614 p4) p0##_type p0, p1##_type p1, p2##_type p2, p3##_type p3, p4##_type p4
615 #define GMOCK_INTERNAL_DECL_AND_6_VALUE_PARAMS(p0, p1, p2, p3, p4, \
616 p5) p0##_type p0, p1##_type p1, p2##_type p2, p3##_type p3, p4##_type p4, \
618 #define GMOCK_INTERNAL_DECL_AND_7_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, \
619 p6) p0##_type p0, p1##_type p1, p2##_type p2, p3##_type p3, p4##_type p4, \
620 p5##_type p5, p6##_type p6
621 #define GMOCK_INTERNAL_DECL_AND_8_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
622 p7) p0##_type p0, p1##_type p1, p2##_type p2, p3##_type p3, p4##_type p4, \
623 p5##_type p5, p6##_type p6, p7##_type p7
624 #define GMOCK_INTERNAL_DECL_AND_9_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
625 p7, p8) p0##_type p0, p1##_type p1, p2##_type p2, p3##_type p3, \
626 p4##_type p4, p5##_type p5, p6##_type p6, p7##_type p7, p8##_type p8
627 #define GMOCK_INTERNAL_DECL_AND_10_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
628 p7, p8, p9) p0##_type p0, p1##_type p1, p2##_type p2, p3##_type p3, \
629 p4##_type p4, p5##_type p5, p6##_type p6, p7##_type p7, p8##_type p8, \
633 #define GMOCK_INTERNAL_COUNT_AND_0_VALUE_PARAMS()
634 #define GMOCK_INTERNAL_COUNT_AND_1_VALUE_PARAMS(p0) P
635 #define GMOCK_INTERNAL_COUNT_AND_2_VALUE_PARAMS(p0, p1) P2
636 #define GMOCK_INTERNAL_COUNT_AND_3_VALUE_PARAMS(p0, p1, p2) P3
637 #define GMOCK_INTERNAL_COUNT_AND_4_VALUE_PARAMS(p0, p1, p2, p3) P4
638 #define GMOCK_INTERNAL_COUNT_AND_5_VALUE_PARAMS(p0, p1, p2, p3, p4) P5
639 #define GMOCK_INTERNAL_COUNT_AND_6_VALUE_PARAMS(p0, p1, p2, p3, p4, p5) P6
640 #define GMOCK_INTERNAL_COUNT_AND_7_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6) P7
641 #define GMOCK_INTERNAL_COUNT_AND_8_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
643 #define GMOCK_INTERNAL_COUNT_AND_9_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
645 #define GMOCK_INTERNAL_COUNT_AND_10_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
649 #define GMOCK_ACTION_CLASS_(name, value_params)\
650 GTEST_CONCAT_TOKEN_(name##Action, GMOCK_INTERNAL_COUNT_##value_params)
652 #define ACTION_TEMPLATE(name, template_params, value_params)\
653 template <GMOCK_INTERNAL_DECL_##template_params\
654 GMOCK_INTERNAL_DECL_TYPE_##value_params>\
655 class GMOCK_ACTION_CLASS_(name, value_params) {\
657 explicit GMOCK_ACTION_CLASS_(name, value_params)\
658 GMOCK_INTERNAL_INIT_##value_params {}\
659 template <typename F>\
660 class gmock_Impl : public ::testing::ActionInterface<F> {\
662 typedef F function_type;\
663 typedef typename ::testing::internal::Function<F>::Result return_type;\
664 typedef typename ::testing::internal::Function<F>::ArgumentTuple\
666 explicit gmock_Impl GMOCK_INTERNAL_INIT_##value_params {}\
667 virtual return_type Perform(const args_type& args) {\
668 return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
669 Perform(this, args);\
671 template <typename arg0_type, typename arg1_type, typename arg2_type, \
672 typename arg3_type, typename arg4_type, typename arg5_type, \
673 typename arg6_type, typename arg7_type, typename arg8_type, \
675 return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, \
676 arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, \
677 arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, \
678 arg9_type arg9) const;\
679 GMOCK_INTERNAL_DEFN_##value_params\
681 GTEST_DISALLOW_ASSIGN_(gmock_Impl);\
683 template <typename F> operator ::testing::Action<F>() const {\
684 return ::testing::Action<F>(\
685 new gmock_Impl<F>(GMOCK_INTERNAL_LIST_##value_params));\
687 GMOCK_INTERNAL_DEFN_##value_params\
689 GTEST_DISALLOW_ASSIGN_(GMOCK_ACTION_CLASS_(name, value_params));\
691 template <GMOCK_INTERNAL_DECL_##template_params\
692 GMOCK_INTERNAL_DECL_TYPE_##value_params>\
693 inline GMOCK_ACTION_CLASS_(name, value_params)<\
694 GMOCK_INTERNAL_LIST_##template_params\
695 GMOCK_INTERNAL_LIST_TYPE_##value_params> name(\
696 GMOCK_INTERNAL_DECL_##value_params) {\
697 return GMOCK_ACTION_CLASS_(name, value_params)<\
698 GMOCK_INTERNAL_LIST_##template_params\
699 GMOCK_INTERNAL_LIST_TYPE_##value_params>(\
700 GMOCK_INTERNAL_LIST_##value_params);\
702 template <GMOCK_INTERNAL_DECL_##template_params\
703 GMOCK_INTERNAL_DECL_TYPE_##value_params>\
704 template <typename F>\
705 template <typename arg0_type, typename arg1_type, typename arg2_type, \
706 typename arg3_type, typename arg4_type, typename arg5_type, \
707 typename arg6_type, typename arg7_type, typename arg8_type, \
709 typename ::testing::internal::Function<F>::Result\
710 GMOCK_ACTION_CLASS_(name, value_params)<\
711 GMOCK_INTERNAL_LIST_##template_params\
712 GMOCK_INTERNAL_LIST_TYPE_##value_params>::gmock_Impl<F>::\
714 GMOCK_ACTION_ARG_TYPES_AND_NAMES_UNUSED_) const
716 #define ACTION(name)\
717 class name##Action {\
720 template <typename F>\
721 class gmock_Impl : public ::testing::ActionInterface<F> {\
723 typedef F function_type;\
724 typedef typename ::testing::internal::Function<F>::Result return_type;\
725 typedef typename ::testing::internal::Function<F>::ArgumentTuple\
728 virtual return_type Perform(const args_type& args) {\
729 return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
730 Perform(this, args);\
732 template <typename arg0_type, typename arg1_type, typename arg2_type, \
733 typename arg3_type, typename arg4_type, typename arg5_type, \
734 typename arg6_type, typename arg7_type, typename arg8_type, \
736 return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, \
737 arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, \
738 arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, \
739 arg9_type arg9) const;\
741 GTEST_DISALLOW_ASSIGN_(gmock_Impl);\
743 template <typename F> operator ::testing::Action<F>() const {\
744 return ::testing::Action<F>(new gmock_Impl<F>());\
747 GTEST_DISALLOW_ASSIGN_(name##Action);\
749 inline name##Action name() {\
750 return name##Action();\
752 template <typename F>\
753 template <typename arg0_type, typename arg1_type, typename arg2_type, \
754 typename arg3_type, typename arg4_type, typename arg5_type, \
755 typename arg6_type, typename arg7_type, typename arg8_type, \
757 typename ::testing::internal::Function<F>::Result\
758 name##Action::gmock_Impl<F>::gmock_PerformImpl(\
759 GMOCK_ACTION_ARG_TYPES_AND_NAMES_UNUSED_) const
761 #define ACTION_P(name, p0)\
762 template <typename p0##_type>\
763 class name##ActionP {\
765 explicit name##ActionP(p0##_type gmock_p0) : \
766 p0(::std::forward<p0##_type>(gmock_p0)) {}\
767 template <typename F>\
768 class gmock_Impl : public ::testing::ActionInterface<F> {\
770 typedef F function_type;\
771 typedef typename ::testing::internal::Function<F>::Result return_type;\
772 typedef typename ::testing::internal::Function<F>::ArgumentTuple\
774 explicit gmock_Impl(p0##_type gmock_p0) : \
775 p0(::std::forward<p0##_type>(gmock_p0)) {}\
776 virtual return_type Perform(const args_type& args) {\
777 return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
778 Perform(this, args);\
780 template <typename arg0_type, typename arg1_type, typename arg2_type, \
781 typename arg3_type, typename arg4_type, typename arg5_type, \
782 typename arg6_type, typename arg7_type, typename arg8_type, \
784 return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, \
785 arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, \
786 arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, \
787 arg9_type arg9) const;\
790 GTEST_DISALLOW_ASSIGN_(gmock_Impl);\
792 template <typename F> operator ::testing::Action<F>() const {\
793 return ::testing::Action<F>(new gmock_Impl<F>(p0));\
797 GTEST_DISALLOW_ASSIGN_(name##ActionP);\
799 template <typename p0##_type>\
800 inline name##ActionP<p0##_type> name(p0##_type p0) {\
801 return name##ActionP<p0##_type>(p0);\
803 template <typename p0##_type>\
804 template <typename F>\
805 template <typename arg0_type, typename arg1_type, typename arg2_type, \
806 typename arg3_type, typename arg4_type, typename arg5_type, \
807 typename arg6_type, typename arg7_type, typename arg8_type, \
809 typename ::testing::internal::Function<F>::Result\
810 name##ActionP<p0##_type>::gmock_Impl<F>::gmock_PerformImpl(\
811 GMOCK_ACTION_ARG_TYPES_AND_NAMES_UNUSED_) const
813 #define ACTION_P2(name, p0, p1)\
814 template <typename p0##_type, typename p1##_type>\
815 class name##ActionP2 {\
817 name##ActionP2(p0##_type gmock_p0, \
818 p1##_type gmock_p1) : p0(::std::forward<p0##_type>(gmock_p0)), \
819 p1(::std::forward<p1##_type>(gmock_p1)) {}\
820 template <typename F>\
821 class gmock_Impl : public ::testing::ActionInterface<F> {\
823 typedef F function_type;\
824 typedef typename ::testing::internal::Function<F>::Result return_type;\
825 typedef typename ::testing::internal::Function<F>::ArgumentTuple\
827 gmock_Impl(p0##_type gmock_p0, \
828 p1##_type gmock_p1) : p0(::std::forward<p0##_type>(gmock_p0)), \
829 p1(::std::forward<p1##_type>(gmock_p1)) {}\
830 virtual return_type Perform(const args_type& args) {\
831 return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
832 Perform(this, args);\
834 template <typename arg0_type, typename arg1_type, typename arg2_type, \
835 typename arg3_type, typename arg4_type, typename arg5_type, \
836 typename arg6_type, typename arg7_type, typename arg8_type, \
838 return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, \
839 arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, \
840 arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, \
841 arg9_type arg9) const;\
845 GTEST_DISALLOW_ASSIGN_(gmock_Impl);\
847 template <typename F> operator ::testing::Action<F>() const {\
848 return ::testing::Action<F>(new gmock_Impl<F>(p0, p1));\
853 GTEST_DISALLOW_ASSIGN_(name##ActionP2);\
855 template <typename p0##_type, typename p1##_type>\
856 inline name##ActionP2<p0##_type, p1##_type> name(p0##_type p0, \
858 return name##ActionP2<p0##_type, p1##_type>(p0, p1);\
860 template <typename p0##_type, typename p1##_type>\
861 template <typename F>\
862 template <typename arg0_type, typename arg1_type, typename arg2_type, \
863 typename arg3_type, typename arg4_type, typename arg5_type, \
864 typename arg6_type, typename arg7_type, typename arg8_type, \
866 typename ::testing::internal::Function<F>::Result\
867 name##ActionP2<p0##_type, p1##_type>::gmock_Impl<F>::gmock_PerformImpl(\
868 GMOCK_ACTION_ARG_TYPES_AND_NAMES_UNUSED_) const
870 #define ACTION_P3(name, p0, p1, p2)\
871 template <typename p0##_type, typename p1##_type, typename p2##_type>\
872 class name##ActionP3 {\
874 name##ActionP3(p0##_type gmock_p0, p1##_type gmock_p1, \
875 p2##_type gmock_p2) : p0(::std::forward<p0##_type>(gmock_p0)), \
876 p1(::std::forward<p1##_type>(gmock_p1)), \
877 p2(::std::forward<p2##_type>(gmock_p2)) {}\
878 template <typename F>\
879 class gmock_Impl : public ::testing::ActionInterface<F> {\
881 typedef F function_type;\
882 typedef typename ::testing::internal::Function<F>::Result return_type;\
883 typedef typename ::testing::internal::Function<F>::ArgumentTuple\
885 gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, \
886 p2##_type gmock_p2) : p0(::std::forward<p0##_type>(gmock_p0)), \
887 p1(::std::forward<p1##_type>(gmock_p1)), \
888 p2(::std::forward<p2##_type>(gmock_p2)) {}\
889 virtual return_type Perform(const args_type& args) {\
890 return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
891 Perform(this, args);\
893 template <typename arg0_type, typename arg1_type, typename arg2_type, \
894 typename arg3_type, typename arg4_type, typename arg5_type, \
895 typename arg6_type, typename arg7_type, typename arg8_type, \
897 return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, \
898 arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, \
899 arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, \
900 arg9_type arg9) const;\
905 GTEST_DISALLOW_ASSIGN_(gmock_Impl);\
907 template <typename F> operator ::testing::Action<F>() const {\
908 return ::testing::Action<F>(new gmock_Impl<F>(p0, p1, p2));\
914 GTEST_DISALLOW_ASSIGN_(name##ActionP3);\
916 template <typename p0##_type, typename p1##_type, typename p2##_type>\
917 inline name##ActionP3<p0##_type, p1##_type, p2##_type> name(p0##_type p0, \
918 p1##_type p1, p2##_type p2) {\
919 return name##ActionP3<p0##_type, p1##_type, p2##_type>(p0, p1, p2);\
921 template <typename p0##_type, typename p1##_type, typename p2##_type>\
922 template <typename F>\
923 template <typename arg0_type, typename arg1_type, typename arg2_type, \
924 typename arg3_type, typename arg4_type, typename arg5_type, \
925 typename arg6_type, typename arg7_type, typename arg8_type, \
927 typename ::testing::internal::Function<F>::Result\
928 name##ActionP3<p0##_type, p1##_type, \
929 p2##_type>::gmock_Impl<F>::gmock_PerformImpl(\
930 GMOCK_ACTION_ARG_TYPES_AND_NAMES_UNUSED_) const
932 #define ACTION_P4(name, p0, p1, p2, p3)\
933 template <typename p0##_type, typename p1##_type, typename p2##_type, \
935 class name##ActionP4 {\
937 name##ActionP4(p0##_type gmock_p0, p1##_type gmock_p1, \
938 p2##_type gmock_p2, \
939 p3##_type gmock_p3) : p0(::std::forward<p0##_type>(gmock_p0)), \
940 p1(::std::forward<p1##_type>(gmock_p1)), \
941 p2(::std::forward<p2##_type>(gmock_p2)), \
942 p3(::std::forward<p3##_type>(gmock_p3)) {}\
943 template <typename F>\
944 class gmock_Impl : public ::testing::ActionInterface<F> {\
946 typedef F function_type;\
947 typedef typename ::testing::internal::Function<F>::Result return_type;\
948 typedef typename ::testing::internal::Function<F>::ArgumentTuple\
950 gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
951 p3##_type gmock_p3) : p0(::std::forward<p0##_type>(gmock_p0)), \
952 p1(::std::forward<p1##_type>(gmock_p1)), \
953 p2(::std::forward<p2##_type>(gmock_p2)), \
954 p3(::std::forward<p3##_type>(gmock_p3)) {}\
955 virtual return_type Perform(const args_type& args) {\
956 return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
957 Perform(this, args);\
959 template <typename arg0_type, typename arg1_type, typename arg2_type, \
960 typename arg3_type, typename arg4_type, typename arg5_type, \
961 typename arg6_type, typename arg7_type, typename arg8_type, \
963 return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, \
964 arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, \
965 arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, \
966 arg9_type arg9) const;\
972 GTEST_DISALLOW_ASSIGN_(gmock_Impl);\
974 template <typename F> operator ::testing::Action<F>() const {\
975 return ::testing::Action<F>(new gmock_Impl<F>(p0, p1, p2, p3));\
982 GTEST_DISALLOW_ASSIGN_(name##ActionP4);\
984 template <typename p0##_type, typename p1##_type, typename p2##_type, \
986 inline name##ActionP4<p0##_type, p1##_type, p2##_type, \
987 p3##_type> name(p0##_type p0, p1##_type p1, p2##_type p2, \
989 return name##ActionP4<p0##_type, p1##_type, p2##_type, p3##_type>(p0, p1, \
992 template <typename p0##_type, typename p1##_type, typename p2##_type, \
994 template <typename F>\
995 template <typename arg0_type, typename arg1_type, typename arg2_type, \
996 typename arg3_type, typename arg4_type, typename arg5_type, \
997 typename arg6_type, typename arg7_type, typename arg8_type, \
999 typename ::testing::internal::Function<F>::Result\
1000 name##ActionP4<p0##_type, p1##_type, p2##_type, \
1001 p3##_type>::gmock_Impl<F>::gmock_PerformImpl(\
1002 GMOCK_ACTION_ARG_TYPES_AND_NAMES_UNUSED_) const
1004 #define ACTION_P5(name, p0, p1, p2, p3, p4)\
1005 template <typename p0##_type, typename p1##_type, typename p2##_type, \
1006 typename p3##_type, typename p4##_type>\
1007 class name##ActionP5 {\
1009 name##ActionP5(p0##_type gmock_p0, p1##_type gmock_p1, \
1010 p2##_type gmock_p2, p3##_type gmock_p3, \
1011 p4##_type gmock_p4) : p0(::std::forward<p0##_type>(gmock_p0)), \
1012 p1(::std::forward<p1##_type>(gmock_p1)), \
1013 p2(::std::forward<p2##_type>(gmock_p2)), \
1014 p3(::std::forward<p3##_type>(gmock_p3)), \
1015 p4(::std::forward<p4##_type>(gmock_p4)) {}\
1016 template <typename F>\
1017 class gmock_Impl : public ::testing::ActionInterface<F> {\
1019 typedef F function_type;\
1020 typedef typename ::testing::internal::Function<F>::Result return_type;\
1021 typedef typename ::testing::internal::Function<F>::ArgumentTuple\
1023 gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
1024 p3##_type gmock_p3, \
1025 p4##_type gmock_p4) : p0(::std::forward<p0##_type>(gmock_p0)), \
1026 p1(::std::forward<p1##_type>(gmock_p1)), \
1027 p2(::std::forward<p2##_type>(gmock_p2)), \
1028 p3(::std::forward<p3##_type>(gmock_p3)), \
1029 p4(::std::forward<p4##_type>(gmock_p4)) {}\
1030 virtual return_type Perform(const args_type& args) {\
1031 return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
1032 Perform(this, args);\
1034 template <typename arg0_type, typename arg1_type, typename arg2_type, \
1035 typename arg3_type, typename arg4_type, typename arg5_type, \
1036 typename arg6_type, typename arg7_type, typename arg8_type, \
1037 typename arg9_type>\
1038 return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, \
1039 arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, \
1040 arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, \
1041 arg9_type arg9) const;\
1048 GTEST_DISALLOW_ASSIGN_(gmock_Impl);\
1050 template <typename F> operator ::testing::Action<F>() const {\
1051 return ::testing::Action<F>(new gmock_Impl<F>(p0, p1, p2, p3, p4));\
1059 GTEST_DISALLOW_ASSIGN_(name##ActionP5);\
1061 template <typename p0##_type, typename p1##_type, typename p2##_type, \
1062 typename p3##_type, typename p4##_type>\
1063 inline name##ActionP5<p0##_type, p1##_type, p2##_type, p3##_type, \
1064 p4##_type> name(p0##_type p0, p1##_type p1, p2##_type p2, p3##_type p3, \
1066 return name##ActionP5<p0##_type, p1##_type, p2##_type, p3##_type, \
1067 p4##_type>(p0, p1, p2, p3, p4);\
1069 template <typename p0##_type, typename p1##_type, typename p2##_type, \
1070 typename p3##_type, typename p4##_type>\
1071 template <typename F>\
1072 template <typename arg0_type, typename arg1_type, typename arg2_type, \
1073 typename arg3_type, typename arg4_type, typename arg5_type, \
1074 typename arg6_type, typename arg7_type, typename arg8_type, \
1075 typename arg9_type>\
1076 typename ::testing::internal::Function<F>::Result\
1077 name##ActionP5<p0##_type, p1##_type, p2##_type, p3##_type, \
1078 p4##_type>::gmock_Impl<F>::gmock_PerformImpl(\
1079 GMOCK_ACTION_ARG_TYPES_AND_NAMES_UNUSED_) const
1081 #define ACTION_P6(name, p0, p1, p2, p3, p4, p5)\
1082 template <typename p0##_type, typename p1##_type, typename p2##_type, \
1083 typename p3##_type, typename p4##_type, typename p5##_type>\
1084 class name##ActionP6 {\
1086 name##ActionP6(p0##_type gmock_p0, p1##_type gmock_p1, \
1087 p2##_type gmock_p2, p3##_type gmock_p3, p4##_type gmock_p4, \
1088 p5##_type gmock_p5) : p0(::std::forward<p0##_type>(gmock_p0)), \
1089 p1(::std::forward<p1##_type>(gmock_p1)), \
1090 p2(::std::forward<p2##_type>(gmock_p2)), \
1091 p3(::std::forward<p3##_type>(gmock_p3)), \
1092 p4(::std::forward<p4##_type>(gmock_p4)), \
1093 p5(::std::forward<p5##_type>(gmock_p5)) {}\
1094 template <typename F>\
1095 class gmock_Impl : public ::testing::ActionInterface<F> {\
1097 typedef F function_type;\
1098 typedef typename ::testing::internal::Function<F>::Result return_type;\
1099 typedef typename ::testing::internal::Function<F>::ArgumentTuple\
1101 gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
1102 p3##_type gmock_p3, p4##_type gmock_p4, \
1103 p5##_type gmock_p5) : p0(::std::forward<p0##_type>(gmock_p0)), \
1104 p1(::std::forward<p1##_type>(gmock_p1)), \
1105 p2(::std::forward<p2##_type>(gmock_p2)), \
1106 p3(::std::forward<p3##_type>(gmock_p3)), \
1107 p4(::std::forward<p4##_type>(gmock_p4)), \
1108 p5(::std::forward<p5##_type>(gmock_p5)) {}\
1109 virtual return_type Perform(const args_type& args) {\
1110 return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
1111 Perform(this, args);\
1113 template <typename arg0_type, typename arg1_type, typename arg2_type, \
1114 typename arg3_type, typename arg4_type, typename arg5_type, \
1115 typename arg6_type, typename arg7_type, typename arg8_type, \
1116 typename arg9_type>\
1117 return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, \
1118 arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, \
1119 arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, \
1120 arg9_type arg9) const;\
1128 GTEST_DISALLOW_ASSIGN_(gmock_Impl);\
1130 template <typename F> operator ::testing::Action<F>() const {\
1131 return ::testing::Action<F>(new gmock_Impl<F>(p0, p1, p2, p3, p4, p5));\
1140 GTEST_DISALLOW_ASSIGN_(name##ActionP6);\
1142 template <typename p0##_type, typename p1##_type, typename p2##_type, \
1143 typename p3##_type, typename p4##_type, typename p5##_type>\
1144 inline name##ActionP6<p0##_type, p1##_type, p2##_type, p3##_type, \
1145 p4##_type, p5##_type> name(p0##_type p0, p1##_type p1, p2##_type p2, \
1146 p3##_type p3, p4##_type p4, p5##_type p5) {\
1147 return name##ActionP6<p0##_type, p1##_type, p2##_type, p3##_type, \
1148 p4##_type, p5##_type>(p0, p1, p2, p3, p4, p5);\
1150 template <typename p0##_type, typename p1##_type, typename p2##_type, \
1151 typename p3##_type, typename p4##_type, typename p5##_type>\
1152 template <typename F>\
1153 template <typename arg0_type, typename arg1_type, typename arg2_type, \
1154 typename arg3_type, typename arg4_type, typename arg5_type, \
1155 typename arg6_type, typename arg7_type, typename arg8_type, \
1156 typename arg9_type>\
1157 typename ::testing::internal::Function<F>::Result\
1158 name##ActionP6<p0##_type, p1##_type, p2##_type, p3##_type, p4##_type, \
1159 p5##_type>::gmock_Impl<F>::gmock_PerformImpl(\
1160 GMOCK_ACTION_ARG_TYPES_AND_NAMES_UNUSED_) const
1162 #define ACTION_P7(name, p0, p1, p2, p3, p4, p5, p6)\
1163 template <typename p0##_type, typename p1##_type, typename p2##_type, \
1164 typename p3##_type, typename p4##_type, typename p5##_type, \
1165 typename p6##_type>\
1166 class name##ActionP7 {\
1168 name##ActionP7(p0##_type gmock_p0, p1##_type gmock_p1, \
1169 p2##_type gmock_p2, p3##_type gmock_p3, p4##_type gmock_p4, \
1170 p5##_type gmock_p5, \
1171 p6##_type gmock_p6) : p0(::std::forward<p0##_type>(gmock_p0)), \
1172 p1(::std::forward<p1##_type>(gmock_p1)), \
1173 p2(::std::forward<p2##_type>(gmock_p2)), \
1174 p3(::std::forward<p3##_type>(gmock_p3)), \
1175 p4(::std::forward<p4##_type>(gmock_p4)), \
1176 p5(::std::forward<p5##_type>(gmock_p5)), \
1177 p6(::std::forward<p6##_type>(gmock_p6)) {}\
1178 template <typename F>\
1179 class gmock_Impl : public ::testing::ActionInterface<F> {\
1181 typedef F function_type;\
1182 typedef typename ::testing::internal::Function<F>::Result return_type;\
1183 typedef typename ::testing::internal::Function<F>::ArgumentTuple\
1185 gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
1186 p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5, \
1187 p6##_type gmock_p6) : p0(::std::forward<p0##_type>(gmock_p0)), \
1188 p1(::std::forward<p1##_type>(gmock_p1)), \
1189 p2(::std::forward<p2##_type>(gmock_p2)), \
1190 p3(::std::forward<p3##_type>(gmock_p3)), \
1191 p4(::std::forward<p4##_type>(gmock_p4)), \
1192 p5(::std::forward<p5##_type>(gmock_p5)), \
1193 p6(::std::forward<p6##_type>(gmock_p6)) {}\
1194 virtual return_type Perform(const args_type& args) {\
1195 return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
1196 Perform(this, args);\
1198 template <typename arg0_type, typename arg1_type, typename arg2_type, \
1199 typename arg3_type, typename arg4_type, typename arg5_type, \
1200 typename arg6_type, typename arg7_type, typename arg8_type, \
1201 typename arg9_type>\
1202 return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, \
1203 arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, \
1204 arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, \
1205 arg9_type arg9) const;\
1214 GTEST_DISALLOW_ASSIGN_(gmock_Impl);\
1216 template <typename F> operator ::testing::Action<F>() const {\
1217 return ::testing::Action<F>(new gmock_Impl<F>(p0, p1, p2, p3, p4, p5, \
1228 GTEST_DISALLOW_ASSIGN_(name##ActionP7);\
1230 template <typename p0##_type, typename p1##_type, typename p2##_type, \
1231 typename p3##_type, typename p4##_type, typename p5##_type, \
1232 typename p6##_type>\
1233 inline name##ActionP7<p0##_type, p1##_type, p2##_type, p3##_type, \
1234 p4##_type, p5##_type, p6##_type> name(p0##_type p0, p1##_type p1, \
1235 p2##_type p2, p3##_type p3, p4##_type p4, p5##_type p5, \
1237 return name##ActionP7<p0##_type, p1##_type, p2##_type, p3##_type, \
1238 p4##_type, p5##_type, p6##_type>(p0, p1, p2, p3, p4, p5, p6);\
1240 template <typename p0##_type, typename p1##_type, typename p2##_type, \
1241 typename p3##_type, typename p4##_type, typename p5##_type, \
1242 typename p6##_type>\
1243 template <typename F>\
1244 template <typename arg0_type, typename arg1_type, typename arg2_type, \
1245 typename arg3_type, typename arg4_type, typename arg5_type, \
1246 typename arg6_type, typename arg7_type, typename arg8_type, \
1247 typename arg9_type>\
1248 typename ::testing::internal::Function<F>::Result\
1249 name##ActionP7<p0##_type, p1##_type, p2##_type, p3##_type, p4##_type, \
1250 p5##_type, p6##_type>::gmock_Impl<F>::gmock_PerformImpl(\
1251 GMOCK_ACTION_ARG_TYPES_AND_NAMES_UNUSED_) const
1253 #define ACTION_P8(name, p0, p1, p2, p3, p4, p5, p6, p7)\
1254 template <typename p0##_type, typename p1##_type, typename p2##_type, \
1255 typename p3##_type, typename p4##_type, typename p5##_type, \
1256 typename p6##_type, typename p7##_type>\
1257 class name##ActionP8 {\
1259 name##ActionP8(p0##_type gmock_p0, p1##_type gmock_p1, \
1260 p2##_type gmock_p2, p3##_type gmock_p3, p4##_type gmock_p4, \
1261 p5##_type gmock_p5, p6##_type gmock_p6, \
1262 p7##_type gmock_p7) : p0(::std::forward<p0##_type>(gmock_p0)), \
1263 p1(::std::forward<p1##_type>(gmock_p1)), \
1264 p2(::std::forward<p2##_type>(gmock_p2)), \
1265 p3(::std::forward<p3##_type>(gmock_p3)), \
1266 p4(::std::forward<p4##_type>(gmock_p4)), \
1267 p5(::std::forward<p5##_type>(gmock_p5)), \
1268 p6(::std::forward<p6##_type>(gmock_p6)), \
1269 p7(::std::forward<p7##_type>(gmock_p7)) {}\
1270 template <typename F>\
1271 class gmock_Impl : public ::testing::ActionInterface<F> {\
1273 typedef F function_type;\
1274 typedef typename ::testing::internal::Function<F>::Result return_type;\
1275 typedef typename ::testing::internal::Function<F>::ArgumentTuple\
1277 gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
1278 p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5, \
1279 p6##_type gmock_p6, \
1280 p7##_type gmock_p7) : p0(::std::forward<p0##_type>(gmock_p0)), \
1281 p1(::std::forward<p1##_type>(gmock_p1)), \
1282 p2(::std::forward<p2##_type>(gmock_p2)), \
1283 p3(::std::forward<p3##_type>(gmock_p3)), \
1284 p4(::std::forward<p4##_type>(gmock_p4)), \
1285 p5(::std::forward<p5##_type>(gmock_p5)), \
1286 p6(::std::forward<p6##_type>(gmock_p6)), \
1287 p7(::std::forward<p7##_type>(gmock_p7)) {}\
1288 virtual return_type Perform(const args_type& args) {\
1289 return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
1290 Perform(this, args);\
1292 template <typename arg0_type, typename arg1_type, typename arg2_type, \
1293 typename arg3_type, typename arg4_type, typename arg5_type, \
1294 typename arg6_type, typename arg7_type, typename arg8_type, \
1295 typename arg9_type>\
1296 return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, \
1297 arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, \
1298 arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, \
1299 arg9_type arg9) const;\
1309 GTEST_DISALLOW_ASSIGN_(gmock_Impl);\
1311 template <typename F> operator ::testing::Action<F>() const {\
1312 return ::testing::Action<F>(new gmock_Impl<F>(p0, p1, p2, p3, p4, p5, \
1324 GTEST_DISALLOW_ASSIGN_(name##ActionP8);\
1326 template <typename p0##_type, typename p1##_type, typename p2##_type, \
1327 typename p3##_type, typename p4##_type, typename p5##_type, \
1328 typename p6##_type, typename p7##_type>\
1329 inline name##ActionP8<p0##_type, p1##_type, p2##_type, p3##_type, \
1330 p4##_type, p5##_type, p6##_type, p7##_type> name(p0##_type p0, \
1331 p1##_type p1, p2##_type p2, p3##_type p3, p4##_type p4, p5##_type p5, \
1332 p6##_type p6, p7##_type p7) {\
1333 return name##ActionP8<p0##_type, p1##_type, p2##_type, p3##_type, \
1334 p4##_type, p5##_type, p6##_type, p7##_type>(p0, p1, p2, p3, p4, p5, \
1337 template <typename p0##_type, typename p1##_type, typename p2##_type, \
1338 typename p3##_type, typename p4##_type, typename p5##_type, \
1339 typename p6##_type, typename p7##_type>\
1340 template <typename F>\
1341 template <typename arg0_type, typename arg1_type, typename arg2_type, \
1342 typename arg3_type, typename arg4_type, typename arg5_type, \
1343 typename arg6_type, typename arg7_type, typename arg8_type, \
1344 typename arg9_type>\
1345 typename ::testing::internal::Function<F>::Result\
1346 name##ActionP8<p0##_type, p1##_type, p2##_type, p3##_type, p4##_type, \
1347 p5##_type, p6##_type, \
1348 p7##_type>::gmock_Impl<F>::gmock_PerformImpl(\
1349 GMOCK_ACTION_ARG_TYPES_AND_NAMES_UNUSED_) const
1351 #define ACTION_P9(name, p0, p1, p2, p3, p4, p5, p6, p7, p8)\
1352 template <typename p0##_type, typename p1##_type, typename p2##_type, \
1353 typename p3##_type, typename p4##_type, typename p5##_type, \
1354 typename p6##_type, typename p7##_type, typename p8##_type>\
1355 class name##ActionP9 {\
1357 name##ActionP9(p0##_type gmock_p0, p1##_type gmock_p1, \
1358 p2##_type gmock_p2, p3##_type gmock_p3, p4##_type gmock_p4, \
1359 p5##_type gmock_p5, p6##_type gmock_p6, p7##_type gmock_p7, \
1360 p8##_type gmock_p8) : p0(::std::forward<p0##_type>(gmock_p0)), \
1361 p1(::std::forward<p1##_type>(gmock_p1)), \
1362 p2(::std::forward<p2##_type>(gmock_p2)), \
1363 p3(::std::forward<p3##_type>(gmock_p3)), \
1364 p4(::std::forward<p4##_type>(gmock_p4)), \
1365 p5(::std::forward<p5##_type>(gmock_p5)), \
1366 p6(::std::forward<p6##_type>(gmock_p6)), \
1367 p7(::std::forward<p7##_type>(gmock_p7)), \
1368 p8(::std::forward<p8##_type>(gmock_p8)) {}\
1369 template <typename F>\
1370 class gmock_Impl : public ::testing::ActionInterface<F> {\
1372 typedef F function_type;\
1373 typedef typename ::testing::internal::Function<F>::Result return_type;\
1374 typedef typename ::testing::internal::Function<F>::ArgumentTuple\
1376 gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
1377 p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5, \
1378 p6##_type gmock_p6, p7##_type gmock_p7, \
1379 p8##_type gmock_p8) : p0(::std::forward<p0##_type>(gmock_p0)), \
1380 p1(::std::forward<p1##_type>(gmock_p1)), \
1381 p2(::std::forward<p2##_type>(gmock_p2)), \
1382 p3(::std::forward<p3##_type>(gmock_p3)), \
1383 p4(::std::forward<p4##_type>(gmock_p4)), \
1384 p5(::std::forward<p5##_type>(gmock_p5)), \
1385 p6(::std::forward<p6##_type>(gmock_p6)), \
1386 p7(::std::forward<p7##_type>(gmock_p7)), \
1387 p8(::std::forward<p8##_type>(gmock_p8)) {}\
1388 virtual return_type Perform(const args_type& args) {\
1389 return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
1390 Perform(this, args);\
1392 template <typename arg0_type, typename arg1_type, typename arg2_type, \
1393 typename arg3_type, typename arg4_type, typename arg5_type, \
1394 typename arg6_type, typename arg7_type, typename arg8_type, \
1395 typename arg9_type>\
1396 return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, \
1397 arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, \
1398 arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, \
1399 arg9_type arg9) const;\
1410 GTEST_DISALLOW_ASSIGN_(gmock_Impl);\
1412 template <typename F> operator ::testing::Action<F>() const {\
1413 return ::testing::Action<F>(new gmock_Impl<F>(p0, p1, p2, p3, p4, p5, \
1426 GTEST_DISALLOW_ASSIGN_(name##ActionP9);\
1428 template <typename p0##_type, typename p1##_type, typename p2##_type, \
1429 typename p3##_type, typename p4##_type, typename p5##_type, \
1430 typename p6##_type, typename p7##_type, typename p8##_type>\
1431 inline name##ActionP9<p0##_type, p1##_type, p2##_type, p3##_type, \
1432 p4##_type, p5##_type, p6##_type, p7##_type, \
1433 p8##_type> name(p0##_type p0, p1##_type p1, p2##_type p2, p3##_type p3, \
1434 p4##_type p4, p5##_type p5, p6##_type p6, p7##_type p7, \
1436 return name##ActionP9<p0##_type, p1##_type, p2##_type, p3##_type, \
1437 p4##_type, p5##_type, p6##_type, p7##_type, p8##_type>(p0, p1, p2, \
1438 p3, p4, p5, p6, p7, p8);\
1440 template <typename p0##_type, typename p1##_type, typename p2##_type, \
1441 typename p3##_type, typename p4##_type, typename p5##_type, \
1442 typename p6##_type, typename p7##_type, typename p8##_type>\
1443 template <typename F>\
1444 template <typename arg0_type, typename arg1_type, typename arg2_type, \
1445 typename arg3_type, typename arg4_type, typename arg5_type, \
1446 typename arg6_type, typename arg7_type, typename arg8_type, \
1447 typename arg9_type>\
1448 typename ::testing::internal::Function<F>::Result\
1449 name##ActionP9<p0##_type, p1##_type, p2##_type, p3##_type, p4##_type, \
1450 p5##_type, p6##_type, p7##_type, \
1451 p8##_type>::gmock_Impl<F>::gmock_PerformImpl(\
1452 GMOCK_ACTION_ARG_TYPES_AND_NAMES_UNUSED_) const
1454 #define ACTION_P10(name, p0, p1, p2, p3, p4, p5, p6, p7, p8, p9)\
1455 template <typename p0##_type, typename p1##_type, typename p2##_type, \
1456 typename p3##_type, typename p4##_type, typename p5##_type, \
1457 typename p6##_type, typename p7##_type, typename p8##_type, \
1458 typename p9##_type>\
1459 class name##ActionP10 {\
1461 name##ActionP10(p0##_type gmock_p0, p1##_type gmock_p1, \
1462 p2##_type gmock_p2, p3##_type gmock_p3, p4##_type gmock_p4, \
1463 p5##_type gmock_p5, p6##_type gmock_p6, p7##_type gmock_p7, \
1464 p8##_type gmock_p8, \
1465 p9##_type gmock_p9) : p0(::std::forward<p0##_type>(gmock_p0)), \
1466 p1(::std::forward<p1##_type>(gmock_p1)), \
1467 p2(::std::forward<p2##_type>(gmock_p2)), \
1468 p3(::std::forward<p3##_type>(gmock_p3)), \
1469 p4(::std::forward<p4##_type>(gmock_p4)), \
1470 p5(::std::forward<p5##_type>(gmock_p5)), \
1471 p6(::std::forward<p6##_type>(gmock_p6)), \
1472 p7(::std::forward<p7##_type>(gmock_p7)), \
1473 p8(::std::forward<p8##_type>(gmock_p8)), \
1474 p9(::std::forward<p9##_type>(gmock_p9)) {}\
1475 template <typename F>\
1476 class gmock_Impl : public ::testing::ActionInterface<F> {\
1478 typedef F function_type;\
1479 typedef typename ::testing::internal::Function<F>::Result return_type;\
1480 typedef typename ::testing::internal::Function<F>::ArgumentTuple\
1482 gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
1483 p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5, \
1484 p6##_type gmock_p6, p7##_type gmock_p7, p8##_type gmock_p8, \
1485 p9##_type gmock_p9) : p0(::std::forward<p0##_type>(gmock_p0)), \
1486 p1(::std::forward<p1##_type>(gmock_p1)), \
1487 p2(::std::forward<p2##_type>(gmock_p2)), \
1488 p3(::std::forward<p3##_type>(gmock_p3)), \
1489 p4(::std::forward<p4##_type>(gmock_p4)), \
1490 p5(::std::forward<p5##_type>(gmock_p5)), \
1491 p6(::std::forward<p6##_type>(gmock_p6)), \
1492 p7(::std::forward<p7##_type>(gmock_p7)), \
1493 p8(::std::forward<p8##_type>(gmock_p8)), \
1494 p9(::std::forward<p9##_type>(gmock_p9)) {}\
1495 virtual return_type Perform(const args_type& args) {\
1496 return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
1497 Perform(this, args);\
1499 template <typename arg0_type, typename arg1_type, typename arg2_type, \
1500 typename arg3_type, typename arg4_type, typename arg5_type, \
1501 typename arg6_type, typename arg7_type, typename arg8_type, \
1502 typename arg9_type>\
1503 return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, \
1504 arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, \
1505 arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, \
1506 arg9_type arg9) const;\
1518 GTEST_DISALLOW_ASSIGN_(gmock_Impl);\
1520 template <typename F> operator ::testing::Action<F>() const {\
1521 return ::testing::Action<F>(new gmock_Impl<F>(p0, p1, p2, p3, p4, p5, \
1535 GTEST_DISALLOW_ASSIGN_(name##ActionP10);\
1537 template <typename p0##_type, typename p1##_type, typename p2##_type, \
1538 typename p3##_type, typename p4##_type, typename p5##_type, \
1539 typename p6##_type, typename p7##_type, typename p8##_type, \
1540 typename p9##_type>\
1541 inline name##ActionP10<p0##_type, p1##_type, p2##_type, p3##_type, \
1542 p4##_type, p5##_type, p6##_type, p7##_type, p8##_type, \
1543 p9##_type> name(p0##_type p0, p1##_type p1, p2##_type p2, p3##_type p3, \
1544 p4##_type p4, p5##_type p5, p6##_type p6, p7##_type p7, p8##_type p8, \
1546 return name##ActionP10<p0##_type, p1##_type, p2##_type, p3##_type, \
1547 p4##_type, p5##_type, p6##_type, p7##_type, p8##_type, p9##_type>(p0, \
1548 p1, p2, p3, p4, p5, p6, p7, p8, p9);\
1550 template <typename p0##_type, typename p1##_type, typename p2##_type, \
1551 typename p3##_type, typename p4##_type, typename p5##_type, \
1552 typename p6##_type, typename p7##_type, typename p8##_type, \
1553 typename p9##_type>\
1554 template <typename F>\
1555 template <typename arg0_type, typename arg1_type, typename arg2_type, \
1556 typename arg3_type, typename arg4_type, typename arg5_type, \
1557 typename arg6_type, typename arg7_type, typename arg8_type, \
1558 typename arg9_type>\
1559 typename ::testing::internal::Function<F>::Result\
1560 name##ActionP10<p0##_type, p1##_type, p2##_type, p3##_type, p4##_type, \
1561 p5##_type, p6##_type, p7##_type, p8##_type, \
1562 p9##_type>::gmock_Impl<F>::gmock_PerformImpl(\
1563 GMOCK_ACTION_ARG_TYPES_AND_NAMES_UNUSED_) const
1574 # pragma warning(push)
1575 # pragma warning(disable:4100)
1609 namespace invoke_argument {
1620 template <
typename R,
typename F>
1624 template <
typename R,
typename F,
typename A1>
1628 template <
typename R,
typename F,
typename A1,
typename A2>
1632 template <
typename R,
typename F,
typename A1,
typename A2,
typename A3>
1634 return f(a1, a2, a3);
1636 template <
typename R,
typename F,
typename A1,
typename A2,
typename A3,
1639 return f(a1, a2, a3, a4);
1641 template <
typename R,
typename F,
typename A1,
typename A2,
typename A3,
1642 typename A4,
typename A5>
1644 return f(a1, a2, a3, a4, a5);
1646 template <
typename R,
typename F,
typename A1,
typename A2,
typename A3,
1647 typename A4,
typename A5,
typename A6>
1649 return f(a1, a2, a3, a4, a5, a6);
1651 template <
typename R,
typename F,
typename A1,
typename A2,
typename A3,
1652 typename A4,
typename A5,
typename A6,
typename A7>
1655 return f(a1, a2, a3, a4, a5, a6, a7);
1657 template <
typename R,
typename F,
typename A1,
typename A2,
typename A3,
1658 typename A4,
typename A5,
typename A6,
typename A7,
typename A8>
1661 return f(a1, a2, a3, a4, a5, a6, a7, a8);
1663 template <
typename R,
typename F,
typename A1,
typename A2,
typename A3,
1664 typename A4,
typename A5,
typename A6,
typename A7,
typename A8,
1667 A7 a7, A8 a8, A9 a9) {
1668 return f(a1, a2, a3, a4, a5, a6, a7, a8, a9);
1670 template <
typename R,
typename F,
typename A1,
typename A2,
typename A3,
1671 typename A4,
typename A5,
typename A6,
typename A7,
typename A8,
1672 typename A9,
typename A10>
1674 A7 a7, A8 a8, A9 a9, A10 a10) {
1675 return f(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10);
1681 HAS_1_TEMPLATE_PARAMS(
int, k),
1682 AND_0_VALUE_PARAMS()) {
1684 return InvokeArgumentAdl<return_type>(
1686 ::std::get<k>(
args));
1690 HAS_1_TEMPLATE_PARAMS(
int, k),
1691 AND_1_VALUE_PARAMS(p0)) {
1693 return InvokeArgumentAdl<return_type>(
1695 ::std::get<k>(
args), p0);
1699 HAS_1_TEMPLATE_PARAMS(
int, k),
1700 AND_2_VALUE_PARAMS(p0, p1)) {
1702 return InvokeArgumentAdl<return_type>(
1704 ::std::get<k>(
args), p0, p1);
1708 HAS_1_TEMPLATE_PARAMS(
int, k),
1709 AND_3_VALUE_PARAMS(p0, p1, p2)) {
1711 return InvokeArgumentAdl<return_type>(
1713 ::std::get<k>(
args), p0, p1, p2);
1717 HAS_1_TEMPLATE_PARAMS(
int, k),
1718 AND_4_VALUE_PARAMS(p0, p1, p2, p3)) {
1720 return InvokeArgumentAdl<return_type>(
1722 ::std::get<k>(
args), p0, p1, p2, p3);
1726 HAS_1_TEMPLATE_PARAMS(
int, k),
1727 AND_5_VALUE_PARAMS(p0, p1, p2, p3, p4)) {
1729 return InvokeArgumentAdl<return_type>(
1731 ::std::get<k>(
args), p0, p1, p2, p3, p4);
1735 HAS_1_TEMPLATE_PARAMS(
int, k),
1736 AND_6_VALUE_PARAMS(p0, p1, p2, p3, p4, p5)) {
1738 return InvokeArgumentAdl<return_type>(
1740 ::std::get<k>(
args), p0, p1, p2, p3, p4, p5);
1744 HAS_1_TEMPLATE_PARAMS(
int, k),
1745 AND_7_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6)) {
1747 return InvokeArgumentAdl<return_type>(
1749 ::std::get<k>(
args), p0, p1, p2, p3, p4, p5, p6);
1753 HAS_1_TEMPLATE_PARAMS(
int, k),
1754 AND_8_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, p7)) {
1756 return InvokeArgumentAdl<return_type>(
1758 ::std::get<k>(
args), p0, p1, p2, p3, p4, p5, p6, p7);
1762 HAS_1_TEMPLATE_PARAMS(
int, k),
1763 AND_9_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, p7, p8)) {
1765 return InvokeArgumentAdl<return_type>(
1767 ::std::get<k>(
args), p0, p1, p2, p3, p4, p5, p6, p7, p8);
1771 HAS_1_TEMPLATE_PARAMS(
int, k),
1772 AND_10_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9)) {
1774 return InvokeArgumentAdl<return_type>(
1776 ::std::get<k>(
args), p0, p1, p2, p3, p4, p5, p6, p7, p8, p9);
1785 HAS_1_TEMPLATE_PARAMS(
typename,
T),
1786 AND_0_VALUE_PARAMS()) {
1791 HAS_1_TEMPLATE_PARAMS(
typename,
T),
1792 AND_1_VALUE_PARAMS(p0)) {
1797 HAS_1_TEMPLATE_PARAMS(
typename,
T),
1798 AND_2_VALUE_PARAMS(p0, p1)) {
1799 return new T(p0, p1);
1803 HAS_1_TEMPLATE_PARAMS(
typename,
T),
1804 AND_3_VALUE_PARAMS(p0, p1, p2)) {
1805 return new T(p0, p1, p2);
1809 HAS_1_TEMPLATE_PARAMS(
typename,
T),
1810 AND_4_VALUE_PARAMS(p0, p1, p2, p3)) {
1811 return new T(p0, p1, p2, p3);
1815 HAS_1_TEMPLATE_PARAMS(
typename,
T),
1816 AND_5_VALUE_PARAMS(p0, p1, p2, p3, p4)) {
1817 return new T(p0, p1, p2, p3, p4);
1821 HAS_1_TEMPLATE_PARAMS(
typename,
T),
1822 AND_6_VALUE_PARAMS(p0, p1, p2, p3, p4, p5)) {
1823 return new T(p0, p1, p2, p3, p4, p5);
1827 HAS_1_TEMPLATE_PARAMS(
typename,
T),
1828 AND_7_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6)) {
1829 return new T(p0, p1, p2, p3, p4, p5, p6);
1833 HAS_1_TEMPLATE_PARAMS(
typename,
T),
1834 AND_8_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, p7)) {
1835 return new T(p0, p1, p2, p3, p4, p5, p6, p7);
1839 HAS_1_TEMPLATE_PARAMS(
typename,
T),
1840 AND_9_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, p7, p8)) {
1841 return new T(p0, p1, p2, p3, p4, p5, p6, p7, p8);
1845 HAS_1_TEMPLATE_PARAMS(
typename,
T),
1846 AND_10_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9)) {
1847 return new T(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9);
1851 # pragma warning(pop)
1861 #endif // GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_ACTIONS_H_