Lines Matching refs:name

16 //     * Neither the name of Google Inc. nor the names of its
787 // ACTION(name) { statements; }
789 // will define an action with the given name that executes the
817 // ACTION_P(name, param_name) { statements; }
906 // parameters and n value parameters. name_i is the name of the i-th
908 // an integral constant, or a template. p_i is the name of the i-th
956 // #define ACTION_TEMPLATE(name, template_params, value_params)
1240 // The name of the class template implementing the action template.
1241 #define GMOCK_ACTION_CLASS_(name, value_params)\
1242 GTEST_CONCAT_TOKEN_(name##Action, GMOCK_INTERNAL_COUNT_##value_params)
1244 #define ACTION_TEMPLATE(name, template_params, value_params)\
1247 class GMOCK_ACTION_CLASS_(name, value_params) {\
1249 explicit GMOCK_ACTION_CLASS_(name, value_params)\
1281 GTEST_DISALLOW_ASSIGN_(GMOCK_ACTION_CLASS_(name, value_params));\
1285 inline GMOCK_ACTION_CLASS_(name, value_params)<\
1287 GMOCK_INTERNAL_LIST_TYPE_##value_params> name(\
1289 return GMOCK_ACTION_CLASS_(name, value_params)<\
1302 GMOCK_ACTION_CLASS_(name, value_params)<\
1308 #define ACTION(name)\
1309 class name##Action {\
1311 name##Action() {}\
1339 GTEST_DISALLOW_ASSIGN_(name##Action);\
1341 inline name##Action name() {\
1342 return name##Action();\
1350 name##Action::gmock_Impl<F>::gmock_PerformImpl(\
1353 #define ACTION_P(name, p0)\
1355 class name##ActionP {\
1357 explicit name##ActionP(p0##_type gmock_p0) : p0(gmock_p0) {}\
1387 GTEST_DISALLOW_ASSIGN_(name##ActionP);\
1390 inline name##ActionP<p0##_type> name(p0##_type p0) {\
1391 return name##ActionP<p0##_type>(p0);\
1400 name##ActionP<p0##_type>::gmock_Impl<F>::gmock_PerformImpl(\
1403 #define ACTION_P2(name, p0, p1)\
1405 class name##ActionP2 {\
1407 name##ActionP2(p0##_type gmock_p0, p1##_type gmock_p1) : p0(gmock_p0), \
1441 GTEST_DISALLOW_ASSIGN_(name##ActionP2);\
1444 inline name##ActionP2<p0##_type, p1##_type> name(p0##_type p0, \
1446 return name##ActionP2<p0##_type, p1##_type>(p0, p1);\
1455 name##ActionP2<p0##_type, p1##_type>::gmock_Impl<F>::gmock_PerformImpl(\
1458 #define ACTION_P3(name, p0, p1, p2)\
1460 class name##ActionP3 {\
1462 name##ActionP3(p0##_type gmock_p0, p1##_type gmock_p1, \
1498 GTEST_DISALLOW_ASSIGN_(name##ActionP3);\
1501 inline name##ActionP3<p0##_type, p1##_type, p2##_type> name(p0##_type p0, \
1503 return name##ActionP3<p0##_type, p1##_type, p2##_type>(p0, p1, p2);\
1512 name##ActionP3<p0##_type, p1##_type, \
1516 #define ACTION_P4(name, p0, p1, p2, p3)\
1519 class name##ActionP4 {\
1521 name##ActionP4(p0##_type gmock_p0, p1##_type gmock_p1, \
1561 GTEST_DISALLOW_ASSIGN_(name##ActionP4);\
1565 inline name##ActionP4<p0##_type, p1##_type, p2##_type, \
1566 p3##_type> name(p0##_type p0, p1##_type p1, p2##_type p2, \
1568 return name##ActionP4<p0##_type, p1##_type, p2##_type, p3##_type>(p0, p1, \
1579 name##ActionP4<p0##_type, p1##_type, p2##_type, \
1583 #define ACTION_P5(name, p0, p1, p2, p3, p4)\
1586 class name##ActionP5 {\
1588 name##ActionP5(p0##_type gmock_p0, p1##_type gmock_p1, \
1631 GTEST_DISALLOW_ASSIGN_(name##ActionP5);\
1635 inline name##ActionP5<p0##_type, p1##_type, p2##_type, p3##_type, \
1636 p4##_type> name(p0##_type p0, p1##_type p1, p2##_type p2, p3##_type p3, \
1638 return name##ActionP5<p0##_type, p1##_type, p2##_type, p3##_type, \
1649 name##ActionP5<p0##_type, p1##_type, p2##_type, p3##_type, \
1653 #define ACTION_P6(name, p0, p1, p2, p3, p4, p5)\
1656 class name##ActionP6 {\
1658 name##ActionP6(p0##_type gmock_p0, p1##_type gmock_p1, \
1704 GTEST_DISALLOW_ASSIGN_(name##ActionP6);\
1708 inline name##ActionP6<p0##_type, p1##_type, p2##_type, p3##_type, \
1709 p4##_type, p5##_type> name(p0##_type p0, p1##_type p1, p2##_type p2, \
1711 return name##ActionP6<p0##_type, p1##_type, p2##_type, p3##_type, \
1722 name##ActionP6<p0##_type, p1##_type, p2##_type, p3##_type, p4##_type, \
1726 #define ACTION_P7(name, p0, p1, p2, p3, p4, p5, p6)\
1730 class name##ActionP7 {\
1732 name##ActionP7(p0##_type gmock_p0, p1##_type gmock_p1, \
1782 GTEST_DISALLOW_ASSIGN_(name##ActionP7);\
1787 inline name##ActionP7<p0##_type, p1##_type, p2##_type, p3##_type, \
1788 p4##_type, p5##_type, p6##_type> name(p0##_type p0, p1##_type p1, \
1791 return name##ActionP7<p0##_type, p1##_type, p2##_type, p3##_type, \
1803 name##ActionP7<p0##_type, p1##_type, p2##_type, p3##_type, p4##_type, \
1807 #define ACTION_P8(name, p0, p1, p2, p3, p4, p5, p6, p7)\
1811 class name##ActionP8 {\
1813 name##ActionP8(p0##_type gmock_p0, p1##_type gmock_p1, \
1867 GTEST_DISALLOW_ASSIGN_(name##ActionP8);\
1872 inline name##ActionP8<p0##_type, p1##_type, p2##_type, p3##_type, \
1873 p4##_type, p5##_type, p6##_type, p7##_type> name(p0##_type p0, \
1876 return name##ActionP8<p0##_type, p1##_type, p2##_type, p3##_type, \
1889 name##ActionP8<p0##_type, p1##_type, p2##_type, p3##_type, p4##_type, \
1894 #define ACTION_P9(name, p0, p1, p2, p3, p4, p5, p6, p7, p8)\
1898 class name##ActionP9 {\
1900 name##ActionP9(p0##_type gmock_p0, p1##_type gmock_p1, \
1957 GTEST_DISALLOW_ASSIGN_(name##ActionP9);\
1962 inline name##ActionP9<p0##_type, p1##_type, p2##_type, p3##_type, \
1964 p8##_type> name(p0##_type p0, p1##_type p1, p2##_type p2, p3##_type p3, \
1967 return name##ActionP9<p0##_type, p1##_type, p2##_type, p3##_type, \
1980 name##ActionP9<p0##_type, p1##_type, p2##_type, p3##_type, p4##_type, \
1985 #define ACTION_P10(name, p0, p1, p2, p3, p4, p5, p6, p7, p8, p9)\
1990 class name##ActionP10 {\
1992 name##ActionP10(p0##_type gmock_p0, p1##_type gmock_p1, \
2051 GTEST_DISALLOW_ASSIGN_(name##ActionP10);\
2057 inline name##ActionP10<p0##_type, p1##_type, p2##_type, p3##_type, \
2059 p9##_type> name(p0##_type p0, p1##_type p1, p2##_type p2, p3##_type p3, \
2062 return name##ActionP10<p0##_type, p1##_type, p2##_type, p3##_type, \
2076 name##ActionP10<p0##_type, p1##_type, p2##_type, p3##_type, p4##_type, \
2128 // accidental calls to user functions of the same name.