40 #ifndef GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_FUNCTION_MOCKERS_H_ 41 #define GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_FUNCTION_MOCKERS_H_ 68 return this->current_spec();
76 return this->InvokeWith(ArgumentTuple());
80 template <
typename R,
typename A1>
89 return this->current_spec();
97 return this->InvokeWith(ArgumentTuple(a1));
101 template <
typename R,
typename A1,
typename A2>
110 return this->current_spec();
118 return this->InvokeWith(ArgumentTuple(a1, a2));
122 template <
typename R,
typename A1,
typename A2,
typename A3>
126 typedef R F(A1, A2, A3);
132 return this->current_spec();
140 return this->InvokeWith(ArgumentTuple(a1, a2, a3));
144 template <
typename R,
typename A1,
typename A2,
typename A3,
typename A4>
148 typedef R F(A1, A2, A3, A4);
154 return this->current_spec();
162 return this->InvokeWith(ArgumentTuple(a1, a2, a3, a4));
166 template <
typename R,
typename A1,
typename A2,
typename A3,
typename A4,
171 typedef R F(A1, A2, A3, A4, A5);
178 return this->current_spec();
186 return this->InvokeWith(ArgumentTuple(a1, a2, a3, a4, a5));
190 template <
typename R,
typename A1,
typename A2,
typename A3,
typename A4,
191 typename A5,
typename A6>
195 typedef R F(A1, A2, A3, A4, A5, A6);
203 return this->current_spec();
206 R Invoke(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6) {
211 return this->InvokeWith(ArgumentTuple(a1, a2, a3, a4, a5, a6));
215 template <
typename R,
typename A1,
typename A2,
typename A3,
typename A4,
216 typename A5,
typename A6,
typename A7>
220 typedef R F(A1, A2, A3, A4, A5, A6, A7);
228 return this->current_spec();
231 R Invoke(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7) {
236 return this->InvokeWith(ArgumentTuple(a1, a2, a3, a4, a5, a6, a7));
240 template <
typename R,
typename A1,
typename A2,
typename A3,
typename A4,
241 typename A5,
typename A6,
typename A7,
typename A8>
245 typedef R F(A1, A2, A3, A4, A5, A6, A7, A8);
253 return this->current_spec();
256 R Invoke(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8) {
261 return this->InvokeWith(ArgumentTuple(a1, a2, a3, a4, a5, a6, a7, a8));
265 template <
typename R,
typename A1,
typename A2,
typename A3,
typename A4,
266 typename A5,
typename A6,
typename A7,
typename A8,
typename A9>
270 typedef R F(A1, A2, A3, A4, A5, A6, A7, A8, A9);
279 return this->current_spec();
282 R Invoke(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9) {
287 return this->InvokeWith(ArgumentTuple(a1, a2, a3, a4, a5, a6, a7, a8, a9));
291 template <
typename R,
typename A1,
typename A2,
typename A3,
typename A4,
292 typename A5,
typename A6,
typename A7,
typename A8,
typename A9,
297 typedef R F(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10);
305 m6, m7, m8, m9, m10));
306 return this->current_spec();
309 R Invoke(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9,
315 return this->InvokeWith(ArgumentTuple(a1, a2, a3, a4, a5, a6, a7, a8, a9,
331 #define GMOCK_RESULT_(tn, F) tn ::testing::internal::Function<F>::Result 335 #define GMOCK_ARG_(tn, F, N) tn ::testing::internal::Function<F>::Argument##N 339 #define GMOCK_MATCHER_(tn, F, N) const ::testing::Matcher<GMOCK_ARG_(tn, F, N)>& 343 #define GMOCK_MOCKER_(arity, constness, Method) \ 344 GTEST_CONCAT_TOKEN_(gmock##constness##arity##_##Method##_, __LINE__) 347 #define GMOCK_METHOD0_(tn, constness, ct, Method, F) \ 348 GMOCK_RESULT_(tn, F) ct Method() constness { \ 349 GTEST_COMPILE_ASSERT_(::std::tr1::tuple_size< \ 350 tn ::testing::internal::Function<F>::ArgumentTuple>::value == 0, \ 351 this_method_does_not_take_0_arguments); \ 352 GMOCK_MOCKER_(0, constness, Method).SetOwnerAndName(this, #Method); \ 353 return GMOCK_MOCKER_(0, constness, Method).Invoke(); \ 355 ::testing::MockSpec<F>& \ 356 gmock_##Method() constness { \ 357 GMOCK_MOCKER_(0, constness, Method).RegisterOwner(this); \ 358 return GMOCK_MOCKER_(0, constness, Method).With(); \ 360 mutable ::testing::FunctionMocker<F> GMOCK_MOCKER_(0, constness, Method) 363 #define GMOCK_METHOD1_(tn, constness, ct, Method, F) \ 364 GMOCK_RESULT_(tn, F) ct Method(GMOCK_ARG_(tn, F, 1) gmock_a1) constness { \ 365 GTEST_COMPILE_ASSERT_(::std::tr1::tuple_size< \ 366 tn ::testing::internal::Function<F>::ArgumentTuple>::value == 1, \ 367 this_method_does_not_take_1_argument); \ 368 GMOCK_MOCKER_(1, constness, Method).SetOwnerAndName(this, #Method); \ 369 return GMOCK_MOCKER_(1, constness, Method).Invoke(gmock_a1); \ 371 ::testing::MockSpec<F>& \ 372 gmock_##Method(GMOCK_MATCHER_(tn, F, 1) gmock_a1) constness { \ 373 GMOCK_MOCKER_(1, constness, Method).RegisterOwner(this); \ 374 return GMOCK_MOCKER_(1, constness, Method).With(gmock_a1); \ 376 mutable ::testing::FunctionMocker<F> GMOCK_MOCKER_(1, constness, Method) 379 #define GMOCK_METHOD2_(tn, constness, ct, Method, F) \ 380 GMOCK_RESULT_(tn, F) ct Method(GMOCK_ARG_(tn, F, 1) gmock_a1, \ 381 GMOCK_ARG_(tn, F, 2) gmock_a2) constness { \ 382 GTEST_COMPILE_ASSERT_(::std::tr1::tuple_size< \ 383 tn ::testing::internal::Function<F>::ArgumentTuple>::value == 2, \ 384 this_method_does_not_take_2_arguments); \ 385 GMOCK_MOCKER_(2, constness, Method).SetOwnerAndName(this, #Method); \ 386 return GMOCK_MOCKER_(2, constness, Method).Invoke(gmock_a1, gmock_a2); \ 388 ::testing::MockSpec<F>& \ 389 gmock_##Method(GMOCK_MATCHER_(tn, F, 1) gmock_a1, \ 390 GMOCK_MATCHER_(tn, F, 2) gmock_a2) constness { \ 391 GMOCK_MOCKER_(2, constness, Method).RegisterOwner(this); \ 392 return GMOCK_MOCKER_(2, constness, Method).With(gmock_a1, gmock_a2); \ 394 mutable ::testing::FunctionMocker<F> GMOCK_MOCKER_(2, constness, Method) 397 #define GMOCK_METHOD3_(tn, constness, ct, Method, F) \ 398 GMOCK_RESULT_(tn, F) ct Method(GMOCK_ARG_(tn, F, 1) gmock_a1, \ 399 GMOCK_ARG_(tn, F, 2) gmock_a2, \ 400 GMOCK_ARG_(tn, F, 3) gmock_a3) constness { \ 401 GTEST_COMPILE_ASSERT_(::std::tr1::tuple_size< \ 402 tn ::testing::internal::Function<F>::ArgumentTuple>::value == 3, \ 403 this_method_does_not_take_3_arguments); \ 404 GMOCK_MOCKER_(3, constness, Method).SetOwnerAndName(this, #Method); \ 405 return GMOCK_MOCKER_(3, constness, Method).Invoke(gmock_a1, gmock_a2, \ 408 ::testing::MockSpec<F>& \ 409 gmock_##Method(GMOCK_MATCHER_(tn, F, 1) gmock_a1, \ 410 GMOCK_MATCHER_(tn, F, 2) gmock_a2, \ 411 GMOCK_MATCHER_(tn, F, 3) gmock_a3) constness { \ 412 GMOCK_MOCKER_(3, constness, Method).RegisterOwner(this); \ 413 return GMOCK_MOCKER_(3, constness, Method).With(gmock_a1, gmock_a2, \ 416 mutable ::testing::FunctionMocker<F> GMOCK_MOCKER_(3, constness, Method) 419 #define GMOCK_METHOD4_(tn, constness, ct, Method, F) \ 420 GMOCK_RESULT_(tn, F) ct Method(GMOCK_ARG_(tn, F, 1) gmock_a1, \ 421 GMOCK_ARG_(tn, F, 2) gmock_a2, \ 422 GMOCK_ARG_(tn, F, 3) gmock_a3, \ 423 GMOCK_ARG_(tn, F, 4) gmock_a4) constness { \ 424 GTEST_COMPILE_ASSERT_(::std::tr1::tuple_size< \ 425 tn ::testing::internal::Function<F>::ArgumentTuple>::value == 4, \ 426 this_method_does_not_take_4_arguments); \ 427 GMOCK_MOCKER_(4, constness, Method).SetOwnerAndName(this, #Method); \ 428 return GMOCK_MOCKER_(4, constness, Method).Invoke(gmock_a1, gmock_a2, \ 429 gmock_a3, gmock_a4); \ 431 ::testing::MockSpec<F>& \ 432 gmock_##Method(GMOCK_MATCHER_(tn, F, 1) gmock_a1, \ 433 GMOCK_MATCHER_(tn, F, 2) gmock_a2, \ 434 GMOCK_MATCHER_(tn, F, 3) gmock_a3, \ 435 GMOCK_MATCHER_(tn, F, 4) gmock_a4) constness { \ 436 GMOCK_MOCKER_(4, constness, Method).RegisterOwner(this); \ 437 return GMOCK_MOCKER_(4, constness, Method).With(gmock_a1, gmock_a2, \ 438 gmock_a3, gmock_a4); \ 440 mutable ::testing::FunctionMocker<F> GMOCK_MOCKER_(4, constness, Method) 443 #define GMOCK_METHOD5_(tn, constness, ct, Method, F) \ 444 GMOCK_RESULT_(tn, F) ct Method(GMOCK_ARG_(tn, F, 1) gmock_a1, \ 445 GMOCK_ARG_(tn, F, 2) gmock_a2, \ 446 GMOCK_ARG_(tn, F, 3) gmock_a3, \ 447 GMOCK_ARG_(tn, F, 4) gmock_a4, \ 448 GMOCK_ARG_(tn, F, 5) gmock_a5) constness { \ 449 GTEST_COMPILE_ASSERT_(::std::tr1::tuple_size< \ 450 tn ::testing::internal::Function<F>::ArgumentTuple>::value == 5, \ 451 this_method_does_not_take_5_arguments); \ 452 GMOCK_MOCKER_(5, constness, Method).SetOwnerAndName(this, #Method); \ 453 return GMOCK_MOCKER_(5, constness, Method).Invoke(gmock_a1, gmock_a2, \ 454 gmock_a3, gmock_a4, gmock_a5); \ 456 ::testing::MockSpec<F>& \ 457 gmock_##Method(GMOCK_MATCHER_(tn, F, 1) gmock_a1, \ 458 GMOCK_MATCHER_(tn, F, 2) gmock_a2, \ 459 GMOCK_MATCHER_(tn, F, 3) gmock_a3, \ 460 GMOCK_MATCHER_(tn, F, 4) gmock_a4, \ 461 GMOCK_MATCHER_(tn, F, 5) gmock_a5) constness { \ 462 GMOCK_MOCKER_(5, constness, Method).RegisterOwner(this); \ 463 return GMOCK_MOCKER_(5, constness, Method).With(gmock_a1, gmock_a2, \ 464 gmock_a3, gmock_a4, gmock_a5); \ 466 mutable ::testing::FunctionMocker<F> GMOCK_MOCKER_(5, constness, Method) 469 #define GMOCK_METHOD6_(tn, constness, ct, Method, F) \ 470 GMOCK_RESULT_(tn, F) ct Method(GMOCK_ARG_(tn, F, 1) gmock_a1, \ 471 GMOCK_ARG_(tn, F, 2) gmock_a2, \ 472 GMOCK_ARG_(tn, F, 3) gmock_a3, \ 473 GMOCK_ARG_(tn, F, 4) gmock_a4, \ 474 GMOCK_ARG_(tn, F, 5) gmock_a5, \ 475 GMOCK_ARG_(tn, F, 6) gmock_a6) constness { \ 476 GTEST_COMPILE_ASSERT_(::std::tr1::tuple_size< \ 477 tn ::testing::internal::Function<F>::ArgumentTuple>::value == 6, \ 478 this_method_does_not_take_6_arguments); \ 479 GMOCK_MOCKER_(6, constness, Method).SetOwnerAndName(this, #Method); \ 480 return GMOCK_MOCKER_(6, constness, Method).Invoke(gmock_a1, gmock_a2, \ 481 gmock_a3, gmock_a4, gmock_a5, gmock_a6); \ 483 ::testing::MockSpec<F>& \ 484 gmock_##Method(GMOCK_MATCHER_(tn, F, 1) gmock_a1, \ 485 GMOCK_MATCHER_(tn, F, 2) gmock_a2, \ 486 GMOCK_MATCHER_(tn, F, 3) gmock_a3, \ 487 GMOCK_MATCHER_(tn, F, 4) gmock_a4, \ 488 GMOCK_MATCHER_(tn, F, 5) gmock_a5, \ 489 GMOCK_MATCHER_(tn, F, 6) gmock_a6) constness { \ 490 GMOCK_MOCKER_(6, constness, Method).RegisterOwner(this); \ 491 return GMOCK_MOCKER_(6, constness, Method).With(gmock_a1, gmock_a2, \ 492 gmock_a3, gmock_a4, gmock_a5, gmock_a6); \ 494 mutable ::testing::FunctionMocker<F> GMOCK_MOCKER_(6, constness, Method) 497 #define GMOCK_METHOD7_(tn, constness, ct, Method, F) \ 498 GMOCK_RESULT_(tn, F) ct Method(GMOCK_ARG_(tn, F, 1) gmock_a1, \ 499 GMOCK_ARG_(tn, F, 2) gmock_a2, \ 500 GMOCK_ARG_(tn, F, 3) gmock_a3, \ 501 GMOCK_ARG_(tn, F, 4) gmock_a4, \ 502 GMOCK_ARG_(tn, F, 5) gmock_a5, \ 503 GMOCK_ARG_(tn, F, 6) gmock_a6, \ 504 GMOCK_ARG_(tn, F, 7) gmock_a7) constness { \ 505 GTEST_COMPILE_ASSERT_(::std::tr1::tuple_size< \ 506 tn ::testing::internal::Function<F>::ArgumentTuple>::value == 7, \ 507 this_method_does_not_take_7_arguments); \ 508 GMOCK_MOCKER_(7, constness, Method).SetOwnerAndName(this, #Method); \ 509 return GMOCK_MOCKER_(7, constness, Method).Invoke(gmock_a1, gmock_a2, \ 510 gmock_a3, gmock_a4, gmock_a5, gmock_a6, gmock_a7); \ 512 ::testing::MockSpec<F>& \ 513 gmock_##Method(GMOCK_MATCHER_(tn, F, 1) gmock_a1, \ 514 GMOCK_MATCHER_(tn, F, 2) gmock_a2, \ 515 GMOCK_MATCHER_(tn, F, 3) gmock_a3, \ 516 GMOCK_MATCHER_(tn, F, 4) gmock_a4, \ 517 GMOCK_MATCHER_(tn, F, 5) gmock_a5, \ 518 GMOCK_MATCHER_(tn, F, 6) gmock_a6, \ 519 GMOCK_MATCHER_(tn, F, 7) gmock_a7) constness { \ 520 GMOCK_MOCKER_(7, constness, Method).RegisterOwner(this); \ 521 return GMOCK_MOCKER_(7, constness, Method).With(gmock_a1, gmock_a2, \ 522 gmock_a3, gmock_a4, gmock_a5, gmock_a6, gmock_a7); \ 524 mutable ::testing::FunctionMocker<F> GMOCK_MOCKER_(7, constness, Method) 527 #define GMOCK_METHOD8_(tn, constness, ct, Method, F) \ 528 GMOCK_RESULT_(tn, F) ct Method(GMOCK_ARG_(tn, F, 1) gmock_a1, \ 529 GMOCK_ARG_(tn, F, 2) gmock_a2, \ 530 GMOCK_ARG_(tn, F, 3) gmock_a3, \ 531 GMOCK_ARG_(tn, F, 4) gmock_a4, \ 532 GMOCK_ARG_(tn, F, 5) gmock_a5, \ 533 GMOCK_ARG_(tn, F, 6) gmock_a6, \ 534 GMOCK_ARG_(tn, F, 7) gmock_a7, \ 535 GMOCK_ARG_(tn, F, 8) gmock_a8) constness { \ 536 GTEST_COMPILE_ASSERT_(::std::tr1::tuple_size< \ 537 tn ::testing::internal::Function<F>::ArgumentTuple>::value == 8, \ 538 this_method_does_not_take_8_arguments); \ 539 GMOCK_MOCKER_(8, constness, Method).SetOwnerAndName(this, #Method); \ 540 return GMOCK_MOCKER_(8, constness, Method).Invoke(gmock_a1, gmock_a2, \ 541 gmock_a3, gmock_a4, gmock_a5, gmock_a6, gmock_a7, gmock_a8); \ 543 ::testing::MockSpec<F>& \ 544 gmock_##Method(GMOCK_MATCHER_(tn, F, 1) gmock_a1, \ 545 GMOCK_MATCHER_(tn, F, 2) gmock_a2, \ 546 GMOCK_MATCHER_(tn, F, 3) gmock_a3, \ 547 GMOCK_MATCHER_(tn, F, 4) gmock_a4, \ 548 GMOCK_MATCHER_(tn, F, 5) gmock_a5, \ 549 GMOCK_MATCHER_(tn, F, 6) gmock_a6, \ 550 GMOCK_MATCHER_(tn, F, 7) gmock_a7, \ 551 GMOCK_MATCHER_(tn, F, 8) gmock_a8) constness { \ 552 GMOCK_MOCKER_(8, constness, Method).RegisterOwner(this); \ 553 return GMOCK_MOCKER_(8, constness, Method).With(gmock_a1, gmock_a2, \ 554 gmock_a3, gmock_a4, gmock_a5, gmock_a6, gmock_a7, gmock_a8); \ 556 mutable ::testing::FunctionMocker<F> GMOCK_MOCKER_(8, constness, Method) 559 #define GMOCK_METHOD9_(tn, constness, ct, Method, F) \ 560 GMOCK_RESULT_(tn, F) ct Method(GMOCK_ARG_(tn, F, 1) gmock_a1, \ 561 GMOCK_ARG_(tn, F, 2) gmock_a2, \ 562 GMOCK_ARG_(tn, F, 3) gmock_a3, \ 563 GMOCK_ARG_(tn, F, 4) gmock_a4, \ 564 GMOCK_ARG_(tn, F, 5) gmock_a5, \ 565 GMOCK_ARG_(tn, F, 6) gmock_a6, \ 566 GMOCK_ARG_(tn, F, 7) gmock_a7, \ 567 GMOCK_ARG_(tn, F, 8) gmock_a8, \ 568 GMOCK_ARG_(tn, F, 9) gmock_a9) constness { \ 569 GTEST_COMPILE_ASSERT_(::std::tr1::tuple_size< \ 570 tn ::testing::internal::Function<F>::ArgumentTuple>::value == 9, \ 571 this_method_does_not_take_9_arguments); \ 572 GMOCK_MOCKER_(9, constness, Method).SetOwnerAndName(this, #Method); \ 573 return GMOCK_MOCKER_(9, constness, Method).Invoke(gmock_a1, gmock_a2, \ 574 gmock_a3, gmock_a4, gmock_a5, gmock_a6, gmock_a7, gmock_a8, \ 577 ::testing::MockSpec<F>& \ 578 gmock_##Method(GMOCK_MATCHER_(tn, F, 1) gmock_a1, \ 579 GMOCK_MATCHER_(tn, F, 2) gmock_a2, \ 580 GMOCK_MATCHER_(tn, F, 3) gmock_a3, \ 581 GMOCK_MATCHER_(tn, F, 4) gmock_a4, \ 582 GMOCK_MATCHER_(tn, F, 5) gmock_a5, \ 583 GMOCK_MATCHER_(tn, F, 6) gmock_a6, \ 584 GMOCK_MATCHER_(tn, F, 7) gmock_a7, \ 585 GMOCK_MATCHER_(tn, F, 8) gmock_a8, \ 586 GMOCK_MATCHER_(tn, F, 9) gmock_a9) constness { \ 587 GMOCK_MOCKER_(9, constness, Method).RegisterOwner(this); \ 588 return GMOCK_MOCKER_(9, constness, Method).With(gmock_a1, gmock_a2, \ 589 gmock_a3, gmock_a4, gmock_a5, gmock_a6, gmock_a7, gmock_a8, \ 592 mutable ::testing::FunctionMocker<F> GMOCK_MOCKER_(9, constness, Method) 595 #define GMOCK_METHOD10_(tn, constness, ct, Method, F) \ 596 GMOCK_RESULT_(tn, F) ct Method(GMOCK_ARG_(tn, F, 1) gmock_a1, \ 597 GMOCK_ARG_(tn, F, 2) gmock_a2, \ 598 GMOCK_ARG_(tn, F, 3) gmock_a3, \ 599 GMOCK_ARG_(tn, F, 4) gmock_a4, \ 600 GMOCK_ARG_(tn, F, 5) gmock_a5, \ 601 GMOCK_ARG_(tn, F, 6) gmock_a6, \ 602 GMOCK_ARG_(tn, F, 7) gmock_a7, \ 603 GMOCK_ARG_(tn, F, 8) gmock_a8, \ 604 GMOCK_ARG_(tn, F, 9) gmock_a9, \ 605 GMOCK_ARG_(tn, F, 10) gmock_a10) constness { \ 606 GTEST_COMPILE_ASSERT_(::std::tr1::tuple_size< \ 607 tn ::testing::internal::Function<F>::ArgumentTuple>::value == 10, \ 608 this_method_does_not_take_10_arguments); \ 609 GMOCK_MOCKER_(10, constness, Method).SetOwnerAndName(this, #Method); \ 610 return GMOCK_MOCKER_(10, constness, Method).Invoke(gmock_a1, gmock_a2, \ 611 gmock_a3, gmock_a4, gmock_a5, gmock_a6, gmock_a7, gmock_a8, gmock_a9, \ 614 ::testing::MockSpec<F>& \ 615 gmock_##Method(GMOCK_MATCHER_(tn, F, 1) gmock_a1, \ 616 GMOCK_MATCHER_(tn, F, 2) gmock_a2, \ 617 GMOCK_MATCHER_(tn, F, 3) gmock_a3, \ 618 GMOCK_MATCHER_(tn, F, 4) gmock_a4, \ 619 GMOCK_MATCHER_(tn, F, 5) gmock_a5, \ 620 GMOCK_MATCHER_(tn, F, 6) gmock_a6, \ 621 GMOCK_MATCHER_(tn, F, 7) gmock_a7, \ 622 GMOCK_MATCHER_(tn, F, 8) gmock_a8, \ 623 GMOCK_MATCHER_(tn, F, 9) gmock_a9, \ 624 GMOCK_MATCHER_(tn, F, 10) gmock_a10) constness { \ 625 GMOCK_MOCKER_(10, constness, Method).RegisterOwner(this); \ 626 return GMOCK_MOCKER_(10, constness, Method).With(gmock_a1, gmock_a2, \ 627 gmock_a3, gmock_a4, gmock_a5, gmock_a6, gmock_a7, gmock_a8, gmock_a9, \ 630 mutable ::testing::FunctionMocker<F> GMOCK_MOCKER_(10, constness, Method) 632 #define MOCK_METHOD0(m, F) GMOCK_METHOD0_(, , , m, F) 633 #define MOCK_METHOD1(m, F) GMOCK_METHOD1_(, , , m, F) 634 #define MOCK_METHOD2(m, F) GMOCK_METHOD2_(, , , m, F) 635 #define MOCK_METHOD3(m, F) GMOCK_METHOD3_(, , , m, F) 636 #define MOCK_METHOD4(m, F) GMOCK_METHOD4_(, , , m, F) 637 #define MOCK_METHOD5(m, F) GMOCK_METHOD5_(, , , m, F) 638 #define MOCK_METHOD6(m, F) GMOCK_METHOD6_(, , , m, F) 639 #define MOCK_METHOD7(m, F) GMOCK_METHOD7_(, , , m, F) 640 #define MOCK_METHOD8(m, F) GMOCK_METHOD8_(, , , m, F) 641 #define MOCK_METHOD9(m, F) GMOCK_METHOD9_(, , , m, F) 642 #define MOCK_METHOD10(m, F) GMOCK_METHOD10_(, , , m, F) 644 #define MOCK_CONST_METHOD0(m, F) GMOCK_METHOD0_(, const, , m, F) 645 #define MOCK_CONST_METHOD1(m, F) GMOCK_METHOD1_(, const, , m, F) 646 #define MOCK_CONST_METHOD2(m, F) GMOCK_METHOD2_(, const, , m, F) 647 #define MOCK_CONST_METHOD3(m, F) GMOCK_METHOD3_(, const, , m, F) 648 #define MOCK_CONST_METHOD4(m, F) GMOCK_METHOD4_(, const, , m, F) 649 #define MOCK_CONST_METHOD5(m, F) GMOCK_METHOD5_(, const, , m, F) 650 #define MOCK_CONST_METHOD6(m, F) GMOCK_METHOD6_(, const, , m, F) 651 #define MOCK_CONST_METHOD7(m, F) GMOCK_METHOD7_(, const, , m, F) 652 #define MOCK_CONST_METHOD8(m, F) GMOCK_METHOD8_(, const, , m, F) 653 #define MOCK_CONST_METHOD9(m, F) GMOCK_METHOD9_(, const, , m, F) 654 #define MOCK_CONST_METHOD10(m, F) GMOCK_METHOD10_(, const, , m, F) 656 #define MOCK_METHOD0_T(m, F) GMOCK_METHOD0_(typename, , , m, F) 657 #define MOCK_METHOD1_T(m, F) GMOCK_METHOD1_(typename, , , m, F) 658 #define MOCK_METHOD2_T(m, F) GMOCK_METHOD2_(typename, , , m, F) 659 #define MOCK_METHOD3_T(m, F) GMOCK_METHOD3_(typename, , , m, F) 660 #define MOCK_METHOD4_T(m, F) GMOCK_METHOD4_(typename, , , m, F) 661 #define MOCK_METHOD5_T(m, F) GMOCK_METHOD5_(typename, , , m, F) 662 #define MOCK_METHOD6_T(m, F) GMOCK_METHOD6_(typename, , , m, F) 663 #define MOCK_METHOD7_T(m, F) GMOCK_METHOD7_(typename, , , m, F) 664 #define MOCK_METHOD8_T(m, F) GMOCK_METHOD8_(typename, , , m, F) 665 #define MOCK_METHOD9_T(m, F) GMOCK_METHOD9_(typename, , , m, F) 666 #define MOCK_METHOD10_T(m, F) GMOCK_METHOD10_(typename, , , m, F) 668 #define MOCK_CONST_METHOD0_T(m, F) GMOCK_METHOD0_(typename, const, , m, F) 669 #define MOCK_CONST_METHOD1_T(m, F) GMOCK_METHOD1_(typename, const, , m, F) 670 #define MOCK_CONST_METHOD2_T(m, F) GMOCK_METHOD2_(typename, const, , m, F) 671 #define MOCK_CONST_METHOD3_T(m, F) GMOCK_METHOD3_(typename, const, , m, F) 672 #define MOCK_CONST_METHOD4_T(m, F) GMOCK_METHOD4_(typename, const, , m, F) 673 #define MOCK_CONST_METHOD5_T(m, F) GMOCK_METHOD5_(typename, const, , m, F) 674 #define MOCK_CONST_METHOD6_T(m, F) GMOCK_METHOD6_(typename, const, , m, F) 675 #define MOCK_CONST_METHOD7_T(m, F) GMOCK_METHOD7_(typename, const, , m, F) 676 #define MOCK_CONST_METHOD8_T(m, F) GMOCK_METHOD8_(typename, const, , m, F) 677 #define MOCK_CONST_METHOD9_T(m, F) GMOCK_METHOD9_(typename, const, , m, F) 678 #define MOCK_CONST_METHOD10_T(m, F) GMOCK_METHOD10_(typename, const, , m, F) 680 #define MOCK_METHOD0_WITH_CALLTYPE(ct, m, F) GMOCK_METHOD0_(, , ct, m, F) 681 #define MOCK_METHOD1_WITH_CALLTYPE(ct, m, F) GMOCK_METHOD1_(, , ct, m, F) 682 #define MOCK_METHOD2_WITH_CALLTYPE(ct, m, F) GMOCK_METHOD2_(, , ct, m, F) 683 #define MOCK_METHOD3_WITH_CALLTYPE(ct, m, F) GMOCK_METHOD3_(, , ct, m, F) 684 #define MOCK_METHOD4_WITH_CALLTYPE(ct, m, F) GMOCK_METHOD4_(, , ct, m, F) 685 #define MOCK_METHOD5_WITH_CALLTYPE(ct, m, F) GMOCK_METHOD5_(, , ct, m, F) 686 #define MOCK_METHOD6_WITH_CALLTYPE(ct, m, F) GMOCK_METHOD6_(, , ct, m, F) 687 #define MOCK_METHOD7_WITH_CALLTYPE(ct, m, F) GMOCK_METHOD7_(, , ct, m, F) 688 #define MOCK_METHOD8_WITH_CALLTYPE(ct, m, F) GMOCK_METHOD8_(, , ct, m, F) 689 #define MOCK_METHOD9_WITH_CALLTYPE(ct, m, F) GMOCK_METHOD9_(, , ct, m, F) 690 #define MOCK_METHOD10_WITH_CALLTYPE(ct, m, F) GMOCK_METHOD10_(, , ct, m, F) 692 #define MOCK_CONST_METHOD0_WITH_CALLTYPE(ct, m, F) \ 693 GMOCK_METHOD0_(, const, ct, m, F) 694 #define MOCK_CONST_METHOD1_WITH_CALLTYPE(ct, m, F) \ 695 GMOCK_METHOD1_(, const, ct, m, F) 696 #define MOCK_CONST_METHOD2_WITH_CALLTYPE(ct, m, F) \ 697 GMOCK_METHOD2_(, const, ct, m, F) 698 #define MOCK_CONST_METHOD3_WITH_CALLTYPE(ct, m, F) \ 699 GMOCK_METHOD3_(, const, ct, m, F) 700 #define MOCK_CONST_METHOD4_WITH_CALLTYPE(ct, m, F) \ 701 GMOCK_METHOD4_(, const, ct, m, F) 702 #define MOCK_CONST_METHOD5_WITH_CALLTYPE(ct, m, F) \ 703 GMOCK_METHOD5_(, const, ct, m, F) 704 #define MOCK_CONST_METHOD6_WITH_CALLTYPE(ct, m, F) \ 705 GMOCK_METHOD6_(, const, ct, m, F) 706 #define MOCK_CONST_METHOD7_WITH_CALLTYPE(ct, m, F) \ 707 GMOCK_METHOD7_(, const, ct, m, F) 708 #define MOCK_CONST_METHOD8_WITH_CALLTYPE(ct, m, F) \ 709 GMOCK_METHOD8_(, const, ct, m, F) 710 #define MOCK_CONST_METHOD9_WITH_CALLTYPE(ct, m, F) \ 711 GMOCK_METHOD9_(, const, ct, m, F) 712 #define MOCK_CONST_METHOD10_WITH_CALLTYPE(ct, m, F) \ 713 GMOCK_METHOD10_(, const, ct, m, F) 715 #define MOCK_METHOD0_T_WITH_CALLTYPE(ct, m, F) \ 716 GMOCK_METHOD0_(typename, , ct, m, F) 717 #define MOCK_METHOD1_T_WITH_CALLTYPE(ct, m, F) \ 718 GMOCK_METHOD1_(typename, , ct, m, F) 719 #define MOCK_METHOD2_T_WITH_CALLTYPE(ct, m, F) \ 720 GMOCK_METHOD2_(typename, , ct, m, F) 721 #define MOCK_METHOD3_T_WITH_CALLTYPE(ct, m, F) \ 722 GMOCK_METHOD3_(typename, , ct, m, F) 723 #define MOCK_METHOD4_T_WITH_CALLTYPE(ct, m, F) \ 724 GMOCK_METHOD4_(typename, , ct, m, F) 725 #define MOCK_METHOD5_T_WITH_CALLTYPE(ct, m, F) \ 726 GMOCK_METHOD5_(typename, , ct, m, F) 727 #define MOCK_METHOD6_T_WITH_CALLTYPE(ct, m, F) \ 728 GMOCK_METHOD6_(typename, , ct, m, F) 729 #define MOCK_METHOD7_T_WITH_CALLTYPE(ct, m, F) \ 730 GMOCK_METHOD7_(typename, , ct, m, F) 731 #define MOCK_METHOD8_T_WITH_CALLTYPE(ct, m, F) \ 732 GMOCK_METHOD8_(typename, , ct, m, F) 733 #define MOCK_METHOD9_T_WITH_CALLTYPE(ct, m, F) \ 734 GMOCK_METHOD9_(typename, , ct, m, F) 735 #define MOCK_METHOD10_T_WITH_CALLTYPE(ct, m, F) \ 736 GMOCK_METHOD10_(typename, , ct, m, F) 738 #define MOCK_CONST_METHOD0_T_WITH_CALLTYPE(ct, m, F) \ 739 GMOCK_METHOD0_(typename, const, ct, m, F) 740 #define MOCK_CONST_METHOD1_T_WITH_CALLTYPE(ct, m, F) \ 741 GMOCK_METHOD1_(typename, const, ct, m, F) 742 #define MOCK_CONST_METHOD2_T_WITH_CALLTYPE(ct, m, F) \ 743 GMOCK_METHOD2_(typename, const, ct, m, F) 744 #define MOCK_CONST_METHOD3_T_WITH_CALLTYPE(ct, m, F) \ 745 GMOCK_METHOD3_(typename, const, ct, m, F) 746 #define MOCK_CONST_METHOD4_T_WITH_CALLTYPE(ct, m, F) \ 747 GMOCK_METHOD4_(typename, const, ct, m, F) 748 #define MOCK_CONST_METHOD5_T_WITH_CALLTYPE(ct, m, F) \ 749 GMOCK_METHOD5_(typename, const, ct, m, F) 750 #define MOCK_CONST_METHOD6_T_WITH_CALLTYPE(ct, m, F) \ 751 GMOCK_METHOD6_(typename, const, ct, m, F) 752 #define MOCK_CONST_METHOD7_T_WITH_CALLTYPE(ct, m, F) \ 753 GMOCK_METHOD7_(typename, const, ct, m, F) 754 #define MOCK_CONST_METHOD8_T_WITH_CALLTYPE(ct, m, F) \ 755 GMOCK_METHOD8_(typename, const, ct, m, F) 756 #define MOCK_CONST_METHOD9_T_WITH_CALLTYPE(ct, m, F) \ 757 GMOCK_METHOD9_(typename, const, ct, m, F) 758 #define MOCK_CONST_METHOD10_T_WITH_CALLTYPE(ct, m, F) \ 759 GMOCK_METHOD10_(typename, const, ct, m, F) 796 template <
typename F>
799 template <
typename R>
810 template <
typename R,
typename A0>
821 template <
typename R,
typename A0,
typename A1>
832 template <
typename R,
typename A0,
typename A1,
typename A2>
843 template <
typename R,
typename A0,
typename A1,
typename A2,
typename A3>
854 template <
typename R,
typename A0,
typename A1,
typename A2,
typename A3,
866 template <
typename R,
typename A0,
typename A1,
typename A2,
typename A3,
867 typename A4,
typename A5>
878 template <
typename R,
typename A0,
typename A1,
typename A2,
typename A3,
879 typename A4,
typename A5,
typename A6>
890 template <
typename R,
typename A0,
typename A1,
typename A2,
typename A3,
891 typename A4,
typename A5,
typename A6,
typename A7>
902 template <
typename R,
typename A0,
typename A1,
typename A2,
typename A3,
903 typename A4,
typename A5,
typename A6,
typename A7,
typename A8>
914 template <
typename R,
typename A0,
typename A1,
typename A2,
typename A3,
915 typename A4,
typename A5,
typename A6,
typename A7,
typename A8,
921 MOCK_METHOD10_T(Call,
R(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9));
929 #endif // GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_FUNCTION_MOCKERS_H_ Definition: gmock-spec-builders.h:1230
MockFunction()
Definition: gmock-generated-function-mockers.h:870
MockSpec< F > & With(const Matcher< A1 > &m1)
Definition: gmock-generated-function-mockers.h:87
#define MOCK_METHOD1_T(m, F)
Definition: gmock-generated-function-mockers.h:657
Definition: gmock-actions.h:49
#define MOCK_METHOD6_T(m, F)
Definition: gmock-generated-function-mockers.h:662
internal::Function< F >::ArgumentTuple ArgumentTuple
Definition: gmock-generated-function-mockers.h:172
MockSpec< F > & With(const Matcher< A1 > &m1, const Matcher< A2 > &m2, const Matcher< A3 > &m3, const Matcher< A4 > &m4, const Matcher< A5 > &m5, const Matcher< A6 > &m6)
Definition: gmock-generated-function-mockers.h:198
R Invoke(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8)
Definition: gmock-generated-function-mockers.h:256
MockFunction()
Definition: gmock-generated-function-mockers.h:813
MockFunction()
Definition: gmock-generated-function-mockers.h:906
#define MOCK_METHOD5_T(m, F)
Definition: gmock-generated-function-mockers.h:661
MockFunction()
Definition: gmock-generated-function-mockers.h:919
MockSpec< F > & With(const Matcher< A1 > &m1, const Matcher< A2 > &m2, const Matcher< A3 > &m3, const Matcher< A4 > &m4, const Matcher< A5 > &m5, const Matcher< A6 > &m6, const Matcher< A7 > &m7, const Matcher< A8 > &m8, const Matcher< A9 > &m9, const Matcher< A10 > &m10)
Definition: gmock-generated-function-mockers.h:300
MockFunction()
Definition: gmock-generated-function-mockers.h:835
R F(A1, A2, A3, A4, A5)
Definition: gmock-generated-function-mockers.h:171
MockSpec< F > & With(const Matcher< A1 > &m1, const Matcher< A2 > &m2)
Definition: gmock-generated-function-mockers.h:108
#define MOCK_METHOD2_T(m, F)
Definition: gmock-generated-function-mockers.h:658
R F()
Definition: gmock-generated-function-mockers.h:64
R Invoke(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9)
Definition: gmock-generated-function-mockers.h:282
Definition: gmock-generated-function-mockers.h:797
R F(A1, A2, A3, A4, A5, A6)
Definition: gmock-generated-function-mockers.h:195
MockFunction()
Definition: gmock-generated-function-mockers.h:858
#define MOCK_METHOD9_T(m, F)
Definition: gmock-generated-function-mockers.h:665
tuple make_tuple()
Definition: gtest-tuple.h:645
MockSpec< F > & With(const Matcher< A1 > &m1, const Matcher< A2 > &m2, const Matcher< A3 > &m3)
Definition: gmock-generated-function-mockers.h:129
#define MOCK_METHOD8_T(m, F)
Definition: gmock-generated-function-mockers.h:664
internal::Function< F >::ArgumentTuple ArgumentTuple
Definition: gmock-generated-function-mockers.h:221
R F(A1, A2, A3, A4)
Definition: gmock-generated-function-mockers.h:148
MockSpec< F > & With(const Matcher< A1 > &m1, const Matcher< A2 > &m2, const Matcher< A3 > &m3, const Matcher< A4 > &m4, const Matcher< A5 > &m5, const Matcher< A6 > &m6, const Matcher< A7 > &m7)
Definition: gmock-generated-function-mockers.h:223
R Invoke()
Definition: gmock-generated-function-mockers.h:71
internal::Function< F >::ArgumentTuple ArgumentTuple
Definition: gmock-generated-function-mockers.h:85
internal::Function< F >::ArgumentTuple ArgumentTuple
Definition: gmock-generated-function-mockers.h:271
R F(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)
Definition: gmock-generated-function-mockers.h:297
R F(A1)
Definition: gmock-generated-function-mockers.h:84
MockFunction()
Definition: gmock-generated-function-mockers.h:882
R F(A1, A2)
Definition: gmock-generated-function-mockers.h:105
internal::Function< F >::ArgumentTuple ArgumentTuple
Definition: gmock-generated-function-mockers.h:106
Definition: InputPrereqs.h:77
MockSpec< F > & With(const Matcher< A1 > &m1, const Matcher< A2 > &m2, const Matcher< A3 > &m3, const Matcher< A4 > &m4, const Matcher< A5 > &m5, const Matcher< A6 > &m6, const Matcher< A7 > &m7, const Matcher< A8 > &m8, const Matcher< A9 > &m9)
Definition: gmock-generated-function-mockers.h:273
MockSpec< F > & With(const Matcher< A1 > &m1, const Matcher< A2 > &m2, const Matcher< A3 > &m3, const Matcher< A4 > &m4, const Matcher< A5 > &m5, const Matcher< A6 > &m6, const Matcher< A7 > &m7, const Matcher< A8 > &m8)
Definition: gmock-generated-function-mockers.h:248
internal::Function< F >::ArgumentTuple ArgumentTuple
Definition: gmock-generated-function-mockers.h:196
MockSpec< F > & With(const Matcher< A1 > &m1, const Matcher< A2 > &m2, const Matcher< A3 > &m3, const Matcher< A4 > &m4, const Matcher< A5 > &m5)
Definition: gmock-generated-function-mockers.h:174
internal::Function< F >::ArgumentTuple ArgumentTuple
Definition: gmock-generated-function-mockers.h:127
#define MOCK_METHOD0_T(m, F)
Definition: gmock-generated-function-mockers.h:656
MockFunction()
Definition: gmock-generated-function-mockers.h:894
#define MOCK_METHOD3_T(m, F)
Definition: gmock-generated-function-mockers.h:659
R Invoke(A1 a1, A2 a2)
Definition: gmock-generated-function-mockers.h:113
R Invoke(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5)
Definition: gmock-generated-function-mockers.h:181
#define MOCK_METHOD7_T(m, F)
Definition: gmock-generated-function-mockers.h:663
internal::Function< F >::ArgumentTuple ArgumentTuple
Definition: gmock-generated-function-mockers.h:65
R Invoke(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7)
Definition: gmock-generated-function-mockers.h:231
R F(A1, A2, A3, A4, A5, A6, A7, A8, A9)
Definition: gmock-generated-function-mockers.h:270
internal::Function< F >::ArgumentTuple ArgumentTuple
Definition: gmock-generated-function-mockers.h:149
Definition: gmock-generated-internal-utils.h:152
MockSpec< F > & With(const Matcher< A1 > &m1, const Matcher< A2 > &m2, const Matcher< A3 > &m3, const Matcher< A4 > &m4)
Definition: gmock-generated-function-mockers.h:151
MockSpec< F > & With()
Definition: gmock-generated-function-mockers.h:67
R F(A1, A2, A3, A4, A5, A6, A7)
Definition: gmock-generated-function-mockers.h:220
internal::Function< F >::ArgumentTuple ArgumentTuple
Definition: gmock-generated-function-mockers.h:298
R Invoke(A1 a1)
Definition: gmock-generated-function-mockers.h:92
MockFunction()
Definition: gmock-generated-function-mockers.h:802
R Invoke(A1 a1, A2 a2, A3 a3, A4 a4)
Definition: gmock-generated-function-mockers.h:157
#define GTEST_DISALLOW_COPY_AND_ASSIGN_(type)
Definition: gtest-port.h:620
#define MOCK_METHOD10_T(m, F)
Definition: gmock-generated-function-mockers.h:666
R F(A1, A2, A3)
Definition: gmock-generated-function-mockers.h:126
Definition: gmock-matchers.h:251
MockFunction()
Definition: gmock-generated-function-mockers.h:846
R F(A1, A2, A3, A4, A5, A6, A7, A8)
Definition: gmock-generated-function-mockers.h:245
R Invoke(A1 a1, A2 a2, A3 a3)
Definition: gmock-generated-function-mockers.h:135
Definition: gmock-generated-function-mockers.h:58
internal::Function< F >::ArgumentTuple ArgumentTuple
Definition: gmock-generated-function-mockers.h:246
R Invoke(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9, A10 a10)
Definition: gmock-generated-function-mockers.h:309
MockFunction()
Definition: gmock-generated-function-mockers.h:824
Definition: gmock-generated-function-mockers.h:50
R Invoke(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6)
Definition: gmock-generated-function-mockers.h:206
#define MOCK_METHOD4_T(m, F)
Definition: gmock-generated-function-mockers.h:660