Home | History | Annotate | Download | only in gmock

Lines Matching refs:constness

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 { \
352 GMOCK_MOCKER_(0, constness, Method).SetOwnerAndName(this, #Method); \
353 return GMOCK_MOCKER_(0, constness, Method).Invoke(); \
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 { \
368 GMOCK_MOCKER_(1, constness, Method).SetOwnerAndName(this, #Method); \
369 return GMOCK_MOCKER_(1, constness, Method).Invoke(gmock_a1); \
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) \
381 GMOCK_ARG_(tn, F, 2) gmock_a2) constness { \
385 GMOCK_MOCKER_(2, constness, Method).SetOwnerAndName(this, #Method); \
386 return GMOCK_MOCKER_(2, constness, Method).Invoke(gmock_a1, gmock_a2); \
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) \
400 GMOCK_ARG_(tn, F, 3) gmock_a3) constness { \
404 GMOCK_MOCKER_(3, constness, Method).SetOwnerAndName(this, #Method); \
405 return GMOCK_MOCKER_(3, constness, Method).Invoke(gmock_a1, 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) \
423 GMOCK_ARG_(tn, F, 4) gmock_a4) constness { \
427 GMOCK_MOCKER_(4, constness, Method).SetOwnerAndName(this, #Method); \
428 return GMOCK_MOCKER_(4, constness, Method).Invoke(gmock_a1, gmock_a2, \
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, \
440 mutable ::testing::FunctionMocker<F> GMOCK_MOCKER_(4, constness, Method)
443 #define GMOCK_METHOD5_(tn, constness, ct, Method, F) \
448 GMOCK_ARG_(tn, F, 5) gmock_a5) constness { \
452 GMOCK_MOCKER_(5, constness, Method).SetOwnerAndName(this, #Method); \
453 return GMOCK_MOCKER_(5, constness, Method).Invoke(gmock_a1, gmock_a2, \
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, \
466 mutable ::testing::FunctionMocker<F> GMOCK_MOCKER_(5, constness, Method)
469 #define GMOCK_METHOD6_(tn, constness, ct, Method, F) \
475 GMOCK_ARG_(tn, F, 6) gmock_a6) constness { \
479 GMOCK_MOCKER_(6, constness, Method).SetOwnerAndName(this, #Method); \
480 return GMOCK_MOCKER_(6, constness, Method).Invoke(gmock_a1, gmock_a2, \
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, \
494 mutable ::testing::FunctionMocker<F> GMOCK_MOCKER_(6, constness, Method)
497 #define GMOCK_METHOD7_(tn, constness, ct, Method, F) \
504 GMOCK_ARG_(tn, F, 7) gmock_a7) constness { \
508 GMOCK_MOCKER_(7, constness, Method).SetOwnerAndName(this, #Method); \
509 return GMOCK_MOCKER_(7, constness, Method).Invoke(gmock_a1, gmock_a2, \
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, \
524 mutable ::testing::FunctionMocker<F> GMOCK_MOCKER_(7, constness, Method)
527 #define GMOCK_METHOD8_(tn, constness, ct, Method, F) \
535 GMOCK_ARG_(tn, F, 8) gmock_a8) constness { \
539 GMOCK_MOCKER_(8, constness, Method).SetOwnerAndName(this, #Method); \
540 return GMOCK_MOCKER_(8, constness, Method).Invoke(gmock_a1, gmock_a2, \
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, \
556 mutable ::testing::FunctionMocker<F> GMOCK_MOCKER_(8, constness, Method)
559 #define GMOCK_METHOD9_(tn, constness, ct, Method, F) \
568 GMOCK_ARG_(tn, F, 9) gmock_a9) constness { \
572 GMOCK_MOCKER_(9, constness, Method).SetOwnerAndName(this, #Method); \
573 return GMOCK_MOCKER_(9, constness, Method).Invoke(gmock_a1, gmock_a2, \
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, \
592 mutable ::testing::FunctionMocker<F> GMOCK_MOCKER_(9, constness, Method)
595 #define GMOCK_METHOD10_(tn, constness, ct, Method, F) \
605 GMOCK_ARG_(tn, F, 10) gmock_a10) constness { \
609 GMOCK_MOCKER_(10, constness, Method).SetOwnerAndName(this, #Method); \
610 return GMOCK_MOCKER_(10, constness, Method).Invoke(gmock_a1, gmock_a2, \
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, \
630 mutable ::testing::FunctionMocker<F> GMOCK_MOCKER_(10, constness, Method)