@eosrio/node-abieos 2.1.0-beta.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (740) hide show
  1. package/README.md +4 -1
  2. package/dist/abieos.node +0 -0
  3. package/lib/abieos.d.ts +19 -0
  4. package/lib/abieos.d.ts.map +1 -0
  5. package/lib/abieos.js +100 -0
  6. package/lib/abieos.ts +107 -0
  7. package/package.json +13 -8
  8. package/.gitmodules +0 -6
  9. package/.idea/misc.xml +0 -6
  10. package/.idea/modules.xml +0 -8
  11. package/.idea/node-abieos.iml +0 -12
  12. package/.idea/vcs.xml +0 -9
  13. package/.idea/workspace.xml +0 -266
  14. package/CMakeLists.txt +0 -35
  15. package/abieos.d.ts +0 -21
  16. package/abieos.js +0 -59
  17. package/eosio.json +0 -1596
  18. package/external/date/CMakeLists.txt +0 -175
  19. package/external/date/LICENSE.txt +0 -31
  20. package/external/date/README.md +0 -61
  21. package/external/date/compile_fail.sh +0 -16
  22. package/external/date/include/date/chrono_io.h +0 -34
  23. package/external/date/include/date/date.h +0 -8335
  24. package/external/date/include/date/ios.h +0 -50
  25. package/external/date/include/date/islamic.h +0 -3031
  26. package/external/date/include/date/iso_week.h +0 -1745
  27. package/external/date/include/date/julian.h +0 -3046
  28. package/external/date/include/date/ptz.h +0 -592
  29. package/external/date/include/date/tz.h +0 -2760
  30. package/external/date/include/date/tz_private.h +0 -318
  31. package/external/date/src/ios.mm +0 -337
  32. package/external/date/src/tz.cpp +0 -3801
  33. package/external/date/test/clock_cast_test/custom_clock.pass.cpp +0 -213
  34. package/external/date/test/clock_cast_test/deprecated.pass.cpp +0 -90
  35. package/external/date/test/clock_cast_test/local_t.pass.cpp +0 -132
  36. package/external/date/test/clock_cast_test/noncastable.pass.cpp +0 -251
  37. package/external/date/test/clock_cast_test/normal_clocks.pass.cpp +0 -102
  38. package/external/date/test/clock_cast_test/to_sys_return_int.fail.cpp +0 -49
  39. package/external/date/test/clock_cast_test/to_sys_return_reference.fail.cpp +0 -51
  40. package/external/date/test/clock_cast_test/to_sys_return_utc_time.fail.cpp +0 -49
  41. package/external/date/test/date_test/day.pass.cpp +0 -143
  42. package/external/date/test/date_test/daypday.fail.cpp +0 -32
  43. package/external/date/test/date_test/daysmday.fail.cpp +0 -32
  44. package/external/date/test/date_test/daysmweekday.fail.cpp +0 -32
  45. package/external/date/test/date_test/detail/decimal_format_seconds.pass.cpp +0 -145
  46. package/external/date/test/date_test/detail/make_precision.pass.cpp +0 -63
  47. package/external/date/test/date_test/detail/static_pow10.pass.cpp +0 -50
  48. package/external/date/test/date_test/detail/width.pass.cpp +0 -64
  49. package/external/date/test/date_test/durations.pass.cpp +0 -62
  50. package/external/date/test/date_test/durations_output.pass.cpp +0 -328
  51. package/external/date/test/date_test/format/century.pass.cpp +0 -117
  52. package/external/date/test/date_test/format/misc.pass.cpp +0 -52
  53. package/external/date/test/date_test/format/range.pass.cpp +0 -78
  54. package/external/date/test/date_test/format/two_dight_year.pass.cpp +0 -121
  55. package/external/date/test/date_test/last.pass.cpp +0 -34
  56. package/external/date/test/date_test/make_time.pass.cpp +0 -164
  57. package/external/date/test/date_test/month.pass.cpp +0 -181
  58. package/external/date/test/date_test/month_day.pass.cpp +0 -82
  59. package/external/date/test/date_test/month_day_last.pass.cpp +0 -75
  60. package/external/date/test/date_test/month_weekday.pass.cpp +0 -77
  61. package/external/date/test/date_test/month_weekday_last.pass.cpp +0 -77
  62. package/external/date/test/date_test/month_weekday_last_less.fail.cpp +0 -34
  63. package/external/date/test/date_test/month_weekday_less.fail.cpp +0 -34
  64. package/external/date/test/date_test/monthpmonth.fail.cpp +0 -32
  65. package/external/date/test/date_test/months_m_year_month.fail.cpp +0 -33
  66. package/external/date/test/date_test/months_m_year_month_day.fail.cpp +0 -33
  67. package/external/date/test/date_test/monthsmmonth.fail.cpp +0 -32
  68. package/external/date/test/date_test/multi_year_duration_addition.pass.cpp +0 -297
  69. package/external/date/test/date_test/op_div_day_day.fail.cpp +0 -33
  70. package/external/date/test/date_test/op_div_int_month.fail.cpp +0 -33
  71. package/external/date/test/date_test/op_div_int_year.fail.cpp +0 -33
  72. package/external/date/test/date_test/op_div_last_last.fail.cpp +0 -33
  73. package/external/date/test/date_test/op_div_month_day.pass.cpp +0 -41
  74. package/external/date/test/date_test/op_div_month_day_last.pass.cpp +0 -39
  75. package/external/date/test/date_test/op_div_month_day_month_day.fail.cpp +0 -33
  76. package/external/date/test/date_test/op_div_month_month.fail.cpp +0 -33
  77. package/external/date/test/date_test/op_div_month_weekday.pass.cpp +0 -39
  78. package/external/date/test/date_test/op_div_month_weekday_last.pass.cpp +0 -39
  79. package/external/date/test/date_test/op_div_month_year.fail.cpp +0 -33
  80. package/external/date/test/date_test/op_div_survey.pass.cpp +0 -437
  81. package/external/date/test/date_test/op_div_weekday_indexed_weekday_indexed.fail.cpp +0 -33
  82. package/external/date/test/date_test/op_div_weekday_last_weekday_last.fail.cpp +0 -33
  83. package/external/date/test/date_test/op_div_year_month.pass.cpp +0 -35
  84. package/external/date/test/date_test/op_div_year_month_day.pass.cpp +0 -43
  85. package/external/date/test/date_test/op_div_year_month_day_last.pass.cpp +0 -41
  86. package/external/date/test/date_test/op_div_year_month_weekday.pass.cpp +0 -41
  87. package/external/date/test/date_test/op_div_year_month_weekday_last.pass.cpp +0 -41
  88. package/external/date/test/date_test/op_div_year_month_year_month.fail.cpp +0 -33
  89. package/external/date/test/date_test/op_div_year_year.fail.cpp +0 -33
  90. package/external/date/test/date_test/parse.pass.cpp +0 -904
  91. package/external/date/test/date_test/sizeof.pass.cpp +0 -62
  92. package/external/date/test/date_test/time_of_day_hours.pass.cpp +0 -104
  93. package/external/date/test/date_test/time_of_day_microfortnights.pass.cpp +0 -119
  94. package/external/date/test/date_test/time_of_day_milliseconds.pass.cpp +0 -126
  95. package/external/date/test/date_test/time_of_day_minutes.pass.cpp +0 -110
  96. package/external/date/test/date_test/time_of_day_nanoseconds.pass.cpp +0 -126
  97. package/external/date/test/date_test/time_of_day_seconds.pass.cpp +0 -116
  98. package/external/date/test/date_test/weekday.pass.cpp +0 -201
  99. package/external/date/test/date_test/weekday_indexed.pass.cpp +0 -70
  100. package/external/date/test/date_test/weekday_last.pass.cpp +0 -66
  101. package/external/date/test/date_test/weekday_lessthan.fail.cpp +0 -32
  102. package/external/date/test/date_test/weekday_sum.fail.cpp +0 -32
  103. package/external/date/test/date_test/year.pass.cpp +0 -146
  104. package/external/date/test/date_test/year_month.pass.cpp +0 -142
  105. package/external/date/test/date_test/year_month_day.pass.cpp +0 -244
  106. package/external/date/test/date_test/year_month_day_last.pass.cpp +0 -177
  107. package/external/date/test/date_test/year_month_day_m_year_month_day.fail.cpp +0 -33
  108. package/external/date/test/date_test/year_month_day_p_year_month_day.fail.cpp +0 -33
  109. package/external/date/test/date_test/year_month_p_year_month.fail.cpp +0 -33
  110. package/external/date/test/date_test/year_month_weekday.pass.cpp +0 -178
  111. package/external/date/test/date_test/year_month_weekday_last.pass.cpp +0 -169
  112. package/external/date/test/date_test/year_p_year.fail.cpp +0 -32
  113. package/external/date/test/date_test/years_m_year.fail.cpp +0 -32
  114. package/external/date/test/date_test/years_m_year_month.fail.cpp +0 -33
  115. package/external/date/test/date_test/years_m_year_month_day.fail.cpp +0 -33
  116. package/external/date/test/iso_week/last.pass.cpp +0 -34
  117. package/external/date/test/iso_week/lastweek_weekday.pass.cpp +0 -82
  118. package/external/date/test/iso_week/op_div_survey.pass.cpp +0 -196
  119. package/external/date/test/iso_week/weekday.pass.cpp +0 -227
  120. package/external/date/test/iso_week/weekday_lessthan.fail.cpp +0 -32
  121. package/external/date/test/iso_week/weekday_sum.fail.cpp +0 -32
  122. package/external/date/test/iso_week/weeknum.pass.cpp +0 -121
  123. package/external/date/test/iso_week/weeknum_p_weeknum.fail.cpp +0 -32
  124. package/external/date/test/iso_week/weeknum_weekday.pass.cpp +0 -86
  125. package/external/date/test/iso_week/year.pass.cpp +0 -120
  126. package/external/date/test/iso_week/year_lastweek.pass.cpp +0 -97
  127. package/external/date/test/iso_week/year_lastweek_weekday.pass.cpp +0 -129
  128. package/external/date/test/iso_week/year_p_year.fail.cpp +0 -32
  129. package/external/date/test/iso_week/year_weeknum.pass.cpp +0 -97
  130. package/external/date/test/iso_week/year_weeknum_weekday.pass.cpp +0 -139
  131. package/external/date/test/iso_week/years_m_year.fail.cpp +0 -32
  132. package/external/date/test/just.pass.cpp +0 -26
  133. package/external/date/test/testit +0 -177
  134. package/external/date/test/tz_test/OffsetZone.pass.cpp +0 -81
  135. package/external/date/test/tz_test/README.md +0 -22
  136. package/external/date/test/tz_test/tzdata2015e.txt.zip +0 -0
  137. package/external/date/test/tz_test/tzdata2015f.txt.zip +0 -0
  138. package/external/date/test/tz_test/tzdata2016c.txt.zip +0 -0
  139. package/external/date/test/tz_test/tzdata2016d.txt.zip +0 -0
  140. package/external/date/test/tz_test/tzdata2016e.txt.zip +0 -0
  141. package/external/date/test/tz_test/tzdata2016f.txt.zip +0 -0
  142. package/external/date/test/tz_test/validate.cpp +0 -165
  143. package/external/date/test/tz_test/zone.pass.cpp +0 -37
  144. package/external/date/test/tz_test/zoned_time.pass.cpp +0 -464
  145. package/external/date/test_fail.sh +0 -10
  146. package/external/rapidjson/.gitattributes +0 -22
  147. package/external/rapidjson/.gitmodules +0 -3
  148. package/external/rapidjson/.travis.yml +0 -99
  149. package/external/rapidjson/CHANGELOG.md +0 -158
  150. package/external/rapidjson/CMakeLists.txt +0 -221
  151. package/external/rapidjson/CMakeModules/FindGTestSrc.cmake +0 -30
  152. package/external/rapidjson/RapidJSON.pc.in +0 -7
  153. package/external/rapidjson/RapidJSONConfig.cmake.in +0 -15
  154. package/external/rapidjson/RapidJSONConfigVersion.cmake.in +0 -10
  155. package/external/rapidjson/appveyor.yml +0 -54
  156. package/external/rapidjson/bin/data/glossary.json +0 -22
  157. package/external/rapidjson/bin/data/menu.json +0 -27
  158. package/external/rapidjson/bin/data/readme.txt +0 -1
  159. package/external/rapidjson/bin/data/sample.json +0 -3315
  160. package/external/rapidjson/bin/data/webapp.json +0 -88
  161. package/external/rapidjson/bin/data/widget.json +0 -26
  162. package/external/rapidjson/bin/encodings/utf16be.json +0 -0
  163. package/external/rapidjson/bin/encodings/utf16bebom.json +0 -0
  164. package/external/rapidjson/bin/encodings/utf16le.json +0 -0
  165. package/external/rapidjson/bin/encodings/utf16lebom.json +0 -0
  166. package/external/rapidjson/bin/encodings/utf32be.json +0 -0
  167. package/external/rapidjson/bin/encodings/utf32bebom.json +0 -0
  168. package/external/rapidjson/bin/encodings/utf32le.json +0 -0
  169. package/external/rapidjson/bin/encodings/utf32lebom.json +0 -0
  170. package/external/rapidjson/bin/encodings/utf8.json +0 -7
  171. package/external/rapidjson/bin/encodings/utf8bom.json +0 -7
  172. package/external/rapidjson/bin/jsonchecker/fail1.json +0 -1
  173. package/external/rapidjson/bin/jsonchecker/fail10.json +0 -1
  174. package/external/rapidjson/bin/jsonchecker/fail11.json +0 -1
  175. package/external/rapidjson/bin/jsonchecker/fail12.json +0 -1
  176. package/external/rapidjson/bin/jsonchecker/fail13.json +0 -1
  177. package/external/rapidjson/bin/jsonchecker/fail14.json +0 -1
  178. package/external/rapidjson/bin/jsonchecker/fail15.json +0 -1
  179. package/external/rapidjson/bin/jsonchecker/fail16.json +0 -1
  180. package/external/rapidjson/bin/jsonchecker/fail17.json +0 -1
  181. package/external/rapidjson/bin/jsonchecker/fail18.json +0 -1
  182. package/external/rapidjson/bin/jsonchecker/fail19.json +0 -1
  183. package/external/rapidjson/bin/jsonchecker/fail2.json +0 -1
  184. package/external/rapidjson/bin/jsonchecker/fail20.json +0 -1
  185. package/external/rapidjson/bin/jsonchecker/fail21.json +0 -1
  186. package/external/rapidjson/bin/jsonchecker/fail22.json +0 -1
  187. package/external/rapidjson/bin/jsonchecker/fail23.json +0 -1
  188. package/external/rapidjson/bin/jsonchecker/fail24.json +0 -1
  189. package/external/rapidjson/bin/jsonchecker/fail25.json +0 -1
  190. package/external/rapidjson/bin/jsonchecker/fail26.json +0 -1
  191. package/external/rapidjson/bin/jsonchecker/fail27.json +0 -2
  192. package/external/rapidjson/bin/jsonchecker/fail28.json +0 -2
  193. package/external/rapidjson/bin/jsonchecker/fail29.json +0 -1
  194. package/external/rapidjson/bin/jsonchecker/fail3.json +0 -1
  195. package/external/rapidjson/bin/jsonchecker/fail30.json +0 -1
  196. package/external/rapidjson/bin/jsonchecker/fail31.json +0 -1
  197. package/external/rapidjson/bin/jsonchecker/fail32.json +0 -1
  198. package/external/rapidjson/bin/jsonchecker/fail33.json +0 -1
  199. package/external/rapidjson/bin/jsonchecker/fail4.json +0 -1
  200. package/external/rapidjson/bin/jsonchecker/fail5.json +0 -1
  201. package/external/rapidjson/bin/jsonchecker/fail6.json +0 -1
  202. package/external/rapidjson/bin/jsonchecker/fail7.json +0 -1
  203. package/external/rapidjson/bin/jsonchecker/fail8.json +0 -1
  204. package/external/rapidjson/bin/jsonchecker/fail9.json +0 -1
  205. package/external/rapidjson/bin/jsonchecker/pass1.json +0 -58
  206. package/external/rapidjson/bin/jsonchecker/pass2.json +0 -1
  207. package/external/rapidjson/bin/jsonchecker/pass3.json +0 -6
  208. package/external/rapidjson/bin/jsonchecker/readme.txt +0 -3
  209. package/external/rapidjson/bin/types/booleans.json +0 -102
  210. package/external/rapidjson/bin/types/floats.json +0 -102
  211. package/external/rapidjson/bin/types/guids.json +0 -102
  212. package/external/rapidjson/bin/types/integers.json +0 -102
  213. package/external/rapidjson/bin/types/mixed.json +0 -592
  214. package/external/rapidjson/bin/types/nulls.json +0 -102
  215. package/external/rapidjson/bin/types/paragraphs.json +0 -102
  216. package/external/rapidjson/bin/types/readme.txt +0 -1
  217. package/external/rapidjson/contrib/natvis/LICENSE +0 -45
  218. package/external/rapidjson/contrib/natvis/README.md +0 -7
  219. package/external/rapidjson/contrib/natvis/rapidjson.natvis +0 -38
  220. package/external/rapidjson/doc/CMakeLists.txt +0 -27
  221. package/external/rapidjson/doc/Doxyfile.in +0 -2369
  222. package/external/rapidjson/doc/Doxyfile.zh-cn.in +0 -2369
  223. package/external/rapidjson/doc/diagram/architecture.dot +0 -50
  224. package/external/rapidjson/doc/diagram/architecture.png +0 -0
  225. package/external/rapidjson/doc/diagram/insituparsing.dot +0 -65
  226. package/external/rapidjson/doc/diagram/insituparsing.png +0 -0
  227. package/external/rapidjson/doc/diagram/iterative-parser-states-diagram.dot +0 -62
  228. package/external/rapidjson/doc/diagram/iterative-parser-states-diagram.png +0 -0
  229. package/external/rapidjson/doc/diagram/move1.dot +0 -47
  230. package/external/rapidjson/doc/diagram/move1.png +0 -0
  231. package/external/rapidjson/doc/diagram/move2.dot +0 -62
  232. package/external/rapidjson/doc/diagram/move2.png +0 -0
  233. package/external/rapidjson/doc/diagram/move3.dot +0 -60
  234. package/external/rapidjson/doc/diagram/move3.png +0 -0
  235. package/external/rapidjson/doc/diagram/normalparsing.dot +0 -56
  236. package/external/rapidjson/doc/diagram/normalparsing.png +0 -0
  237. package/external/rapidjson/doc/diagram/simpledom.dot +0 -54
  238. package/external/rapidjson/doc/diagram/simpledom.png +0 -0
  239. package/external/rapidjson/doc/diagram/tutorial.dot +0 -58
  240. package/external/rapidjson/doc/diagram/tutorial.png +0 -0
  241. package/external/rapidjson/doc/diagram/utilityclass.dot +0 -73
  242. package/external/rapidjson/doc/diagram/utilityclass.png +0 -0
  243. package/external/rapidjson/doc/dom.md +0 -280
  244. package/external/rapidjson/doc/dom.zh-cn.md +0 -284
  245. package/external/rapidjson/doc/encoding.md +0 -146
  246. package/external/rapidjson/doc/encoding.zh-cn.md +0 -152
  247. package/external/rapidjson/doc/faq.md +0 -289
  248. package/external/rapidjson/doc/faq.zh-cn.md +0 -290
  249. package/external/rapidjson/doc/features.md +0 -104
  250. package/external/rapidjson/doc/features.zh-cn.md +0 -103
  251. package/external/rapidjson/doc/internals.md +0 -368
  252. package/external/rapidjson/doc/internals.zh-cn.md +0 -363
  253. package/external/rapidjson/doc/logo/rapidjson.png +0 -0
  254. package/external/rapidjson/doc/logo/rapidjson.svg +0 -119
  255. package/external/rapidjson/doc/misc/DoxygenLayout.xml +0 -194
  256. package/external/rapidjson/doc/misc/doxygenextra.css +0 -274
  257. package/external/rapidjson/doc/misc/footer.html +0 -11
  258. package/external/rapidjson/doc/misc/header.html +0 -24
  259. package/external/rapidjson/doc/npm.md +0 -31
  260. package/external/rapidjson/doc/performance.md +0 -26
  261. package/external/rapidjson/doc/performance.zh-cn.md +0 -26
  262. package/external/rapidjson/doc/pointer.md +0 -234
  263. package/external/rapidjson/doc/pointer.zh-cn.md +0 -234
  264. package/external/rapidjson/doc/sax.md +0 -509
  265. package/external/rapidjson/doc/sax.zh-cn.md +0 -487
  266. package/external/rapidjson/doc/schema.md +0 -505
  267. package/external/rapidjson/doc/schema.zh-cn.md +0 -237
  268. package/external/rapidjson/doc/stream.md +0 -429
  269. package/external/rapidjson/doc/stream.zh-cn.md +0 -429
  270. package/external/rapidjson/doc/tutorial.md +0 -536
  271. package/external/rapidjson/doc/tutorial.zh-cn.md +0 -535
  272. package/external/rapidjson/docker/debian/Dockerfile +0 -8
  273. package/external/rapidjson/example/CMakeLists.txt +0 -45
  274. package/external/rapidjson/example/archiver/archiver.cpp +0 -292
  275. package/external/rapidjson/example/archiver/archiver.h +0 -145
  276. package/external/rapidjson/example/archiver/archivertest.cpp +0 -287
  277. package/external/rapidjson/example/capitalize/capitalize.cpp +0 -67
  278. package/external/rapidjson/example/condense/condense.cpp +0 -32
  279. package/external/rapidjson/example/filterkey/filterkey.cpp +0 -135
  280. package/external/rapidjson/example/filterkeydom/filterkeydom.cpp +0 -170
  281. package/external/rapidjson/example/jsonx/jsonx.cpp +0 -207
  282. package/external/rapidjson/example/lookaheadparser/lookaheadparser.cpp +0 -350
  283. package/external/rapidjson/example/messagereader/messagereader.cpp +0 -105
  284. package/external/rapidjson/example/parsebyparts/parsebyparts.cpp +0 -176
  285. package/external/rapidjson/example/pretty/pretty.cpp +0 -30
  286. package/external/rapidjson/example/prettyauto/prettyauto.cpp +0 -56
  287. package/external/rapidjson/example/schemavalidator/schemavalidator.cpp +0 -78
  288. package/external/rapidjson/example/serialize/serialize.cpp +0 -173
  289. package/external/rapidjson/example/simpledom/simpledom.cpp +0 -29
  290. package/external/rapidjson/example/simplepullreader/simplepullreader.cpp +0 -53
  291. package/external/rapidjson/example/simplereader/simplereader.cpp +0 -42
  292. package/external/rapidjson/example/simplewriter/simplewriter.cpp +0 -36
  293. package/external/rapidjson/example/tutorial/tutorial.cpp +0 -151
  294. package/external/rapidjson/include/rapidjson/allocators.h +0 -284
  295. package/external/rapidjson/include/rapidjson/cursorstreamwrapper.h +0 -78
  296. package/external/rapidjson/include/rapidjson/document.h +0 -2646
  297. package/external/rapidjson/include/rapidjson/encodedstream.h +0 -299
  298. package/external/rapidjson/include/rapidjson/encodings.h +0 -716
  299. package/external/rapidjson/include/rapidjson/error/en.h +0 -74
  300. package/external/rapidjson/include/rapidjson/error/error.h +0 -161
  301. package/external/rapidjson/include/rapidjson/filereadstream.h +0 -99
  302. package/external/rapidjson/include/rapidjson/filewritestream.h +0 -104
  303. package/external/rapidjson/include/rapidjson/fwd.h +0 -151
  304. package/external/rapidjson/include/rapidjson/internal/biginteger.h +0 -290
  305. package/external/rapidjson/include/rapidjson/internal/diyfp.h +0 -271
  306. package/external/rapidjson/include/rapidjson/internal/dtoa.h +0 -245
  307. package/external/rapidjson/include/rapidjson/internal/ieee754.h +0 -78
  308. package/external/rapidjson/include/rapidjson/internal/itoa.h +0 -308
  309. package/external/rapidjson/include/rapidjson/internal/meta.h +0 -186
  310. package/external/rapidjson/include/rapidjson/internal/pow10.h +0 -55
  311. package/external/rapidjson/include/rapidjson/internal/regex.h +0 -732
  312. package/external/rapidjson/include/rapidjson/internal/stack.h +0 -231
  313. package/external/rapidjson/include/rapidjson/internal/strfunc.h +0 -69
  314. package/external/rapidjson/include/rapidjson/internal/strtod.h +0 -290
  315. package/external/rapidjson/include/rapidjson/internal/swap.h +0 -46
  316. package/external/rapidjson/include/rapidjson/istreamwrapper.h +0 -113
  317. package/external/rapidjson/include/rapidjson/memorybuffer.h +0 -70
  318. package/external/rapidjson/include/rapidjson/memorystream.h +0 -71
  319. package/external/rapidjson/include/rapidjson/msinttypes/inttypes.h +0 -316
  320. package/external/rapidjson/include/rapidjson/msinttypes/stdint.h +0 -300
  321. package/external/rapidjson/include/rapidjson/ostreamwrapper.h +0 -81
  322. package/external/rapidjson/include/rapidjson/pointer.h +0 -1357
  323. package/external/rapidjson/include/rapidjson/prettywriter.h +0 -277
  324. package/external/rapidjson/include/rapidjson/rapidjson.h +0 -654
  325. package/external/rapidjson/include/rapidjson/reader.h +0 -2230
  326. package/external/rapidjson/include/rapidjson/schema.h +0 -2494
  327. package/external/rapidjson/include/rapidjson/stream.h +0 -223
  328. package/external/rapidjson/include/rapidjson/stringbuffer.h +0 -121
  329. package/external/rapidjson/include/rapidjson/writer.h +0 -710
  330. package/external/rapidjson/include_dirs.js +0 -2
  331. package/external/rapidjson/library.json +0 -15
  332. package/external/rapidjson/license.txt +0 -57
  333. package/external/rapidjson/package.json +0 -24
  334. package/external/rapidjson/rapidjson.autopkg +0 -77
  335. package/external/rapidjson/readme.md +0 -160
  336. package/external/rapidjson/readme.zh-cn.md +0 -152
  337. package/external/rapidjson/test/CMakeLists.txt +0 -20
  338. package/external/rapidjson/test/perftest/CMakeLists.txt +0 -28
  339. package/external/rapidjson/test/perftest/misctest.cpp +0 -974
  340. package/external/rapidjson/test/perftest/perftest.cpp +0 -24
  341. package/external/rapidjson/test/perftest/perftest.h +0 -185
  342. package/external/rapidjson/test/perftest/platformtest.cpp +0 -166
  343. package/external/rapidjson/test/perftest/rapidjsontest.cpp +0 -472
  344. package/external/rapidjson/test/perftest/schematest.cpp +0 -223
  345. package/external/rapidjson/test/unittest/CMakeLists.txt +0 -92
  346. package/external/rapidjson/test/unittest/allocatorstest.cpp +0 -100
  347. package/external/rapidjson/test/unittest/bigintegertest.cpp +0 -138
  348. package/external/rapidjson/test/unittest/cursorstreamwrappertest.cpp +0 -115
  349. package/external/rapidjson/test/unittest/documenttest.cpp +0 -672
  350. package/external/rapidjson/test/unittest/dtoatest.cpp +0 -98
  351. package/external/rapidjson/test/unittest/encodedstreamtest.cpp +0 -313
  352. package/external/rapidjson/test/unittest/encodingstest.cpp +0 -451
  353. package/external/rapidjson/test/unittest/filestreamtest.cpp +0 -112
  354. package/external/rapidjson/test/unittest/fwdtest.cpp +0 -230
  355. package/external/rapidjson/test/unittest/istreamwrappertest.cpp +0 -181
  356. package/external/rapidjson/test/unittest/itoatest.cpp +0 -160
  357. package/external/rapidjson/test/unittest/jsoncheckertest.cpp +0 -143
  358. package/external/rapidjson/test/unittest/namespacetest.cpp +0 -70
  359. package/external/rapidjson/test/unittest/ostreamwrappertest.cpp +0 -92
  360. package/external/rapidjson/test/unittest/pointertest.cpp +0 -1529
  361. package/external/rapidjson/test/unittest/prettywritertest.cpp +0 -373
  362. package/external/rapidjson/test/unittest/readertest.cpp +0 -2190
  363. package/external/rapidjson/test/unittest/regextest.cpp +0 -638
  364. package/external/rapidjson/test/unittest/schematest.cpp +0 -2072
  365. package/external/rapidjson/test/unittest/simdtest.cpp +0 -219
  366. package/external/rapidjson/test/unittest/strfunctest.cpp +0 -30
  367. package/external/rapidjson/test/unittest/stringbuffertest.cpp +0 -192
  368. package/external/rapidjson/test/unittest/strtodtest.cpp +0 -132
  369. package/external/rapidjson/test/unittest/unittest.cpp +0 -51
  370. package/external/rapidjson/test/unittest/unittest.h +0 -140
  371. package/external/rapidjson/test/unittest/valuetest.cpp +0 -1851
  372. package/external/rapidjson/test/unittest/writertest.cpp +0 -598
  373. package/external/rapidjson/test/valgrind.supp +0 -17
  374. package/external/rapidjson/thirdparty/gtest/.travis.yml +0 -81
  375. package/external/rapidjson/thirdparty/gtest/BUILD.bazel +0 -175
  376. package/external/rapidjson/thirdparty/gtest/CMakeLists.txt +0 -33
  377. package/external/rapidjson/thirdparty/gtest/CONTRIBUTING.md +0 -160
  378. package/external/rapidjson/thirdparty/gtest/LICENSE +0 -28
  379. package/external/rapidjson/thirdparty/gtest/Makefile.am +0 -14
  380. package/external/rapidjson/thirdparty/gtest/README.md +0 -122
  381. package/external/rapidjson/thirdparty/gtest/WORKSPACE +0 -8
  382. package/external/rapidjson/thirdparty/gtest/appveyor.yml +0 -104
  383. package/external/rapidjson/thirdparty/gtest/ci/build-linux-autotools.sh +0 -44
  384. package/external/rapidjson/thirdparty/gtest/ci/build-linux-bazel.sh +0 -36
  385. package/external/rapidjson/thirdparty/gtest/ci/env-linux.sh +0 -41
  386. package/external/rapidjson/thirdparty/gtest/ci/env-osx.sh +0 -40
  387. package/external/rapidjson/thirdparty/gtest/ci/get-nprocessors.sh +0 -48
  388. package/external/rapidjson/thirdparty/gtest/ci/install-linux.sh +0 -49
  389. package/external/rapidjson/thirdparty/gtest/ci/install-osx.sh +0 -39
  390. package/external/rapidjson/thirdparty/gtest/ci/log-config.sh +0 -51
  391. package/external/rapidjson/thirdparty/gtest/ci/travis.sh +0 -44
  392. package/external/rapidjson/thirdparty/gtest/configure.ac +0 -16
  393. package/external/rapidjson/thirdparty/gtest/googlemock/CHANGES +0 -126
  394. package/external/rapidjson/thirdparty/gtest/googlemock/CMakeLists.txt +0 -242
  395. package/external/rapidjson/thirdparty/gtest/googlemock/CONTRIBUTORS +0 -40
  396. package/external/rapidjson/thirdparty/gtest/googlemock/LICENSE +0 -28
  397. package/external/rapidjson/thirdparty/gtest/googlemock/Makefile.am +0 -224
  398. package/external/rapidjson/thirdparty/gtest/googlemock/README.md +0 -344
  399. package/external/rapidjson/thirdparty/gtest/googlemock/build-aux/.keep +0 -0
  400. package/external/rapidjson/thirdparty/gtest/googlemock/cmake/gmock.pc.in +0 -9
  401. package/external/rapidjson/thirdparty/gtest/googlemock/cmake/gmock_main.pc.in +0 -9
  402. package/external/rapidjson/thirdparty/gtest/googlemock/configure.ac +0 -146
  403. package/external/rapidjson/thirdparty/gtest/googlemock/docs/CheatSheet.md +0 -564
  404. package/external/rapidjson/thirdparty/gtest/googlemock/docs/CookBook.md +0 -3660
  405. package/external/rapidjson/thirdparty/gtest/googlemock/docs/DesignDoc.md +0 -280
  406. package/external/rapidjson/thirdparty/gtest/googlemock/docs/Documentation.md +0 -15
  407. package/external/rapidjson/thirdparty/gtest/googlemock/docs/ForDummies.md +0 -447
  408. package/external/rapidjson/thirdparty/gtest/googlemock/docs/FrequentlyAskedQuestions.md +0 -627
  409. package/external/rapidjson/thirdparty/gtest/googlemock/docs/KnownIssues.md +0 -19
  410. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-actions.h +0 -1262
  411. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-cardinalities.h +0 -147
  412. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-actions.h +0 -2571
  413. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-actions.h.pump +0 -833
  414. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-function-mockers.h +0 -1379
  415. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-function-mockers.h.pump +0 -347
  416. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-matchers.h +0 -2258
  417. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-matchers.h.pump +0 -675
  418. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-nice-strict.h +0 -458
  419. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-nice-strict.h.pump +0 -178
  420. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-matchers.h +0 -5255
  421. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-more-actions.h +0 -246
  422. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-more-matchers.h +0 -91
  423. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-spec-builders.h +0 -1918
  424. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock.h +0 -95
  425. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-generated-actions.h +0 -8
  426. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-generated-actions.h.pump +0 -10
  427. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-matchers.h +0 -38
  428. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-port.h +0 -46
  429. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-generated-internal-utils.h +0 -286
  430. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-generated-internal-utils.h.pump +0 -136
  431. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-internal-utils.h +0 -574
  432. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-port.h +0 -87
  433. package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock.sln +0 -32
  434. package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock.vcproj +0 -191
  435. package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock_config.vsprops +0 -15
  436. package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock_main.vcproj +0 -187
  437. package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock_test.vcproj +0 -201
  438. package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock.sln +0 -46
  439. package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock.vcxproj +0 -145
  440. package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock_config.props +0 -19
  441. package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock_main.vcxproj +0 -151
  442. package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock_test.vcxproj +0 -176
  443. package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock.sln +0 -46
  444. package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock.vcxproj +0 -145
  445. package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock_config.props +0 -19
  446. package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock_main.vcxproj +0 -151
  447. package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock_test.vcxproj +0 -176
  448. package/external/rapidjson/thirdparty/gtest/googlemock/scripts/fuse_gmock_files.py +0 -240
  449. package/external/rapidjson/thirdparty/gtest/googlemock/scripts/generator/LICENSE +0 -203
  450. package/external/rapidjson/thirdparty/gtest/googlemock/scripts/generator/README +0 -34
  451. package/external/rapidjson/thirdparty/gtest/googlemock/scripts/generator/README.cppclean +0 -115
  452. package/external/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/__init__.py +0 -0
  453. package/external/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/ast.py +0 -1733
  454. package/external/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/gmock_class.py +0 -227
  455. package/external/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/gmock_class_test.py +0 -448
  456. package/external/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/keywords.py +0 -59
  457. package/external/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/tokenize.py +0 -287
  458. package/external/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/utils.py +0 -41
  459. package/external/rapidjson/thirdparty/gtest/googlemock/scripts/generator/gmock_gen.py +0 -31
  460. package/external/rapidjson/thirdparty/gtest/googlemock/scripts/gmock-config.in +0 -303
  461. package/external/rapidjson/thirdparty/gtest/googlemock/scripts/gmock_doctor.py +0 -640
  462. package/external/rapidjson/thirdparty/gtest/googlemock/scripts/upload.py +0 -1387
  463. package/external/rapidjson/thirdparty/gtest/googlemock/scripts/upload_gmock.py +0 -78
  464. package/external/rapidjson/thirdparty/gtest/googlemock/src/gmock-all.cc +0 -47
  465. package/external/rapidjson/thirdparty/gtest/googlemock/src/gmock-cardinalities.cc +0 -156
  466. package/external/rapidjson/thirdparty/gtest/googlemock/src/gmock-internal-utils.cc +0 -204
  467. package/external/rapidjson/thirdparty/gtest/googlemock/src/gmock-matchers.cc +0 -573
  468. package/external/rapidjson/thirdparty/gtest/googlemock/src/gmock-spec-builders.cc +0 -883
  469. package/external/rapidjson/thirdparty/gtest/googlemock/src/gmock.cc +0 -205
  470. package/external/rapidjson/thirdparty/gtest/googlemock/src/gmock_main.cc +0 -54
  471. package/external/rapidjson/thirdparty/gtest/googlemock/test/BUILD.bazel +0 -123
  472. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock-actions_test.cc +0 -1575
  473. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock-cardinalities_test.cc +0 -428
  474. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-actions_test.cc +0 -1230
  475. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-function-mockers_test.cc +0 -647
  476. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-internal-utils_test.cc +0 -129
  477. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-matchers_test.cc +0 -1341
  478. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock-internal-utils_test.cc +0 -718
  479. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock-matchers_test.cc +0 -6767
  480. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock-more-actions_test.cc +0 -710
  481. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock-nice-strict_test.cc +0 -511
  482. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock-port_test.cc +0 -43
  483. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock-spec-builders_test.cc +0 -2771
  484. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock_all_test.cc +0 -51
  485. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock_ex_test.cc +0 -81
  486. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock_leak_test.py +0 -108
  487. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock_leak_test_.cc +0 -100
  488. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock_link2_test.cc +0 -40
  489. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock_link_test.cc +0 -40
  490. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock_link_test.h +0 -691
  491. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock_output_test.py +0 -183
  492. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock_output_test_.cc +0 -310
  493. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock_output_test_golden.txt +0 -317
  494. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock_stress_test.cc +0 -323
  495. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock_test.cc +0 -262
  496. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock_test_utils.py +0 -110
  497. package/external/rapidjson/thirdparty/gtest/googletest/CHANGES +0 -157
  498. package/external/rapidjson/thirdparty/gtest/googletest/CMakeLists.txt +0 -312
  499. package/external/rapidjson/thirdparty/gtest/googletest/CONTRIBUTORS +0 -37
  500. package/external/rapidjson/thirdparty/gtest/googletest/LICENSE +0 -28
  501. package/external/rapidjson/thirdparty/gtest/googletest/Makefile.am +0 -339
  502. package/external/rapidjson/thirdparty/gtest/googletest/README.md +0 -341
  503. package/external/rapidjson/thirdparty/gtest/googletest/cmake/gtest.pc.in +0 -9
  504. package/external/rapidjson/thirdparty/gtest/googletest/cmake/gtest_main.pc.in +0 -10
  505. package/external/rapidjson/thirdparty/gtest/googletest/cmake/internal_utils.cmake +0 -280
  506. package/external/rapidjson/thirdparty/gtest/googletest/codegear/gtest.cbproj +0 -138
  507. package/external/rapidjson/thirdparty/gtest/googletest/codegear/gtest.groupproj +0 -54
  508. package/external/rapidjson/thirdparty/gtest/googletest/codegear/gtest_all.cc +0 -38
  509. package/external/rapidjson/thirdparty/gtest/googletest/codegear/gtest_link.cc +0 -40
  510. package/external/rapidjson/thirdparty/gtest/googletest/codegear/gtest_main.cbproj +0 -82
  511. package/external/rapidjson/thirdparty/gtest/googletest/codegear/gtest_unittest.cbproj +0 -88
  512. package/external/rapidjson/thirdparty/gtest/googletest/configure.ac +0 -68
  513. package/external/rapidjson/thirdparty/gtest/googletest/docs/Pkgconfig.md +0 -146
  514. package/external/rapidjson/thirdparty/gtest/googletest/docs/PumpManual.md +0 -177
  515. package/external/rapidjson/thirdparty/gtest/googletest/docs/XcodeGuide.md +0 -93
  516. package/external/rapidjson/thirdparty/gtest/googletest/docs/advanced.md +0 -2416
  517. package/external/rapidjson/thirdparty/gtest/googletest/docs/faq.md +0 -1092
  518. package/external/rapidjson/thirdparty/gtest/googletest/docs/primer.md +0 -536
  519. package/external/rapidjson/thirdparty/gtest/googletest/docs/samples.md +0 -14
  520. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-death-test.h +0 -342
  521. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-message.h +0 -249
  522. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-param-test.h +0 -1438
  523. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-param-test.h.pump +0 -501
  524. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-printers.h +0 -1082
  525. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-spi.h +0 -231
  526. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-test-part.h +0 -179
  527. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-typed-test.h +0 -264
  528. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest.h +0 -2332
  529. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest_pred_impl.h +0 -357
  530. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest_prod.h +0 -61
  531. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/custom/gtest-port.h +0 -70
  532. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/custom/gtest-printers.h +0 -42
  533. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/custom/gtest.h +0 -45
  534. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-death-test-internal.h +0 -275
  535. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-filepath.h +0 -205
  536. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-internal.h +0 -1277
  537. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-linked_ptr.h +0 -243
  538. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-param-util-generated.h +0 -5139
  539. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-param-util-generated.h.pump +0 -279
  540. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-param-util.h +0 -723
  541. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-port-arch.h +0 -100
  542. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-port.h +0 -2687
  543. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-string.h +0 -167
  544. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-tuple.h +0 -1020
  545. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-tuple.h.pump +0 -347
  546. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-type-util.h +0 -3347
  547. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-type-util.h.pump +0 -313
  548. package/external/rapidjson/thirdparty/gtest/googletest/m4/acx_pthread.m4 +0 -363
  549. package/external/rapidjson/thirdparty/gtest/googletest/m4/gtest.m4 +0 -74
  550. package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest-md.sln +0 -55
  551. package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest-md.vcxproj +0 -149
  552. package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest-md.vcxproj.filters +0 -18
  553. package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest.sln +0 -55
  554. package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest.vcxproj +0 -149
  555. package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest.vcxproj.filters +0 -18
  556. package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_main-md.vcxproj +0 -154
  557. package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_main-md.vcxproj.filters +0 -18
  558. package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_main.vcxproj +0 -162
  559. package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_main.vcxproj.filters +0 -18
  560. package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_prod_test-md.vcxproj +0 -199
  561. package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_prod_test-md.vcxproj.filters +0 -26
  562. package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_prod_test.vcxproj +0 -191
  563. package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_prod_test.vcxproj.filters +0 -26
  564. package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_unittest-md.vcxproj +0 -188
  565. package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_unittest-md.vcxproj.filters +0 -18
  566. package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_unittest.vcxproj +0 -180
  567. package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_unittest.vcxproj.filters +0 -18
  568. package/external/rapidjson/thirdparty/gtest/googletest/samples/prime_tables.h +0 -127
  569. package/external/rapidjson/thirdparty/gtest/googletest/samples/sample1.cc +0 -68
  570. package/external/rapidjson/thirdparty/gtest/googletest/samples/sample1.h +0 -43
  571. package/external/rapidjson/thirdparty/gtest/googletest/samples/sample10_unittest.cc +0 -140
  572. package/external/rapidjson/thirdparty/gtest/googletest/samples/sample1_unittest.cc +0 -154
  573. package/external/rapidjson/thirdparty/gtest/googletest/samples/sample2.cc +0 -56
  574. package/external/rapidjson/thirdparty/gtest/googletest/samples/sample2.h +0 -85
  575. package/external/rapidjson/thirdparty/gtest/googletest/samples/sample2_unittest.cc +0 -110
  576. package/external/rapidjson/thirdparty/gtest/googletest/samples/sample3-inl.h +0 -172
  577. package/external/rapidjson/thirdparty/gtest/googletest/samples/sample3_unittest.cc +0 -152
  578. package/external/rapidjson/thirdparty/gtest/googletest/samples/sample4.cc +0 -46
  579. package/external/rapidjson/thirdparty/gtest/googletest/samples/sample4.h +0 -53
  580. package/external/rapidjson/thirdparty/gtest/googletest/samples/sample4_unittest.cc +0 -49
  581. package/external/rapidjson/thirdparty/gtest/googletest/samples/sample5_unittest.cc +0 -199
  582. package/external/rapidjson/thirdparty/gtest/googletest/samples/sample6_unittest.cc +0 -225
  583. package/external/rapidjson/thirdparty/gtest/googletest/samples/sample7_unittest.cc +0 -118
  584. package/external/rapidjson/thirdparty/gtest/googletest/samples/sample8_unittest.cc +0 -174
  585. package/external/rapidjson/thirdparty/gtest/googletest/samples/sample9_unittest.cc +0 -157
  586. package/external/rapidjson/thirdparty/gtest/googletest/scripts/common.py +0 -83
  587. package/external/rapidjson/thirdparty/gtest/googletest/scripts/fuse_gtest_files.py +0 -253
  588. package/external/rapidjson/thirdparty/gtest/googletest/scripts/gen_gtest_pred_impl.py +0 -730
  589. package/external/rapidjson/thirdparty/gtest/googletest/scripts/gtest-config.in +0 -274
  590. package/external/rapidjson/thirdparty/gtest/googletest/scripts/pump.py +0 -855
  591. package/external/rapidjson/thirdparty/gtest/googletest/scripts/release_docs.py +0 -158
  592. package/external/rapidjson/thirdparty/gtest/googletest/scripts/upload.py +0 -1387
  593. package/external/rapidjson/thirdparty/gtest/googletest/scripts/upload_gtest.py +0 -78
  594. package/external/rapidjson/thirdparty/gtest/googletest/src/gtest-all.cc +0 -48
  595. package/external/rapidjson/thirdparty/gtest/googletest/src/gtest-death-test.cc +0 -1536
  596. package/external/rapidjson/thirdparty/gtest/googletest/src/gtest-filepath.cc +0 -385
  597. package/external/rapidjson/thirdparty/gtest/googletest/src/gtest-internal-inl.h +0 -1175
  598. package/external/rapidjson/thirdparty/gtest/googletest/src/gtest-port.cc +0 -1277
  599. package/external/rapidjson/thirdparty/gtest/googletest/src/gtest-printers.cc +0 -458
  600. package/external/rapidjson/thirdparty/gtest/googletest/src/gtest-test-part.cc +0 -102
  601. package/external/rapidjson/thirdparty/gtest/googletest/src/gtest-typed-test.cc +0 -119
  602. package/external/rapidjson/thirdparty/gtest/googletest/src/gtest.cc +0 -5846
  603. package/external/rapidjson/thirdparty/gtest/googletest/src/gtest_main.cc +0 -38
  604. package/external/rapidjson/thirdparty/gtest/googletest/test/BUILD.bazel +0 -396
  605. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-death-test_ex_test.cc +0 -93
  606. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-death-test_test.cc +0 -1424
  607. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-filepath_test.cc +0 -652
  608. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-linked_ptr_test.cc +0 -154
  609. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-listener_test.cc +0 -311
  610. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-message_test.cc +0 -159
  611. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-options_test.cc +0 -213
  612. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-param-test2_test.cc +0 -61
  613. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-param-test_test.cc +0 -1110
  614. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-param-test_test.h +0 -53
  615. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-port_test.cc +0 -1303
  616. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-printers_test.cc +0 -1737
  617. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-test-part_test.cc +0 -208
  618. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-tuple_test.cc +0 -320
  619. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-typed-test2_test.cc +0 -45
  620. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-typed-test_test.cc +0 -380
  621. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-typed-test_test.h +0 -66
  622. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-unittest-api_test.cc +0 -341
  623. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_all_test.cc +0 -47
  624. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_assert_by_exception_test.cc +0 -119
  625. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_break_on_failure_unittest.py +0 -210
  626. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_break_on_failure_unittest_.cc +0 -87
  627. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_catch_exceptions_test.py +0 -235
  628. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_catch_exceptions_test_.cc +0 -311
  629. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_color_test.py +0 -129
  630. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_color_test_.cc +0 -63
  631. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_env_var_test.py +0 -119
  632. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_env_var_test_.cc +0 -124
  633. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_environment_test.cc +0 -189
  634. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_filter_unittest.py +0 -638
  635. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_filter_unittest_.cc +0 -138
  636. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_help_test.py +0 -172
  637. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_help_test_.cc +0 -46
  638. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_json_outfiles_test.py +0 -162
  639. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_json_output_unittest.py +0 -611
  640. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_json_test_utils.py +0 -60
  641. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_list_tests_unittest.py +0 -207
  642. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_list_tests_unittest_.cc +0 -157
  643. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_main_unittest.cc +0 -45
  644. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_no_test_unittest.cc +0 -56
  645. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_output_test.py +0 -344
  646. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_output_test_.cc +0 -1067
  647. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_output_test_golden_lin.txt +0 -781
  648. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_pred_impl_unittest.cc +0 -2427
  649. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_premature_exit_test.cc +0 -127
  650. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_prod_test.cc +0 -57
  651. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_repeat_test.cc +0 -236
  652. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_shuffle_test.py +0 -325
  653. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_shuffle_test_.cc +0 -103
  654. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_sole_header_test.cc +0 -57
  655. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_stress_test.cc +0 -250
  656. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_test_utils.py +0 -318
  657. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_testbridge_test.py +0 -65
  658. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_testbridge_test_.cc +0 -44
  659. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_throw_on_failure_ex_test.cc +0 -92
  660. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_throw_on_failure_test.py +0 -171
  661. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_throw_on_failure_test_.cc +0 -72
  662. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_uninitialized_test.py +0 -69
  663. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_uninitialized_test_.cc +0 -43
  664. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_unittest.cc +0 -7797
  665. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_outfile1_test_.cc +0 -48
  666. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_outfile2_test_.cc +0 -48
  667. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_outfiles_test.py +0 -140
  668. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_output_unittest.py +0 -378
  669. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_output_unittest_.cc +0 -179
  670. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_test_utils.py +0 -196
  671. package/external/rapidjson/thirdparty/gtest/googletest/test/production.cc +0 -36
  672. package/external/rapidjson/thirdparty/gtest/googletest/test/production.h +0 -55
  673. package/external/rapidjson/thirdparty/gtest/googletest/xcode/Config/DebugProject.xcconfig +0 -30
  674. package/external/rapidjson/thirdparty/gtest/googletest/xcode/Config/FrameworkTarget.xcconfig +0 -17
  675. package/external/rapidjson/thirdparty/gtest/googletest/xcode/Config/General.xcconfig +0 -41
  676. package/external/rapidjson/thirdparty/gtest/googletest/xcode/Config/ReleaseProject.xcconfig +0 -32
  677. package/external/rapidjson/thirdparty/gtest/googletest/xcode/Config/StaticLibraryTarget.xcconfig +0 -18
  678. package/external/rapidjson/thirdparty/gtest/googletest/xcode/Config/TestTarget.xcconfig +0 -8
  679. package/external/rapidjson/thirdparty/gtest/googletest/xcode/Resources/Info.plist +0 -30
  680. package/external/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/Info.plist +0 -28
  681. package/external/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/WidgetFramework.xcodeproj/project.pbxproj +0 -457
  682. package/external/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/runtests.sh +0 -62
  683. package/external/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/widget.cc +0 -63
  684. package/external/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/widget.h +0 -59
  685. package/external/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/widget_test.cc +0 -68
  686. package/external/rapidjson/thirdparty/gtest/googletest/xcode/Scripts/runtests.sh +0 -65
  687. package/external/rapidjson/thirdparty/gtest/googletest/xcode/Scripts/versiongenerate.py +0 -100
  688. package/external/rapidjson/thirdparty/gtest/googletest/xcode/gtest.xcodeproj/project.pbxproj +0 -1182
  689. package/external/rapidjson/travis-doxygen.sh +0 -121
  690. package/include/.clang-format +0 -76
  691. package/include/eosio/abi.hpp +0 -286
  692. package/include/eosio/asset.hpp +0 -458
  693. package/include/eosio/bytes.hpp +0 -27
  694. package/include/eosio/chain_conversions.hpp +0 -450
  695. package/include/eosio/chain_types.hpp +0 -14
  696. package/include/eosio/check.hpp +0 -178
  697. package/include/eosio/convert.hpp +0 -95
  698. package/include/eosio/crypto.hpp +0 -147
  699. package/include/eosio/eosio_outcome.hpp +0 -41
  700. package/include/eosio/fixed_bytes.hpp +0 -246
  701. package/include/eosio/float.hpp +0 -35
  702. package/include/eosio/for_each_field.hpp +0 -48
  703. package/include/eosio/fpconv.c +0 -336
  704. package/include/eosio/fpconv.h +0 -41
  705. package/include/eosio/fpconv.license +0 -23
  706. package/include/eosio/from_bin.hpp +0 -272
  707. package/include/eosio/from_json.hpp +0 -737
  708. package/include/eosio/from_string.hpp +0 -28
  709. package/include/eosio/map_macro.h +0 -64
  710. package/include/eosio/murmur.hpp +0 -55
  711. package/include/eosio/name.hpp +0 -174
  712. package/include/eosio/opaque.hpp +0 -108
  713. package/include/eosio/operators.hpp +0 -71
  714. package/include/eosio/powers.h +0 -76
  715. package/include/eosio/reflection.hpp +0 -61
  716. package/include/eosio/ship_protocol.hpp +0 -850
  717. package/include/eosio/stream.hpp +0 -231
  718. package/include/eosio/symbol.hpp +0 -300
  719. package/include/eosio/time.hpp +0 -264
  720. package/include/eosio/to_bin.hpp +0 -189
  721. package/include/eosio/to_json.hpp +0 -279
  722. package/include/eosio/to_key.hpp +0 -298
  723. package/include/eosio/types.hpp +0 -97
  724. package/include/eosio/varint.hpp +0 -452
  725. package/include/outcome-basic.hpp +0 -6836
  726. package/src/abi.cpp +0 -297
  727. package/src/abieos.cpp +0 -263
  728. package/src/abieos.h +0 -76
  729. package/src/abieos.hpp +0 -1010
  730. package/src/abieos_exception.hpp +0 -89
  731. package/src/abieos_numeric.hpp +0 -94
  732. package/src/abieos_ripemd160.hpp +0 -417
  733. package/src/crypto.cpp +0 -215
  734. package/src/key_test.cpp +0 -218
  735. package/src/main.cpp +0 -242
  736. package/src/reflect_test.cpp +0 -28
  737. package/src/template_test.cpp +0 -240
  738. package/src/test.cpp +0 -940
  739. package/tools/CMakeLists.txt +0 -9
  740. package/tools/name.cpp +0 -86
@@ -1,2571 +0,0 @@
1
- // This file was GENERATED by command:
2
- // pump.py gmock-generated-actions.h.pump
3
- // DO NOT EDIT BY HAND!!!
4
-
5
- // Copyright 2007, Google Inc.
6
- // All rights reserved.
7
- //
8
- // Redistribution and use in source and binary forms, with or without
9
- // modification, are permitted provided that the following conditions are
10
- // met:
11
- //
12
- // * Redistributions of source code must retain the above copyright
13
- // notice, this list of conditions and the following disclaimer.
14
- // * Redistributions in binary form must reproduce the above
15
- // copyright notice, this list of conditions and the following disclaimer
16
- // in the documentation and/or other materials provided with the
17
- // distribution.
18
- // * Neither the name of Google Inc. nor the names of its
19
- // contributors may be used to endorse or promote products derived from
20
- // this software without specific prior written permission.
21
- //
22
- // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23
- // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24
- // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25
- // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26
- // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27
- // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28
- // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29
- // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30
- // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31
- // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32
- // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33
- //
34
- // Author: wan@google.com (Zhanyong Wan)
35
-
36
- // Google Mock - a framework for writing C++ mock classes.
37
- //
38
- // This file implements some commonly used variadic actions.
39
-
40
- #ifndef GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_ACTIONS_H_
41
- #define GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_ACTIONS_H_
42
-
43
- #include "gmock/gmock-actions.h"
44
- #include "gmock/internal/gmock-port.h"
45
-
46
- namespace testing {
47
- namespace internal {
48
-
49
- // InvokeHelper<F> knows how to unpack an N-tuple and invoke an N-ary
50
- // function, method, or callback with the unpacked values, where F is
51
- // a function type that takes N arguments.
52
- template <typename Result, typename ArgumentTuple>
53
- class InvokeHelper;
54
-
55
- template <typename R>
56
- class InvokeHelper<R, ::testing::tuple<> > {
57
- public:
58
- template <typename Function>
59
- static R Invoke(Function function, const ::testing::tuple<>&) {
60
- return function();
61
- }
62
-
63
- template <class Class, typename MethodPtr>
64
- static R InvokeMethod(Class* obj_ptr,
65
- MethodPtr method_ptr,
66
- const ::testing::tuple<>&) {
67
- return (obj_ptr->*method_ptr)();
68
- }
69
-
70
- template <typename CallbackType>
71
- static R InvokeCallback(CallbackType* callback,
72
- const ::testing::tuple<>&) {
73
- return callback->Run();
74
- }
75
- };
76
-
77
- template <typename R, typename A1>
78
- class InvokeHelper<R, ::testing::tuple<A1> > {
79
- public:
80
- template <typename Function>
81
- static R Invoke(Function function, const ::testing::tuple<A1>& args) {
82
- return function(get<0>(args));
83
- }
84
-
85
- template <class Class, typename MethodPtr>
86
- static R InvokeMethod(Class* obj_ptr,
87
- MethodPtr method_ptr,
88
- const ::testing::tuple<A1>& args) {
89
- return (obj_ptr->*method_ptr)(get<0>(args));
90
- }
91
-
92
- template <typename CallbackType>
93
- static R InvokeCallback(CallbackType* callback,
94
- const ::testing::tuple<A1>& args) {
95
- return callback->Run(get<0>(args));
96
- }
97
- };
98
-
99
- template <typename R, typename A1, typename A2>
100
- class InvokeHelper<R, ::testing::tuple<A1, A2> > {
101
- public:
102
- template <typename Function>
103
- static R Invoke(Function function, const ::testing::tuple<A1, A2>& args) {
104
- return function(get<0>(args), get<1>(args));
105
- }
106
-
107
- template <class Class, typename MethodPtr>
108
- static R InvokeMethod(Class* obj_ptr,
109
- MethodPtr method_ptr,
110
- const ::testing::tuple<A1, A2>& args) {
111
- return (obj_ptr->*method_ptr)(get<0>(args), get<1>(args));
112
- }
113
-
114
- template <typename CallbackType>
115
- static R InvokeCallback(CallbackType* callback,
116
- const ::testing::tuple<A1, A2>& args) {
117
- return callback->Run(get<0>(args), get<1>(args));
118
- }
119
- };
120
-
121
- template <typename R, typename A1, typename A2, typename A3>
122
- class InvokeHelper<R, ::testing::tuple<A1, A2, A3> > {
123
- public:
124
- template <typename Function>
125
- static R Invoke(Function function, const ::testing::tuple<A1, A2, A3>& args) {
126
- return function(get<0>(args), get<1>(args), get<2>(args));
127
- }
128
-
129
- template <class Class, typename MethodPtr>
130
- static R InvokeMethod(Class* obj_ptr,
131
- MethodPtr method_ptr,
132
- const ::testing::tuple<A1, A2, A3>& args) {
133
- return (obj_ptr->*method_ptr)(get<0>(args), get<1>(args),
134
- get<2>(args));
135
- }
136
-
137
- template <typename CallbackType>
138
- static R InvokeCallback(CallbackType* callback,
139
- const ::testing::tuple<A1, A2, A3>& args) {
140
- return callback->Run(get<0>(args), get<1>(args), get<2>(args));
141
- }
142
- };
143
-
144
- template <typename R, typename A1, typename A2, typename A3, typename A4>
145
- class InvokeHelper<R, ::testing::tuple<A1, A2, A3, A4> > {
146
- public:
147
- template <typename Function>
148
- static R Invoke(Function function, const ::testing::tuple<A1, A2, A3,
149
- A4>& args) {
150
- return function(get<0>(args), get<1>(args), get<2>(args),
151
- get<3>(args));
152
- }
153
-
154
- template <class Class, typename MethodPtr>
155
- static R InvokeMethod(Class* obj_ptr,
156
- MethodPtr method_ptr,
157
- const ::testing::tuple<A1, A2, A3, A4>& args) {
158
- return (obj_ptr->*method_ptr)(get<0>(args), get<1>(args),
159
- get<2>(args), get<3>(args));
160
- }
161
-
162
- template <typename CallbackType>
163
- static R InvokeCallback(CallbackType* callback,
164
- const ::testing::tuple<A1, A2, A3, A4>& args) {
165
- return callback->Run(get<0>(args), get<1>(args), get<2>(args),
166
- get<3>(args));
167
- }
168
- };
169
-
170
- template <typename R, typename A1, typename A2, typename A3, typename A4,
171
- typename A5>
172
- class InvokeHelper<R, ::testing::tuple<A1, A2, A3, A4, A5> > {
173
- public:
174
- template <typename Function>
175
- static R Invoke(Function function, const ::testing::tuple<A1, A2, A3, A4,
176
- A5>& args) {
177
- return function(get<0>(args), get<1>(args), get<2>(args),
178
- get<3>(args), get<4>(args));
179
- }
180
-
181
- template <class Class, typename MethodPtr>
182
- static R InvokeMethod(Class* obj_ptr,
183
- MethodPtr method_ptr,
184
- const ::testing::tuple<A1, A2, A3, A4, A5>& args) {
185
- return (obj_ptr->*method_ptr)(get<0>(args), get<1>(args),
186
- get<2>(args), get<3>(args), get<4>(args));
187
- }
188
-
189
- template <typename CallbackType>
190
- static R InvokeCallback(CallbackType* callback,
191
- const ::testing::tuple<A1, A2, A3, A4, A5>& args) {
192
- return callback->Run(get<0>(args), get<1>(args), get<2>(args),
193
- get<3>(args), get<4>(args));
194
- }
195
- };
196
-
197
- template <typename R, typename A1, typename A2, typename A3, typename A4,
198
- typename A5, typename A6>
199
- class InvokeHelper<R, ::testing::tuple<A1, A2, A3, A4, A5, A6> > {
200
- public:
201
- template <typename Function>
202
- static R Invoke(Function function, const ::testing::tuple<A1, A2, A3, A4, A5,
203
- A6>& args) {
204
- return function(get<0>(args), get<1>(args), get<2>(args),
205
- get<3>(args), get<4>(args), get<5>(args));
206
- }
207
-
208
- template <class Class, typename MethodPtr>
209
- static R InvokeMethod(Class* obj_ptr,
210
- MethodPtr method_ptr,
211
- const ::testing::tuple<A1, A2, A3, A4, A5, A6>& args) {
212
- return (obj_ptr->*method_ptr)(get<0>(args), get<1>(args),
213
- get<2>(args), get<3>(args), get<4>(args), get<5>(args));
214
- }
215
-
216
- // There is no InvokeCallback() for 6-tuples, as google3 callbacks
217
- // support 5 arguments at most.
218
- };
219
-
220
- template <typename R, typename A1, typename A2, typename A3, typename A4,
221
- typename A5, typename A6, typename A7>
222
- class InvokeHelper<R, ::testing::tuple<A1, A2, A3, A4, A5, A6, A7> > {
223
- public:
224
- template <typename Function>
225
- static R Invoke(Function function, const ::testing::tuple<A1, A2, A3, A4, A5,
226
- A6, A7>& args) {
227
- return function(get<0>(args), get<1>(args), get<2>(args),
228
- get<3>(args), get<4>(args), get<5>(args), get<6>(args));
229
- }
230
-
231
- template <class Class, typename MethodPtr>
232
- static R InvokeMethod(Class* obj_ptr,
233
- MethodPtr method_ptr,
234
- const ::testing::tuple<A1, A2, A3, A4, A5, A6,
235
- A7>& args) {
236
- return (obj_ptr->*method_ptr)(get<0>(args), get<1>(args),
237
- get<2>(args), get<3>(args), get<4>(args), get<5>(args),
238
- get<6>(args));
239
- }
240
-
241
- // There is no InvokeCallback() for 7-tuples, as google3 callbacks
242
- // support 5 arguments at most.
243
- };
244
-
245
- template <typename R, typename A1, typename A2, typename A3, typename A4,
246
- typename A5, typename A6, typename A7, typename A8>
247
- class InvokeHelper<R, ::testing::tuple<A1, A2, A3, A4, A5, A6, A7, A8> > {
248
- public:
249
- template <typename Function>
250
- static R Invoke(Function function, const ::testing::tuple<A1, A2, A3, A4, A5,
251
- A6, A7, A8>& args) {
252
- return function(get<0>(args), get<1>(args), get<2>(args),
253
- get<3>(args), get<4>(args), get<5>(args), get<6>(args),
254
- get<7>(args));
255
- }
256
-
257
- template <class Class, typename MethodPtr>
258
- static R InvokeMethod(Class* obj_ptr,
259
- MethodPtr method_ptr,
260
- const ::testing::tuple<A1, A2, A3, A4, A5, A6, A7,
261
- A8>& args) {
262
- return (obj_ptr->*method_ptr)(get<0>(args), get<1>(args),
263
- get<2>(args), get<3>(args), get<4>(args), get<5>(args),
264
- get<6>(args), get<7>(args));
265
- }
266
-
267
- // There is no InvokeCallback() for 8-tuples, as google3 callbacks
268
- // support 5 arguments at most.
269
- };
270
-
271
- template <typename R, typename A1, typename A2, typename A3, typename A4,
272
- typename A5, typename A6, typename A7, typename A8, typename A9>
273
- class InvokeHelper<R, ::testing::tuple<A1, A2, A3, A4, A5, A6, A7, A8, A9> > {
274
- public:
275
- template <typename Function>
276
- static R Invoke(Function function, const ::testing::tuple<A1, A2, A3, A4, A5,
277
- A6, A7, A8, A9>& args) {
278
- return function(get<0>(args), get<1>(args), get<2>(args),
279
- get<3>(args), get<4>(args), get<5>(args), get<6>(args),
280
- get<7>(args), get<8>(args));
281
- }
282
-
283
- template <class Class, typename MethodPtr>
284
- static R InvokeMethod(Class* obj_ptr,
285
- MethodPtr method_ptr,
286
- const ::testing::tuple<A1, A2, A3, A4, A5, A6, A7, A8,
287
- A9>& args) {
288
- return (obj_ptr->*method_ptr)(get<0>(args), get<1>(args),
289
- get<2>(args), get<3>(args), get<4>(args), get<5>(args),
290
- get<6>(args), get<7>(args), get<8>(args));
291
- }
292
-
293
- // There is no InvokeCallback() for 9-tuples, as google3 callbacks
294
- // support 5 arguments at most.
295
- };
296
-
297
- template <typename R, typename A1, typename A2, typename A3, typename A4,
298
- typename A5, typename A6, typename A7, typename A8, typename A9,
299
- typename A10>
300
- class InvokeHelper<R, ::testing::tuple<A1, A2, A3, A4, A5, A6, A7, A8, A9,
301
- A10> > {
302
- public:
303
- template <typename Function>
304
- static R Invoke(Function function, const ::testing::tuple<A1, A2, A3, A4, A5,
305
- A6, A7, A8, A9, A10>& args) {
306
- return function(get<0>(args), get<1>(args), get<2>(args),
307
- get<3>(args), get<4>(args), get<5>(args), get<6>(args),
308
- get<7>(args), get<8>(args), get<9>(args));
309
- }
310
-
311
- template <class Class, typename MethodPtr>
312
- static R InvokeMethod(Class* obj_ptr,
313
- MethodPtr method_ptr,
314
- const ::testing::tuple<A1, A2, A3, A4, A5, A6, A7, A8,
315
- A9, A10>& args) {
316
- return (obj_ptr->*method_ptr)(get<0>(args), get<1>(args),
317
- get<2>(args), get<3>(args), get<4>(args), get<5>(args),
318
- get<6>(args), get<7>(args), get<8>(args), get<9>(args));
319
- }
320
-
321
- // There is no InvokeCallback() for 10-tuples, as google3 callbacks
322
- // support 5 arguments at most.
323
- };
324
-
325
- // Implements the Invoke(callback) action.
326
- template <typename CallbackType>
327
- class InvokeCallbackAction {
328
- public:
329
- // The c'tor takes ownership of the callback.
330
- explicit InvokeCallbackAction(CallbackType* callback)
331
- : callback_(callback) {
332
- callback->CheckIsRepeatable(); // Makes sure the callback is permanent.
333
- }
334
-
335
- // This type conversion operator template allows Invoke(callback) to
336
- // be used wherever the callback's type is compatible with that of
337
- // the mock function, i.e. if the mock function's arguments can be
338
- // implicitly converted to the callback's arguments and the
339
- // callback's result can be implicitly converted to the mock
340
- // function's result.
341
- template <typename Result, typename ArgumentTuple>
342
- Result Perform(const ArgumentTuple& args) const {
343
- return InvokeHelper<Result, ArgumentTuple>::InvokeCallback(
344
- callback_.get(), args);
345
- }
346
- private:
347
- const linked_ptr<CallbackType> callback_;
348
- };
349
-
350
- // An INTERNAL macro for extracting the type of a tuple field. It's
351
- // subject to change without notice - DO NOT USE IN USER CODE!
352
- #define GMOCK_FIELD_(Tuple, N) \
353
- typename ::testing::tuple_element<N, Tuple>::type
354
-
355
- // SelectArgs<Result, ArgumentTuple, k1, k2, ..., k_n>::type is the
356
- // type of an n-ary function whose i-th (1-based) argument type is the
357
- // k{i}-th (0-based) field of ArgumentTuple, which must be a tuple
358
- // type, and whose return type is Result. For example,
359
- // SelectArgs<int, ::testing::tuple<bool, char, double, long>, 0, 3>::type
360
- // is int(bool, long).
361
- //
362
- // SelectArgs<Result, ArgumentTuple, k1, k2, ..., k_n>::Select(args)
363
- // returns the selected fields (k1, k2, ..., k_n) of args as a tuple.
364
- // For example,
365
- // SelectArgs<int, tuple<bool, char, double>, 2, 0>::Select(
366
- // ::testing::make_tuple(true, 'a', 2.5))
367
- // returns tuple (2.5, true).
368
- //
369
- // The numbers in list k1, k2, ..., k_n must be >= 0, where n can be
370
- // in the range [0, 10]. Duplicates are allowed and they don't have
371
- // to be in an ascending or descending order.
372
-
373
- template <typename Result, typename ArgumentTuple, int k1, int k2, int k3,
374
- int k4, int k5, int k6, int k7, int k8, int k9, int k10>
375
- class SelectArgs {
376
- public:
377
- typedef Result type(GMOCK_FIELD_(ArgumentTuple, k1),
378
- GMOCK_FIELD_(ArgumentTuple, k2), GMOCK_FIELD_(ArgumentTuple, k3),
379
- GMOCK_FIELD_(ArgumentTuple, k4), GMOCK_FIELD_(ArgumentTuple, k5),
380
- GMOCK_FIELD_(ArgumentTuple, k6), GMOCK_FIELD_(ArgumentTuple, k7),
381
- GMOCK_FIELD_(ArgumentTuple, k8), GMOCK_FIELD_(ArgumentTuple, k9),
382
- GMOCK_FIELD_(ArgumentTuple, k10));
383
- typedef typename Function<type>::ArgumentTuple SelectedArgs;
384
- static SelectedArgs Select(const ArgumentTuple& args) {
385
- return SelectedArgs(get<k1>(args), get<k2>(args), get<k3>(args),
386
- get<k4>(args), get<k5>(args), get<k6>(args), get<k7>(args),
387
- get<k8>(args), get<k9>(args), get<k10>(args));
388
- }
389
- };
390
-
391
- template <typename Result, typename ArgumentTuple>
392
- class SelectArgs<Result, ArgumentTuple,
393
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1> {
394
- public:
395
- typedef Result type();
396
- typedef typename Function<type>::ArgumentTuple SelectedArgs;
397
- static SelectedArgs Select(const ArgumentTuple& /* args */) {
398
- return SelectedArgs();
399
- }
400
- };
401
-
402
- template <typename Result, typename ArgumentTuple, int k1>
403
- class SelectArgs<Result, ArgumentTuple,
404
- k1, -1, -1, -1, -1, -1, -1, -1, -1, -1> {
405
- public:
406
- typedef Result type(GMOCK_FIELD_(ArgumentTuple, k1));
407
- typedef typename Function<type>::ArgumentTuple SelectedArgs;
408
- static SelectedArgs Select(const ArgumentTuple& args) {
409
- return SelectedArgs(get<k1>(args));
410
- }
411
- };
412
-
413
- template <typename Result, typename ArgumentTuple, int k1, int k2>
414
- class SelectArgs<Result, ArgumentTuple,
415
- k1, k2, -1, -1, -1, -1, -1, -1, -1, -1> {
416
- public:
417
- typedef Result type(GMOCK_FIELD_(ArgumentTuple, k1),
418
- GMOCK_FIELD_(ArgumentTuple, k2));
419
- typedef typename Function<type>::ArgumentTuple SelectedArgs;
420
- static SelectedArgs Select(const ArgumentTuple& args) {
421
- return SelectedArgs(get<k1>(args), get<k2>(args));
422
- }
423
- };
424
-
425
- template <typename Result, typename ArgumentTuple, int k1, int k2, int k3>
426
- class SelectArgs<Result, ArgumentTuple,
427
- k1, k2, k3, -1, -1, -1, -1, -1, -1, -1> {
428
- public:
429
- typedef Result type(GMOCK_FIELD_(ArgumentTuple, k1),
430
- GMOCK_FIELD_(ArgumentTuple, k2), GMOCK_FIELD_(ArgumentTuple, k3));
431
- typedef typename Function<type>::ArgumentTuple SelectedArgs;
432
- static SelectedArgs Select(const ArgumentTuple& args) {
433
- return SelectedArgs(get<k1>(args), get<k2>(args), get<k3>(args));
434
- }
435
- };
436
-
437
- template <typename Result, typename ArgumentTuple, int k1, int k2, int k3,
438
- int k4>
439
- class SelectArgs<Result, ArgumentTuple,
440
- k1, k2, k3, k4, -1, -1, -1, -1, -1, -1> {
441
- public:
442
- typedef Result type(GMOCK_FIELD_(ArgumentTuple, k1),
443
- GMOCK_FIELD_(ArgumentTuple, k2), GMOCK_FIELD_(ArgumentTuple, k3),
444
- GMOCK_FIELD_(ArgumentTuple, k4));
445
- typedef typename Function<type>::ArgumentTuple SelectedArgs;
446
- static SelectedArgs Select(const ArgumentTuple& args) {
447
- return SelectedArgs(get<k1>(args), get<k2>(args), get<k3>(args),
448
- get<k4>(args));
449
- }
450
- };
451
-
452
- template <typename Result, typename ArgumentTuple, int k1, int k2, int k3,
453
- int k4, int k5>
454
- class SelectArgs<Result, ArgumentTuple,
455
- k1, k2, k3, k4, k5, -1, -1, -1, -1, -1> {
456
- public:
457
- typedef Result type(GMOCK_FIELD_(ArgumentTuple, k1),
458
- GMOCK_FIELD_(ArgumentTuple, k2), GMOCK_FIELD_(ArgumentTuple, k3),
459
- GMOCK_FIELD_(ArgumentTuple, k4), GMOCK_FIELD_(ArgumentTuple, k5));
460
- typedef typename Function<type>::ArgumentTuple SelectedArgs;
461
- static SelectedArgs Select(const ArgumentTuple& args) {
462
- return SelectedArgs(get<k1>(args), get<k2>(args), get<k3>(args),
463
- get<k4>(args), get<k5>(args));
464
- }
465
- };
466
-
467
- template <typename Result, typename ArgumentTuple, int k1, int k2, int k3,
468
- int k4, int k5, int k6>
469
- class SelectArgs<Result, ArgumentTuple,
470
- k1, k2, k3, k4, k5, k6, -1, -1, -1, -1> {
471
- public:
472
- typedef Result type(GMOCK_FIELD_(ArgumentTuple, k1),
473
- GMOCK_FIELD_(ArgumentTuple, k2), GMOCK_FIELD_(ArgumentTuple, k3),
474
- GMOCK_FIELD_(ArgumentTuple, k4), GMOCK_FIELD_(ArgumentTuple, k5),
475
- GMOCK_FIELD_(ArgumentTuple, k6));
476
- typedef typename Function<type>::ArgumentTuple SelectedArgs;
477
- static SelectedArgs Select(const ArgumentTuple& args) {
478
- return SelectedArgs(get<k1>(args), get<k2>(args), get<k3>(args),
479
- get<k4>(args), get<k5>(args), get<k6>(args));
480
- }
481
- };
482
-
483
- template <typename Result, typename ArgumentTuple, int k1, int k2, int k3,
484
- int k4, int k5, int k6, int k7>
485
- class SelectArgs<Result, ArgumentTuple,
486
- k1, k2, k3, k4, k5, k6, k7, -1, -1, -1> {
487
- public:
488
- typedef Result type(GMOCK_FIELD_(ArgumentTuple, k1),
489
- GMOCK_FIELD_(ArgumentTuple, k2), GMOCK_FIELD_(ArgumentTuple, k3),
490
- GMOCK_FIELD_(ArgumentTuple, k4), GMOCK_FIELD_(ArgumentTuple, k5),
491
- GMOCK_FIELD_(ArgumentTuple, k6), GMOCK_FIELD_(ArgumentTuple, k7));
492
- typedef typename Function<type>::ArgumentTuple SelectedArgs;
493
- static SelectedArgs Select(const ArgumentTuple& args) {
494
- return SelectedArgs(get<k1>(args), get<k2>(args), get<k3>(args),
495
- get<k4>(args), get<k5>(args), get<k6>(args), get<k7>(args));
496
- }
497
- };
498
-
499
- template <typename Result, typename ArgumentTuple, int k1, int k2, int k3,
500
- int k4, int k5, int k6, int k7, int k8>
501
- class SelectArgs<Result, ArgumentTuple,
502
- k1, k2, k3, k4, k5, k6, k7, k8, -1, -1> {
503
- public:
504
- typedef Result type(GMOCK_FIELD_(ArgumentTuple, k1),
505
- GMOCK_FIELD_(ArgumentTuple, k2), GMOCK_FIELD_(ArgumentTuple, k3),
506
- GMOCK_FIELD_(ArgumentTuple, k4), GMOCK_FIELD_(ArgumentTuple, k5),
507
- GMOCK_FIELD_(ArgumentTuple, k6), GMOCK_FIELD_(ArgumentTuple, k7),
508
- GMOCK_FIELD_(ArgumentTuple, k8));
509
- typedef typename Function<type>::ArgumentTuple SelectedArgs;
510
- static SelectedArgs Select(const ArgumentTuple& args) {
511
- return SelectedArgs(get<k1>(args), get<k2>(args), get<k3>(args),
512
- get<k4>(args), get<k5>(args), get<k6>(args), get<k7>(args),
513
- get<k8>(args));
514
- }
515
- };
516
-
517
- template <typename Result, typename ArgumentTuple, int k1, int k2, int k3,
518
- int k4, int k5, int k6, int k7, int k8, int k9>
519
- class SelectArgs<Result, ArgumentTuple,
520
- k1, k2, k3, k4, k5, k6, k7, k8, k9, -1> {
521
- public:
522
- typedef Result type(GMOCK_FIELD_(ArgumentTuple, k1),
523
- GMOCK_FIELD_(ArgumentTuple, k2), GMOCK_FIELD_(ArgumentTuple, k3),
524
- GMOCK_FIELD_(ArgumentTuple, k4), GMOCK_FIELD_(ArgumentTuple, k5),
525
- GMOCK_FIELD_(ArgumentTuple, k6), GMOCK_FIELD_(ArgumentTuple, k7),
526
- GMOCK_FIELD_(ArgumentTuple, k8), GMOCK_FIELD_(ArgumentTuple, k9));
527
- typedef typename Function<type>::ArgumentTuple SelectedArgs;
528
- static SelectedArgs Select(const ArgumentTuple& args) {
529
- return SelectedArgs(get<k1>(args), get<k2>(args), get<k3>(args),
530
- get<k4>(args), get<k5>(args), get<k6>(args), get<k7>(args),
531
- get<k8>(args), get<k9>(args));
532
- }
533
- };
534
-
535
- #undef GMOCK_FIELD_
536
-
537
- // Implements the WithArgs action.
538
- template <typename InnerAction, int k1 = -1, int k2 = -1, int k3 = -1,
539
- int k4 = -1, int k5 = -1, int k6 = -1, int k7 = -1, int k8 = -1,
540
- int k9 = -1, int k10 = -1>
541
- class WithArgsAction {
542
- public:
543
- explicit WithArgsAction(const InnerAction& action) : action_(action) {}
544
-
545
- template <typename F>
546
- operator Action<F>() const { return MakeAction(new Impl<F>(action_)); }
547
-
548
- private:
549
- template <typename F>
550
- class Impl : public ActionInterface<F> {
551
- public:
552
- typedef typename Function<F>::Result Result;
553
- typedef typename Function<F>::ArgumentTuple ArgumentTuple;
554
-
555
- explicit Impl(const InnerAction& action) : action_(action) {}
556
-
557
- virtual Result Perform(const ArgumentTuple& args) {
558
- return action_.Perform(SelectArgs<Result, ArgumentTuple, k1, k2, k3, k4,
559
- k5, k6, k7, k8, k9, k10>::Select(args));
560
- }
561
-
562
- private:
563
- typedef typename SelectArgs<Result, ArgumentTuple,
564
- k1, k2, k3, k4, k5, k6, k7, k8, k9, k10>::type InnerFunctionType;
565
-
566
- Action<InnerFunctionType> action_;
567
- };
568
-
569
- const InnerAction action_;
570
-
571
- GTEST_DISALLOW_ASSIGN_(WithArgsAction);
572
- };
573
-
574
- // A macro from the ACTION* family (defined later in this file)
575
- // defines an action that can be used in a mock function. Typically,
576
- // these actions only care about a subset of the arguments of the mock
577
- // function. For example, if such an action only uses the second
578
- // argument, it can be used in any mock function that takes >= 2
579
- // arguments where the type of the second argument is compatible.
580
- //
581
- // Therefore, the action implementation must be prepared to take more
582
- // arguments than it needs. The ExcessiveArg type is used to
583
- // represent those excessive arguments. In order to keep the compiler
584
- // error messages tractable, we define it in the testing namespace
585
- // instead of testing::internal. However, this is an INTERNAL TYPE
586
- // and subject to change without notice, so a user MUST NOT USE THIS
587
- // TYPE DIRECTLY.
588
- struct ExcessiveArg {};
589
-
590
- // A helper class needed for implementing the ACTION* macros.
591
- template <typename Result, class Impl>
592
- class ActionHelper {
593
- public:
594
- static Result Perform(Impl* impl, const ::testing::tuple<>& args) {
595
- return impl->template gmock_PerformImpl<>(args, ExcessiveArg(),
596
- ExcessiveArg(), ExcessiveArg(), ExcessiveArg(), ExcessiveArg(),
597
- ExcessiveArg(), ExcessiveArg(), ExcessiveArg(), ExcessiveArg(),
598
- ExcessiveArg());
599
- }
600
-
601
- template <typename A0>
602
- static Result Perform(Impl* impl, const ::testing::tuple<A0>& args) {
603
- return impl->template gmock_PerformImpl<A0>(args, get<0>(args),
604
- ExcessiveArg(), ExcessiveArg(), ExcessiveArg(), ExcessiveArg(),
605
- ExcessiveArg(), ExcessiveArg(), ExcessiveArg(), ExcessiveArg(),
606
- ExcessiveArg());
607
- }
608
-
609
- template <typename A0, typename A1>
610
- static Result Perform(Impl* impl, const ::testing::tuple<A0, A1>& args) {
611
- return impl->template gmock_PerformImpl<A0, A1>(args, get<0>(args),
612
- get<1>(args), ExcessiveArg(), ExcessiveArg(), ExcessiveArg(),
613
- ExcessiveArg(), ExcessiveArg(), ExcessiveArg(), ExcessiveArg(),
614
- ExcessiveArg());
615
- }
616
-
617
- template <typename A0, typename A1, typename A2>
618
- static Result Perform(Impl* impl, const ::testing::tuple<A0, A1, A2>& args) {
619
- return impl->template gmock_PerformImpl<A0, A1, A2>(args, get<0>(args),
620
- get<1>(args), get<2>(args), ExcessiveArg(), ExcessiveArg(),
621
- ExcessiveArg(), ExcessiveArg(), ExcessiveArg(), ExcessiveArg(),
622
- ExcessiveArg());
623
- }
624
-
625
- template <typename A0, typename A1, typename A2, typename A3>
626
- static Result Perform(Impl* impl, const ::testing::tuple<A0, A1, A2,
627
- A3>& args) {
628
- return impl->template gmock_PerformImpl<A0, A1, A2, A3>(args, get<0>(args),
629
- get<1>(args), get<2>(args), get<3>(args), ExcessiveArg(),
630
- ExcessiveArg(), ExcessiveArg(), ExcessiveArg(), ExcessiveArg(),
631
- ExcessiveArg());
632
- }
633
-
634
- template <typename A0, typename A1, typename A2, typename A3, typename A4>
635
- static Result Perform(Impl* impl, const ::testing::tuple<A0, A1, A2, A3,
636
- A4>& args) {
637
- return impl->template gmock_PerformImpl<A0, A1, A2, A3, A4>(args,
638
- get<0>(args), get<1>(args), get<2>(args), get<3>(args), get<4>(args),
639
- ExcessiveArg(), ExcessiveArg(), ExcessiveArg(), ExcessiveArg(),
640
- ExcessiveArg());
641
- }
642
-
643
- template <typename A0, typename A1, typename A2, typename A3, typename A4,
644
- typename A5>
645
- static Result Perform(Impl* impl, const ::testing::tuple<A0, A1, A2, A3, A4,
646
- A5>& args) {
647
- return impl->template gmock_PerformImpl<A0, A1, A2, A3, A4, A5>(args,
648
- get<0>(args), get<1>(args), get<2>(args), get<3>(args), get<4>(args),
649
- get<5>(args), ExcessiveArg(), ExcessiveArg(), ExcessiveArg(),
650
- ExcessiveArg());
651
- }
652
-
653
- template <typename A0, typename A1, typename A2, typename A3, typename A4,
654
- typename A5, typename A6>
655
- static Result Perform(Impl* impl, const ::testing::tuple<A0, A1, A2, A3, A4,
656
- A5, A6>& args) {
657
- return impl->template gmock_PerformImpl<A0, A1, A2, A3, A4, A5, A6>(args,
658
- get<0>(args), get<1>(args), get<2>(args), get<3>(args), get<4>(args),
659
- get<5>(args), get<6>(args), ExcessiveArg(), ExcessiveArg(),
660
- ExcessiveArg());
661
- }
662
-
663
- template <typename A0, typename A1, typename A2, typename A3, typename A4,
664
- typename A5, typename A6, typename A7>
665
- static Result Perform(Impl* impl, const ::testing::tuple<A0, A1, A2, A3, A4,
666
- A5, A6, A7>& args) {
667
- return impl->template gmock_PerformImpl<A0, A1, A2, A3, A4, A5, A6,
668
- A7>(args, get<0>(args), get<1>(args), get<2>(args), get<3>(args),
669
- get<4>(args), get<5>(args), get<6>(args), get<7>(args), ExcessiveArg(),
670
- ExcessiveArg());
671
- }
672
-
673
- template <typename A0, typename A1, typename A2, typename A3, typename A4,
674
- typename A5, typename A6, typename A7, typename A8>
675
- static Result Perform(Impl* impl, const ::testing::tuple<A0, A1, A2, A3, A4,
676
- A5, A6, A7, A8>& args) {
677
- return impl->template gmock_PerformImpl<A0, A1, A2, A3, A4, A5, A6, A7,
678
- A8>(args, get<0>(args), get<1>(args), get<2>(args), get<3>(args),
679
- get<4>(args), get<5>(args), get<6>(args), get<7>(args), get<8>(args),
680
- ExcessiveArg());
681
- }
682
-
683
- template <typename A0, typename A1, typename A2, typename A3, typename A4,
684
- typename A5, typename A6, typename A7, typename A8, typename A9>
685
- static Result Perform(Impl* impl, const ::testing::tuple<A0, A1, A2, A3, A4,
686
- A5, A6, A7, A8, A9>& args) {
687
- return impl->template gmock_PerformImpl<A0, A1, A2, A3, A4, A5, A6, A7, A8,
688
- A9>(args, get<0>(args), get<1>(args), get<2>(args), get<3>(args),
689
- get<4>(args), get<5>(args), get<6>(args), get<7>(args), get<8>(args),
690
- get<9>(args));
691
- }
692
- };
693
-
694
- } // namespace internal
695
-
696
- // Various overloads for Invoke().
697
-
698
- // WithArgs<N1, N2, ..., Nk>(an_action) creates an action that passes
699
- // the selected arguments of the mock function to an_action and
700
- // performs it. It serves as an adaptor between actions with
701
- // different argument lists. C++ doesn't support default arguments for
702
- // function templates, so we have to overload it.
703
- template <int k1, typename InnerAction>
704
- inline internal::WithArgsAction<InnerAction, k1>
705
- WithArgs(const InnerAction& action) {
706
- return internal::WithArgsAction<InnerAction, k1>(action);
707
- }
708
-
709
- template <int k1, int k2, typename InnerAction>
710
- inline internal::WithArgsAction<InnerAction, k1, k2>
711
- WithArgs(const InnerAction& action) {
712
- return internal::WithArgsAction<InnerAction, k1, k2>(action);
713
- }
714
-
715
- template <int k1, int k2, int k3, typename InnerAction>
716
- inline internal::WithArgsAction<InnerAction, k1, k2, k3>
717
- WithArgs(const InnerAction& action) {
718
- return internal::WithArgsAction<InnerAction, k1, k2, k3>(action);
719
- }
720
-
721
- template <int k1, int k2, int k3, int k4, typename InnerAction>
722
- inline internal::WithArgsAction<InnerAction, k1, k2, k3, k4>
723
- WithArgs(const InnerAction& action) {
724
- return internal::WithArgsAction<InnerAction, k1, k2, k3, k4>(action);
725
- }
726
-
727
- template <int k1, int k2, int k3, int k4, int k5, typename InnerAction>
728
- inline internal::WithArgsAction<InnerAction, k1, k2, k3, k4, k5>
729
- WithArgs(const InnerAction& action) {
730
- return internal::WithArgsAction<InnerAction, k1, k2, k3, k4, k5>(action);
731
- }
732
-
733
- template <int k1, int k2, int k3, int k4, int k5, int k6, typename InnerAction>
734
- inline internal::WithArgsAction<InnerAction, k1, k2, k3, k4, k5, k6>
735
- WithArgs(const InnerAction& action) {
736
- return internal::WithArgsAction<InnerAction, k1, k2, k3, k4, k5, k6>(action);
737
- }
738
-
739
- template <int k1, int k2, int k3, int k4, int k5, int k6, int k7,
740
- typename InnerAction>
741
- inline internal::WithArgsAction<InnerAction, k1, k2, k3, k4, k5, k6, k7>
742
- WithArgs(const InnerAction& action) {
743
- return internal::WithArgsAction<InnerAction, k1, k2, k3, k4, k5, k6,
744
- k7>(action);
745
- }
746
-
747
- template <int k1, int k2, int k3, int k4, int k5, int k6, int k7, int k8,
748
- typename InnerAction>
749
- inline internal::WithArgsAction<InnerAction, k1, k2, k3, k4, k5, k6, k7, k8>
750
- WithArgs(const InnerAction& action) {
751
- return internal::WithArgsAction<InnerAction, k1, k2, k3, k4, k5, k6, k7,
752
- k8>(action);
753
- }
754
-
755
- template <int k1, int k2, int k3, int k4, int k5, int k6, int k7, int k8,
756
- int k9, typename InnerAction>
757
- inline internal::WithArgsAction<InnerAction, k1, k2, k3, k4, k5, k6, k7, k8, k9>
758
- WithArgs(const InnerAction& action) {
759
- return internal::WithArgsAction<InnerAction, k1, k2, k3, k4, k5, k6, k7, k8,
760
- k9>(action);
761
- }
762
-
763
- template <int k1, int k2, int k3, int k4, int k5, int k6, int k7, int k8,
764
- int k9, int k10, typename InnerAction>
765
- inline internal::WithArgsAction<InnerAction, k1, k2, k3, k4, k5, k6, k7, k8,
766
- k9, k10>
767
- WithArgs(const InnerAction& action) {
768
- return internal::WithArgsAction<InnerAction, k1, k2, k3, k4, k5, k6, k7, k8,
769
- k9, k10>(action);
770
- }
771
-
772
- // Creates an action that does actions a1, a2, ..., sequentially in
773
- // each invocation.
774
- template <typename Action1, typename Action2>
775
- inline internal::DoBothAction<Action1, Action2>
776
- DoAll(Action1 a1, Action2 a2) {
777
- return internal::DoBothAction<Action1, Action2>(a1, a2);
778
- }
779
-
780
- template <typename Action1, typename Action2, typename Action3>
781
- inline internal::DoBothAction<Action1, internal::DoBothAction<Action2,
782
- Action3> >
783
- DoAll(Action1 a1, Action2 a2, Action3 a3) {
784
- return DoAll(a1, DoAll(a2, a3));
785
- }
786
-
787
- template <typename Action1, typename Action2, typename Action3,
788
- typename Action4>
789
- inline internal::DoBothAction<Action1, internal::DoBothAction<Action2,
790
- internal::DoBothAction<Action3, Action4> > >
791
- DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4) {
792
- return DoAll(a1, DoAll(a2, a3, a4));
793
- }
794
-
795
- template <typename Action1, typename Action2, typename Action3,
796
- typename Action4, typename Action5>
797
- inline internal::DoBothAction<Action1, internal::DoBothAction<Action2,
798
- internal::DoBothAction<Action3, internal::DoBothAction<Action4,
799
- Action5> > > >
800
- DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5) {
801
- return DoAll(a1, DoAll(a2, a3, a4, a5));
802
- }
803
-
804
- template <typename Action1, typename Action2, typename Action3,
805
- typename Action4, typename Action5, typename Action6>
806
- inline internal::DoBothAction<Action1, internal::DoBothAction<Action2,
807
- internal::DoBothAction<Action3, internal::DoBothAction<Action4,
808
- internal::DoBothAction<Action5, Action6> > > > >
809
- DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6) {
810
- return DoAll(a1, DoAll(a2, a3, a4, a5, a6));
811
- }
812
-
813
- template <typename Action1, typename Action2, typename Action3,
814
- typename Action4, typename Action5, typename Action6, typename Action7>
815
- inline internal::DoBothAction<Action1, internal::DoBothAction<Action2,
816
- internal::DoBothAction<Action3, internal::DoBothAction<Action4,
817
- internal::DoBothAction<Action5, internal::DoBothAction<Action6,
818
- Action7> > > > > >
819
- DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
820
- Action7 a7) {
821
- return DoAll(a1, DoAll(a2, a3, a4, a5, a6, a7));
822
- }
823
-
824
- template <typename Action1, typename Action2, typename Action3,
825
- typename Action4, typename Action5, typename Action6, typename Action7,
826
- typename Action8>
827
- inline internal::DoBothAction<Action1, internal::DoBothAction<Action2,
828
- internal::DoBothAction<Action3, internal::DoBothAction<Action4,
829
- internal::DoBothAction<Action5, internal::DoBothAction<Action6,
830
- internal::DoBothAction<Action7, Action8> > > > > > >
831
- DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
832
- Action7 a7, Action8 a8) {
833
- return DoAll(a1, DoAll(a2, a3, a4, a5, a6, a7, a8));
834
- }
835
-
836
- template <typename Action1, typename Action2, typename Action3,
837
- typename Action4, typename Action5, typename Action6, typename Action7,
838
- typename Action8, typename Action9>
839
- inline internal::DoBothAction<Action1, internal::DoBothAction<Action2,
840
- internal::DoBothAction<Action3, internal::DoBothAction<Action4,
841
- internal::DoBothAction<Action5, internal::DoBothAction<Action6,
842
- internal::DoBothAction<Action7, internal::DoBothAction<Action8,
843
- Action9> > > > > > > >
844
- DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
845
- Action7 a7, Action8 a8, Action9 a9) {
846
- return DoAll(a1, DoAll(a2, a3, a4, a5, a6, a7, a8, a9));
847
- }
848
-
849
- template <typename Action1, typename Action2, typename Action3,
850
- typename Action4, typename Action5, typename Action6, typename Action7,
851
- typename Action8, typename Action9, typename Action10>
852
- inline internal::DoBothAction<Action1, internal::DoBothAction<Action2,
853
- internal::DoBothAction<Action3, internal::DoBothAction<Action4,
854
- internal::DoBothAction<Action5, internal::DoBothAction<Action6,
855
- internal::DoBothAction<Action7, internal::DoBothAction<Action8,
856
- internal::DoBothAction<Action9, Action10> > > > > > > > >
857
- DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6,
858
- Action7 a7, Action8 a8, Action9 a9, Action10 a10) {
859
- return DoAll(a1, DoAll(a2, a3, a4, a5, a6, a7, a8, a9, a10));
860
- }
861
-
862
- } // namespace testing
863
-
864
- // The ACTION* family of macros can be used in a namespace scope to
865
- // define custom actions easily. The syntax:
866
- //
867
- // ACTION(name) { statements; }
868
- //
869
- // will define an action with the given name that executes the
870
- // statements. The value returned by the statements will be used as
871
- // the return value of the action. Inside the statements, you can
872
- // refer to the K-th (0-based) argument of the mock function by
873
- // 'argK', and refer to its type by 'argK_type'. For example:
874
- //
875
- // ACTION(IncrementArg1) {
876
- // arg1_type temp = arg1;
877
- // return ++(*temp);
878
- // }
879
- //
880
- // allows you to write
881
- //
882
- // ...WillOnce(IncrementArg1());
883
- //
884
- // You can also refer to the entire argument tuple and its type by
885
- // 'args' and 'args_type', and refer to the mock function type and its
886
- // return type by 'function_type' and 'return_type'.
887
- //
888
- // Note that you don't need to specify the types of the mock function
889
- // arguments. However rest assured that your code is still type-safe:
890
- // you'll get a compiler error if *arg1 doesn't support the ++
891
- // operator, or if the type of ++(*arg1) isn't compatible with the
892
- // mock function's return type, for example.
893
- //
894
- // Sometimes you'll want to parameterize the action. For that you can use
895
- // another macro:
896
- //
897
- // ACTION_P(name, param_name) { statements; }
898
- //
899
- // For example:
900
- //
901
- // ACTION_P(Add, n) { return arg0 + n; }
902
- //
903
- // will allow you to write:
904
- //
905
- // ...WillOnce(Add(5));
906
- //
907
- // Note that you don't need to provide the type of the parameter
908
- // either. If you need to reference the type of a parameter named
909
- // 'foo', you can write 'foo_type'. For example, in the body of
910
- // ACTION_P(Add, n) above, you can write 'n_type' to refer to the type
911
- // of 'n'.
912
- //
913
- // We also provide ACTION_P2, ACTION_P3, ..., up to ACTION_P10 to support
914
- // multi-parameter actions.
915
- //
916
- // For the purpose of typing, you can view
917
- //
918
- // ACTION_Pk(Foo, p1, ..., pk) { ... }
919
- //
920
- // as shorthand for
921
- //
922
- // template <typename p1_type, ..., typename pk_type>
923
- // FooActionPk<p1_type, ..., pk_type> Foo(p1_type p1, ..., pk_type pk) { ... }
924
- //
925
- // In particular, you can provide the template type arguments
926
- // explicitly when invoking Foo(), as in Foo<long, bool>(5, false);
927
- // although usually you can rely on the compiler to infer the types
928
- // for you automatically. You can assign the result of expression
929
- // Foo(p1, ..., pk) to a variable of type FooActionPk<p1_type, ...,
930
- // pk_type>. This can be useful when composing actions.
931
- //
932
- // You can also overload actions with different numbers of parameters:
933
- //
934
- // ACTION_P(Plus, a) { ... }
935
- // ACTION_P2(Plus, a, b) { ... }
936
- //
937
- // While it's tempting to always use the ACTION* macros when defining
938
- // a new action, you should also consider implementing ActionInterface
939
- // or using MakePolymorphicAction() instead, especially if you need to
940
- // use the action a lot. While these approaches require more work,
941
- // they give you more control on the types of the mock function
942
- // arguments and the action parameters, which in general leads to
943
- // better compiler error messages that pay off in the long run. They
944
- // also allow overloading actions based on parameter types (as opposed
945
- // to just based on the number of parameters).
946
- //
947
- // CAVEAT:
948
- //
949
- // ACTION*() can only be used in a namespace scope. The reason is
950
- // that C++ doesn't yet allow function-local types to be used to
951
- // instantiate templates. The up-coming C++0x standard will fix this.
952
- // Once that's done, we'll consider supporting using ACTION*() inside
953
- // a function.
954
- //
955
- // MORE INFORMATION:
956
- //
957
- // To learn more about using these macros, please search for 'ACTION'
958
- // on https://github.com/google/googletest/blob/master/googlemock/docs/CookBook.md
959
-
960
- // An internal macro needed for implementing ACTION*().
961
- #define GMOCK_ACTION_ARG_TYPES_AND_NAMES_UNUSED_\
962
- const args_type& args GTEST_ATTRIBUTE_UNUSED_, \
963
- arg0_type arg0 GTEST_ATTRIBUTE_UNUSED_, \
964
- arg1_type arg1 GTEST_ATTRIBUTE_UNUSED_, \
965
- arg2_type arg2 GTEST_ATTRIBUTE_UNUSED_, \
966
- arg3_type arg3 GTEST_ATTRIBUTE_UNUSED_, \
967
- arg4_type arg4 GTEST_ATTRIBUTE_UNUSED_, \
968
- arg5_type arg5 GTEST_ATTRIBUTE_UNUSED_, \
969
- arg6_type arg6 GTEST_ATTRIBUTE_UNUSED_, \
970
- arg7_type arg7 GTEST_ATTRIBUTE_UNUSED_, \
971
- arg8_type arg8 GTEST_ATTRIBUTE_UNUSED_, \
972
- arg9_type arg9 GTEST_ATTRIBUTE_UNUSED_
973
-
974
- // Sometimes you want to give an action explicit template parameters
975
- // that cannot be inferred from its value parameters. ACTION() and
976
- // ACTION_P*() don't support that. ACTION_TEMPLATE() remedies that
977
- // and can be viewed as an extension to ACTION() and ACTION_P*().
978
- //
979
- // The syntax:
980
- //
981
- // ACTION_TEMPLATE(ActionName,
982
- // HAS_m_TEMPLATE_PARAMS(kind1, name1, ..., kind_m, name_m),
983
- // AND_n_VALUE_PARAMS(p1, ..., p_n)) { statements; }
984
- //
985
- // defines an action template that takes m explicit template
986
- // parameters and n value parameters. name_i is the name of the i-th
987
- // template parameter, and kind_i specifies whether it's a typename,
988
- // an integral constant, or a template. p_i is the name of the i-th
989
- // value parameter.
990
- //
991
- // Example:
992
- //
993
- // // DuplicateArg<k, T>(output) converts the k-th argument of the mock
994
- // // function to type T and copies it to *output.
995
- // ACTION_TEMPLATE(DuplicateArg,
996
- // HAS_2_TEMPLATE_PARAMS(int, k, typename, T),
997
- // AND_1_VALUE_PARAMS(output)) {
998
- // *output = T(::testing::get<k>(args));
999
- // }
1000
- // ...
1001
- // int n;
1002
- // EXPECT_CALL(mock, Foo(_, _))
1003
- // .WillOnce(DuplicateArg<1, unsigned char>(&n));
1004
- //
1005
- // To create an instance of an action template, write:
1006
- //
1007
- // ActionName<t1, ..., t_m>(v1, ..., v_n)
1008
- //
1009
- // where the ts are the template arguments and the vs are the value
1010
- // arguments. The value argument types are inferred by the compiler.
1011
- // If you want to explicitly specify the value argument types, you can
1012
- // provide additional template arguments:
1013
- //
1014
- // ActionName<t1, ..., t_m, u1, ..., u_k>(v1, ..., v_n)
1015
- //
1016
- // where u_i is the desired type of v_i.
1017
- //
1018
- // ACTION_TEMPLATE and ACTION/ACTION_P* can be overloaded on the
1019
- // number of value parameters, but not on the number of template
1020
- // parameters. Without the restriction, the meaning of the following
1021
- // is unclear:
1022
- //
1023
- // OverloadedAction<int, bool>(x);
1024
- //
1025
- // Are we using a single-template-parameter action where 'bool' refers
1026
- // to the type of x, or are we using a two-template-parameter action
1027
- // where the compiler is asked to infer the type of x?
1028
- //
1029
- // Implementation notes:
1030
- //
1031
- // GMOCK_INTERNAL_*_HAS_m_TEMPLATE_PARAMS and
1032
- // GMOCK_INTERNAL_*_AND_n_VALUE_PARAMS are internal macros for
1033
- // implementing ACTION_TEMPLATE. The main trick we use is to create
1034
- // new macro invocations when expanding a macro. For example, we have
1035
- //
1036
- // #define ACTION_TEMPLATE(name, template_params, value_params)
1037
- // ... GMOCK_INTERNAL_DECL_##template_params ...
1038
- //
1039
- // which causes ACTION_TEMPLATE(..., HAS_1_TEMPLATE_PARAMS(typename, T), ...)
1040
- // to expand to
1041
- //
1042
- // ... GMOCK_INTERNAL_DECL_HAS_1_TEMPLATE_PARAMS(typename, T) ...
1043
- //
1044
- // Since GMOCK_INTERNAL_DECL_HAS_1_TEMPLATE_PARAMS is a macro, the
1045
- // preprocessor will continue to expand it to
1046
- //
1047
- // ... typename T ...
1048
- //
1049
- // This technique conforms to the C++ standard and is portable. It
1050
- // allows us to implement action templates using O(N) code, where N is
1051
- // the maximum number of template/value parameters supported. Without
1052
- // using it, we'd have to devote O(N^2) amount of code to implement all
1053
- // combinations of m and n.
1054
-
1055
- // Declares the template parameters.
1056
- #define GMOCK_INTERNAL_DECL_HAS_1_TEMPLATE_PARAMS(kind0, name0) kind0 name0
1057
- #define GMOCK_INTERNAL_DECL_HAS_2_TEMPLATE_PARAMS(kind0, name0, kind1, \
1058
- name1) kind0 name0, kind1 name1
1059
- #define GMOCK_INTERNAL_DECL_HAS_3_TEMPLATE_PARAMS(kind0, name0, kind1, name1, \
1060
- kind2, name2) kind0 name0, kind1 name1, kind2 name2
1061
- #define GMOCK_INTERNAL_DECL_HAS_4_TEMPLATE_PARAMS(kind0, name0, kind1, name1, \
1062
- kind2, name2, kind3, name3) kind0 name0, kind1 name1, kind2 name2, \
1063
- kind3 name3
1064
- #define GMOCK_INTERNAL_DECL_HAS_5_TEMPLATE_PARAMS(kind0, name0, kind1, name1, \
1065
- kind2, name2, kind3, name3, kind4, name4) kind0 name0, kind1 name1, \
1066
- kind2 name2, kind3 name3, kind4 name4
1067
- #define GMOCK_INTERNAL_DECL_HAS_6_TEMPLATE_PARAMS(kind0, name0, kind1, name1, \
1068
- kind2, name2, kind3, name3, kind4, name4, kind5, name5) kind0 name0, \
1069
- kind1 name1, kind2 name2, kind3 name3, kind4 name4, kind5 name5
1070
- #define GMOCK_INTERNAL_DECL_HAS_7_TEMPLATE_PARAMS(kind0, name0, kind1, name1, \
1071
- kind2, name2, kind3, name3, kind4, name4, kind5, name5, kind6, \
1072
- name6) kind0 name0, kind1 name1, kind2 name2, kind3 name3, kind4 name4, \
1073
- kind5 name5, kind6 name6
1074
- #define GMOCK_INTERNAL_DECL_HAS_8_TEMPLATE_PARAMS(kind0, name0, kind1, name1, \
1075
- kind2, name2, kind3, name3, kind4, name4, kind5, name5, kind6, name6, \
1076
- kind7, name7) kind0 name0, kind1 name1, kind2 name2, kind3 name3, \
1077
- kind4 name4, kind5 name5, kind6 name6, kind7 name7
1078
- #define GMOCK_INTERNAL_DECL_HAS_9_TEMPLATE_PARAMS(kind0, name0, kind1, name1, \
1079
- kind2, name2, kind3, name3, kind4, name4, kind5, name5, kind6, name6, \
1080
- kind7, name7, kind8, name8) kind0 name0, kind1 name1, kind2 name2, \
1081
- kind3 name3, kind4 name4, kind5 name5, kind6 name6, kind7 name7, \
1082
- kind8 name8
1083
- #define GMOCK_INTERNAL_DECL_HAS_10_TEMPLATE_PARAMS(kind0, name0, kind1, \
1084
- name1, kind2, name2, kind3, name3, kind4, name4, kind5, name5, kind6, \
1085
- name6, kind7, name7, kind8, name8, kind9, name9) kind0 name0, \
1086
- kind1 name1, kind2 name2, kind3 name3, kind4 name4, kind5 name5, \
1087
- kind6 name6, kind7 name7, kind8 name8, kind9 name9
1088
-
1089
- // Lists the template parameters.
1090
- #define GMOCK_INTERNAL_LIST_HAS_1_TEMPLATE_PARAMS(kind0, name0) name0
1091
- #define GMOCK_INTERNAL_LIST_HAS_2_TEMPLATE_PARAMS(kind0, name0, kind1, \
1092
- name1) name0, name1
1093
- #define GMOCK_INTERNAL_LIST_HAS_3_TEMPLATE_PARAMS(kind0, name0, kind1, name1, \
1094
- kind2, name2) name0, name1, name2
1095
- #define GMOCK_INTERNAL_LIST_HAS_4_TEMPLATE_PARAMS(kind0, name0, kind1, name1, \
1096
- kind2, name2, kind3, name3) name0, name1, name2, name3
1097
- #define GMOCK_INTERNAL_LIST_HAS_5_TEMPLATE_PARAMS(kind0, name0, kind1, name1, \
1098
- kind2, name2, kind3, name3, kind4, name4) name0, name1, name2, name3, \
1099
- name4
1100
- #define GMOCK_INTERNAL_LIST_HAS_6_TEMPLATE_PARAMS(kind0, name0, kind1, name1, \
1101
- kind2, name2, kind3, name3, kind4, name4, kind5, name5) name0, name1, \
1102
- name2, name3, name4, name5
1103
- #define GMOCK_INTERNAL_LIST_HAS_7_TEMPLATE_PARAMS(kind0, name0, kind1, name1, \
1104
- kind2, name2, kind3, name3, kind4, name4, kind5, name5, kind6, \
1105
- name6) name0, name1, name2, name3, name4, name5, name6
1106
- #define GMOCK_INTERNAL_LIST_HAS_8_TEMPLATE_PARAMS(kind0, name0, kind1, name1, \
1107
- kind2, name2, kind3, name3, kind4, name4, kind5, name5, kind6, name6, \
1108
- kind7, name7) name0, name1, name2, name3, name4, name5, name6, name7
1109
- #define GMOCK_INTERNAL_LIST_HAS_9_TEMPLATE_PARAMS(kind0, name0, kind1, name1, \
1110
- kind2, name2, kind3, name3, kind4, name4, kind5, name5, kind6, name6, \
1111
- kind7, name7, kind8, name8) name0, name1, name2, name3, name4, name5, \
1112
- name6, name7, name8
1113
- #define GMOCK_INTERNAL_LIST_HAS_10_TEMPLATE_PARAMS(kind0, name0, kind1, \
1114
- name1, kind2, name2, kind3, name3, kind4, name4, kind5, name5, kind6, \
1115
- name6, kind7, name7, kind8, name8, kind9, name9) name0, name1, name2, \
1116
- name3, name4, name5, name6, name7, name8, name9
1117
-
1118
- // Declares the types of value parameters.
1119
- #define GMOCK_INTERNAL_DECL_TYPE_AND_0_VALUE_PARAMS()
1120
- #define GMOCK_INTERNAL_DECL_TYPE_AND_1_VALUE_PARAMS(p0) , typename p0##_type
1121
- #define GMOCK_INTERNAL_DECL_TYPE_AND_2_VALUE_PARAMS(p0, p1) , \
1122
- typename p0##_type, typename p1##_type
1123
- #define GMOCK_INTERNAL_DECL_TYPE_AND_3_VALUE_PARAMS(p0, p1, p2) , \
1124
- typename p0##_type, typename p1##_type, typename p2##_type
1125
- #define GMOCK_INTERNAL_DECL_TYPE_AND_4_VALUE_PARAMS(p0, p1, p2, p3) , \
1126
- typename p0##_type, typename p1##_type, typename p2##_type, \
1127
- typename p3##_type
1128
- #define GMOCK_INTERNAL_DECL_TYPE_AND_5_VALUE_PARAMS(p0, p1, p2, p3, p4) , \
1129
- typename p0##_type, typename p1##_type, typename p2##_type, \
1130
- typename p3##_type, typename p4##_type
1131
- #define GMOCK_INTERNAL_DECL_TYPE_AND_6_VALUE_PARAMS(p0, p1, p2, p3, p4, p5) , \
1132
- typename p0##_type, typename p1##_type, typename p2##_type, \
1133
- typename p3##_type, typename p4##_type, typename p5##_type
1134
- #define GMOCK_INTERNAL_DECL_TYPE_AND_7_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, \
1135
- p6) , typename p0##_type, typename p1##_type, typename p2##_type, \
1136
- typename p3##_type, typename p4##_type, typename p5##_type, \
1137
- typename p6##_type
1138
- #define GMOCK_INTERNAL_DECL_TYPE_AND_8_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, \
1139
- p6, p7) , typename p0##_type, typename p1##_type, typename p2##_type, \
1140
- typename p3##_type, typename p4##_type, typename p5##_type, \
1141
- typename p6##_type, typename p7##_type
1142
- #define GMOCK_INTERNAL_DECL_TYPE_AND_9_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, \
1143
- p6, p7, p8) , typename p0##_type, typename p1##_type, typename p2##_type, \
1144
- typename p3##_type, typename p4##_type, typename p5##_type, \
1145
- typename p6##_type, typename p7##_type, typename p8##_type
1146
- #define GMOCK_INTERNAL_DECL_TYPE_AND_10_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, \
1147
- p6, p7, p8, p9) , typename p0##_type, typename p1##_type, \
1148
- typename p2##_type, typename p3##_type, typename p4##_type, \
1149
- typename p5##_type, typename p6##_type, typename p7##_type, \
1150
- typename p8##_type, typename p9##_type
1151
-
1152
- // Initializes the value parameters.
1153
- #define GMOCK_INTERNAL_INIT_AND_0_VALUE_PARAMS()\
1154
- ()
1155
- #define GMOCK_INTERNAL_INIT_AND_1_VALUE_PARAMS(p0)\
1156
- (p0##_type gmock_p0) : p0(::testing::internal::move(gmock_p0))
1157
- #define GMOCK_INTERNAL_INIT_AND_2_VALUE_PARAMS(p0, p1)\
1158
- (p0##_type gmock_p0, \
1159
- p1##_type gmock_p1) : p0(::testing::internal::move(gmock_p0)), \
1160
- p1(::testing::internal::move(gmock_p1))
1161
- #define GMOCK_INTERNAL_INIT_AND_3_VALUE_PARAMS(p0, p1, p2)\
1162
- (p0##_type gmock_p0, p1##_type gmock_p1, \
1163
- p2##_type gmock_p2) : p0(::testing::internal::move(gmock_p0)), \
1164
- p1(::testing::internal::move(gmock_p1)), \
1165
- p2(::testing::internal::move(gmock_p2))
1166
- #define GMOCK_INTERNAL_INIT_AND_4_VALUE_PARAMS(p0, p1, p2, p3)\
1167
- (p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
1168
- p3##_type gmock_p3) : p0(::testing::internal::move(gmock_p0)), \
1169
- p1(::testing::internal::move(gmock_p1)), \
1170
- p2(::testing::internal::move(gmock_p2)), \
1171
- p3(::testing::internal::move(gmock_p3))
1172
- #define GMOCK_INTERNAL_INIT_AND_5_VALUE_PARAMS(p0, p1, p2, p3, p4)\
1173
- (p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
1174
- p3##_type gmock_p3, \
1175
- p4##_type gmock_p4) : p0(::testing::internal::move(gmock_p0)), \
1176
- p1(::testing::internal::move(gmock_p1)), \
1177
- p2(::testing::internal::move(gmock_p2)), \
1178
- p3(::testing::internal::move(gmock_p3)), \
1179
- p4(::testing::internal::move(gmock_p4))
1180
- #define GMOCK_INTERNAL_INIT_AND_6_VALUE_PARAMS(p0, p1, p2, p3, p4, p5)\
1181
- (p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
1182
- p3##_type gmock_p3, p4##_type gmock_p4, \
1183
- p5##_type gmock_p5) : p0(::testing::internal::move(gmock_p0)), \
1184
- p1(::testing::internal::move(gmock_p1)), \
1185
- p2(::testing::internal::move(gmock_p2)), \
1186
- p3(::testing::internal::move(gmock_p3)), \
1187
- p4(::testing::internal::move(gmock_p4)), \
1188
- p5(::testing::internal::move(gmock_p5))
1189
- #define GMOCK_INTERNAL_INIT_AND_7_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6)\
1190
- (p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
1191
- p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5, \
1192
- p6##_type gmock_p6) : p0(::testing::internal::move(gmock_p0)), \
1193
- p1(::testing::internal::move(gmock_p1)), \
1194
- p2(::testing::internal::move(gmock_p2)), \
1195
- p3(::testing::internal::move(gmock_p3)), \
1196
- p4(::testing::internal::move(gmock_p4)), \
1197
- p5(::testing::internal::move(gmock_p5)), \
1198
- p6(::testing::internal::move(gmock_p6))
1199
- #define GMOCK_INTERNAL_INIT_AND_8_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, p7)\
1200
- (p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
1201
- p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5, \
1202
- p6##_type gmock_p6, \
1203
- p7##_type gmock_p7) : p0(::testing::internal::move(gmock_p0)), \
1204
- p1(::testing::internal::move(gmock_p1)), \
1205
- p2(::testing::internal::move(gmock_p2)), \
1206
- p3(::testing::internal::move(gmock_p3)), \
1207
- p4(::testing::internal::move(gmock_p4)), \
1208
- p5(::testing::internal::move(gmock_p5)), \
1209
- p6(::testing::internal::move(gmock_p6)), \
1210
- p7(::testing::internal::move(gmock_p7))
1211
- #define GMOCK_INTERNAL_INIT_AND_9_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
1212
- p7, p8)\
1213
- (p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
1214
- p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5, \
1215
- p6##_type gmock_p6, p7##_type gmock_p7, \
1216
- p8##_type gmock_p8) : p0(::testing::internal::move(gmock_p0)), \
1217
- p1(::testing::internal::move(gmock_p1)), \
1218
- p2(::testing::internal::move(gmock_p2)), \
1219
- p3(::testing::internal::move(gmock_p3)), \
1220
- p4(::testing::internal::move(gmock_p4)), \
1221
- p5(::testing::internal::move(gmock_p5)), \
1222
- p6(::testing::internal::move(gmock_p6)), \
1223
- p7(::testing::internal::move(gmock_p7)), \
1224
- p8(::testing::internal::move(gmock_p8))
1225
- #define GMOCK_INTERNAL_INIT_AND_10_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
1226
- p7, p8, p9)\
1227
- (p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
1228
- p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5, \
1229
- p6##_type gmock_p6, p7##_type gmock_p7, p8##_type gmock_p8, \
1230
- p9##_type gmock_p9) : p0(::testing::internal::move(gmock_p0)), \
1231
- p1(::testing::internal::move(gmock_p1)), \
1232
- p2(::testing::internal::move(gmock_p2)), \
1233
- p3(::testing::internal::move(gmock_p3)), \
1234
- p4(::testing::internal::move(gmock_p4)), \
1235
- p5(::testing::internal::move(gmock_p5)), \
1236
- p6(::testing::internal::move(gmock_p6)), \
1237
- p7(::testing::internal::move(gmock_p7)), \
1238
- p8(::testing::internal::move(gmock_p8)), \
1239
- p9(::testing::internal::move(gmock_p9))
1240
-
1241
- // Declares the fields for storing the value parameters.
1242
- #define GMOCK_INTERNAL_DEFN_AND_0_VALUE_PARAMS()
1243
- #define GMOCK_INTERNAL_DEFN_AND_1_VALUE_PARAMS(p0) p0##_type p0;
1244
- #define GMOCK_INTERNAL_DEFN_AND_2_VALUE_PARAMS(p0, p1) p0##_type p0; \
1245
- p1##_type p1;
1246
- #define GMOCK_INTERNAL_DEFN_AND_3_VALUE_PARAMS(p0, p1, p2) p0##_type p0; \
1247
- p1##_type p1; p2##_type p2;
1248
- #define GMOCK_INTERNAL_DEFN_AND_4_VALUE_PARAMS(p0, p1, p2, p3) p0##_type p0; \
1249
- p1##_type p1; p2##_type p2; p3##_type p3;
1250
- #define GMOCK_INTERNAL_DEFN_AND_5_VALUE_PARAMS(p0, p1, p2, p3, \
1251
- p4) p0##_type p0; p1##_type p1; p2##_type p2; p3##_type p3; p4##_type p4;
1252
- #define GMOCK_INTERNAL_DEFN_AND_6_VALUE_PARAMS(p0, p1, p2, p3, p4, \
1253
- p5) p0##_type p0; p1##_type p1; p2##_type p2; p3##_type p3; p4##_type p4; \
1254
- p5##_type p5;
1255
- #define GMOCK_INTERNAL_DEFN_AND_7_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, \
1256
- p6) p0##_type p0; p1##_type p1; p2##_type p2; p3##_type p3; p4##_type p4; \
1257
- p5##_type p5; p6##_type p6;
1258
- #define GMOCK_INTERNAL_DEFN_AND_8_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
1259
- p7) p0##_type p0; p1##_type p1; p2##_type p2; p3##_type p3; p4##_type p4; \
1260
- p5##_type p5; p6##_type p6; p7##_type p7;
1261
- #define GMOCK_INTERNAL_DEFN_AND_9_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
1262
- p7, p8) p0##_type p0; p1##_type p1; p2##_type p2; p3##_type p3; \
1263
- p4##_type p4; p5##_type p5; p6##_type p6; p7##_type p7; p8##_type p8;
1264
- #define GMOCK_INTERNAL_DEFN_AND_10_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
1265
- p7, p8, p9) p0##_type p0; p1##_type p1; p2##_type p2; p3##_type p3; \
1266
- p4##_type p4; p5##_type p5; p6##_type p6; p7##_type p7; p8##_type p8; \
1267
- p9##_type p9;
1268
-
1269
- // Lists the value parameters.
1270
- #define GMOCK_INTERNAL_LIST_AND_0_VALUE_PARAMS()
1271
- #define GMOCK_INTERNAL_LIST_AND_1_VALUE_PARAMS(p0) p0
1272
- #define GMOCK_INTERNAL_LIST_AND_2_VALUE_PARAMS(p0, p1) p0, p1
1273
- #define GMOCK_INTERNAL_LIST_AND_3_VALUE_PARAMS(p0, p1, p2) p0, p1, p2
1274
- #define GMOCK_INTERNAL_LIST_AND_4_VALUE_PARAMS(p0, p1, p2, p3) p0, p1, p2, p3
1275
- #define GMOCK_INTERNAL_LIST_AND_5_VALUE_PARAMS(p0, p1, p2, p3, p4) p0, p1, \
1276
- p2, p3, p4
1277
- #define GMOCK_INTERNAL_LIST_AND_6_VALUE_PARAMS(p0, p1, p2, p3, p4, p5) p0, \
1278
- p1, p2, p3, p4, p5
1279
- #define GMOCK_INTERNAL_LIST_AND_7_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, \
1280
- p6) p0, p1, p2, p3, p4, p5, p6
1281
- #define GMOCK_INTERNAL_LIST_AND_8_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
1282
- p7) p0, p1, p2, p3, p4, p5, p6, p7
1283
- #define GMOCK_INTERNAL_LIST_AND_9_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
1284
- p7, p8) p0, p1, p2, p3, p4, p5, p6, p7, p8
1285
- #define GMOCK_INTERNAL_LIST_AND_10_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
1286
- p7, p8, p9) p0, p1, p2, p3, p4, p5, p6, p7, p8, p9
1287
-
1288
- // Lists the value parameter types.
1289
- #define GMOCK_INTERNAL_LIST_TYPE_AND_0_VALUE_PARAMS()
1290
- #define GMOCK_INTERNAL_LIST_TYPE_AND_1_VALUE_PARAMS(p0) , p0##_type
1291
- #define GMOCK_INTERNAL_LIST_TYPE_AND_2_VALUE_PARAMS(p0, p1) , p0##_type, \
1292
- p1##_type
1293
- #define GMOCK_INTERNAL_LIST_TYPE_AND_3_VALUE_PARAMS(p0, p1, p2) , p0##_type, \
1294
- p1##_type, p2##_type
1295
- #define GMOCK_INTERNAL_LIST_TYPE_AND_4_VALUE_PARAMS(p0, p1, p2, p3) , \
1296
- p0##_type, p1##_type, p2##_type, p3##_type
1297
- #define GMOCK_INTERNAL_LIST_TYPE_AND_5_VALUE_PARAMS(p0, p1, p2, p3, p4) , \
1298
- p0##_type, p1##_type, p2##_type, p3##_type, p4##_type
1299
- #define GMOCK_INTERNAL_LIST_TYPE_AND_6_VALUE_PARAMS(p0, p1, p2, p3, p4, p5) , \
1300
- p0##_type, p1##_type, p2##_type, p3##_type, p4##_type, p5##_type
1301
- #define GMOCK_INTERNAL_LIST_TYPE_AND_7_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, \
1302
- p6) , p0##_type, p1##_type, p2##_type, p3##_type, p4##_type, p5##_type, \
1303
- p6##_type
1304
- #define GMOCK_INTERNAL_LIST_TYPE_AND_8_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, \
1305
- p6, p7) , p0##_type, p1##_type, p2##_type, p3##_type, p4##_type, \
1306
- p5##_type, p6##_type, p7##_type
1307
- #define GMOCK_INTERNAL_LIST_TYPE_AND_9_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, \
1308
- p6, p7, p8) , p0##_type, p1##_type, p2##_type, p3##_type, p4##_type, \
1309
- p5##_type, p6##_type, p7##_type, p8##_type
1310
- #define GMOCK_INTERNAL_LIST_TYPE_AND_10_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, \
1311
- p6, p7, p8, p9) , p0##_type, p1##_type, p2##_type, p3##_type, p4##_type, \
1312
- p5##_type, p6##_type, p7##_type, p8##_type, p9##_type
1313
-
1314
- // Declares the value parameters.
1315
- #define GMOCK_INTERNAL_DECL_AND_0_VALUE_PARAMS()
1316
- #define GMOCK_INTERNAL_DECL_AND_1_VALUE_PARAMS(p0) p0##_type p0
1317
- #define GMOCK_INTERNAL_DECL_AND_2_VALUE_PARAMS(p0, p1) p0##_type p0, \
1318
- p1##_type p1
1319
- #define GMOCK_INTERNAL_DECL_AND_3_VALUE_PARAMS(p0, p1, p2) p0##_type p0, \
1320
- p1##_type p1, p2##_type p2
1321
- #define GMOCK_INTERNAL_DECL_AND_4_VALUE_PARAMS(p0, p1, p2, p3) p0##_type p0, \
1322
- p1##_type p1, p2##_type p2, p3##_type p3
1323
- #define GMOCK_INTERNAL_DECL_AND_5_VALUE_PARAMS(p0, p1, p2, p3, \
1324
- p4) p0##_type p0, p1##_type p1, p2##_type p2, p3##_type p3, p4##_type p4
1325
- #define GMOCK_INTERNAL_DECL_AND_6_VALUE_PARAMS(p0, p1, p2, p3, p4, \
1326
- p5) p0##_type p0, p1##_type p1, p2##_type p2, p3##_type p3, p4##_type p4, \
1327
- p5##_type p5
1328
- #define GMOCK_INTERNAL_DECL_AND_7_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, \
1329
- p6) p0##_type p0, p1##_type p1, p2##_type p2, p3##_type p3, p4##_type p4, \
1330
- p5##_type p5, p6##_type p6
1331
- #define GMOCK_INTERNAL_DECL_AND_8_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
1332
- p7) p0##_type p0, p1##_type p1, p2##_type p2, p3##_type p3, p4##_type p4, \
1333
- p5##_type p5, p6##_type p6, p7##_type p7
1334
- #define GMOCK_INTERNAL_DECL_AND_9_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
1335
- p7, p8) p0##_type p0, p1##_type p1, p2##_type p2, p3##_type p3, \
1336
- p4##_type p4, p5##_type p5, p6##_type p6, p7##_type p7, p8##_type p8
1337
- #define GMOCK_INTERNAL_DECL_AND_10_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
1338
- p7, p8, p9) p0##_type p0, p1##_type p1, p2##_type p2, p3##_type p3, \
1339
- p4##_type p4, p5##_type p5, p6##_type p6, p7##_type p7, p8##_type p8, \
1340
- p9##_type p9
1341
-
1342
- // The suffix of the class template implementing the action template.
1343
- #define GMOCK_INTERNAL_COUNT_AND_0_VALUE_PARAMS()
1344
- #define GMOCK_INTERNAL_COUNT_AND_1_VALUE_PARAMS(p0) P
1345
- #define GMOCK_INTERNAL_COUNT_AND_2_VALUE_PARAMS(p0, p1) P2
1346
- #define GMOCK_INTERNAL_COUNT_AND_3_VALUE_PARAMS(p0, p1, p2) P3
1347
- #define GMOCK_INTERNAL_COUNT_AND_4_VALUE_PARAMS(p0, p1, p2, p3) P4
1348
- #define GMOCK_INTERNAL_COUNT_AND_5_VALUE_PARAMS(p0, p1, p2, p3, p4) P5
1349
- #define GMOCK_INTERNAL_COUNT_AND_6_VALUE_PARAMS(p0, p1, p2, p3, p4, p5) P6
1350
- #define GMOCK_INTERNAL_COUNT_AND_7_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6) P7
1351
- #define GMOCK_INTERNAL_COUNT_AND_8_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
1352
- p7) P8
1353
- #define GMOCK_INTERNAL_COUNT_AND_9_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
1354
- p7, p8) P9
1355
- #define GMOCK_INTERNAL_COUNT_AND_10_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
1356
- p7, p8, p9) P10
1357
-
1358
- // The name of the class template implementing the action template.
1359
- #define GMOCK_ACTION_CLASS_(name, value_params)\
1360
- GTEST_CONCAT_TOKEN_(name##Action, GMOCK_INTERNAL_COUNT_##value_params)
1361
-
1362
- #define ACTION_TEMPLATE(name, template_params, value_params)\
1363
- template <GMOCK_INTERNAL_DECL_##template_params\
1364
- GMOCK_INTERNAL_DECL_TYPE_##value_params>\
1365
- class GMOCK_ACTION_CLASS_(name, value_params) {\
1366
- public:\
1367
- explicit GMOCK_ACTION_CLASS_(name, value_params)\
1368
- GMOCK_INTERNAL_INIT_##value_params {}\
1369
- template <typename F>\
1370
- class gmock_Impl : public ::testing::ActionInterface<F> {\
1371
- public:\
1372
- typedef F function_type;\
1373
- typedef typename ::testing::internal::Function<F>::Result return_type;\
1374
- typedef typename ::testing::internal::Function<F>::ArgumentTuple\
1375
- args_type;\
1376
- explicit gmock_Impl GMOCK_INTERNAL_INIT_##value_params {}\
1377
- virtual return_type Perform(const args_type& args) {\
1378
- return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
1379
- Perform(this, args);\
1380
- }\
1381
- template <typename arg0_type, typename arg1_type, typename arg2_type, \
1382
- typename arg3_type, typename arg4_type, typename arg5_type, \
1383
- typename arg6_type, typename arg7_type, typename arg8_type, \
1384
- typename arg9_type>\
1385
- return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, \
1386
- arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, \
1387
- arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, \
1388
- arg9_type arg9) const;\
1389
- GMOCK_INTERNAL_DEFN_##value_params\
1390
- private:\
1391
- GTEST_DISALLOW_ASSIGN_(gmock_Impl);\
1392
- };\
1393
- template <typename F> operator ::testing::Action<F>() const {\
1394
- return ::testing::Action<F>(\
1395
- new gmock_Impl<F>(GMOCK_INTERNAL_LIST_##value_params));\
1396
- }\
1397
- GMOCK_INTERNAL_DEFN_##value_params\
1398
- private:\
1399
- GTEST_DISALLOW_ASSIGN_(GMOCK_ACTION_CLASS_(name, value_params));\
1400
- };\
1401
- template <GMOCK_INTERNAL_DECL_##template_params\
1402
- GMOCK_INTERNAL_DECL_TYPE_##value_params>\
1403
- inline GMOCK_ACTION_CLASS_(name, value_params)<\
1404
- GMOCK_INTERNAL_LIST_##template_params\
1405
- GMOCK_INTERNAL_LIST_TYPE_##value_params> name(\
1406
- GMOCK_INTERNAL_DECL_##value_params) {\
1407
- return GMOCK_ACTION_CLASS_(name, value_params)<\
1408
- GMOCK_INTERNAL_LIST_##template_params\
1409
- GMOCK_INTERNAL_LIST_TYPE_##value_params>(\
1410
- GMOCK_INTERNAL_LIST_##value_params);\
1411
- }\
1412
- template <GMOCK_INTERNAL_DECL_##template_params\
1413
- GMOCK_INTERNAL_DECL_TYPE_##value_params>\
1414
- template <typename F>\
1415
- template <typename arg0_type, typename arg1_type, typename arg2_type, \
1416
- typename arg3_type, typename arg4_type, typename arg5_type, \
1417
- typename arg6_type, typename arg7_type, typename arg8_type, \
1418
- typename arg9_type>\
1419
- typename ::testing::internal::Function<F>::Result\
1420
- GMOCK_ACTION_CLASS_(name, value_params)<\
1421
- GMOCK_INTERNAL_LIST_##template_params\
1422
- GMOCK_INTERNAL_LIST_TYPE_##value_params>::gmock_Impl<F>::\
1423
- gmock_PerformImpl(\
1424
- GMOCK_ACTION_ARG_TYPES_AND_NAMES_UNUSED_) const
1425
-
1426
- #define ACTION(name)\
1427
- class name##Action {\
1428
- public:\
1429
- name##Action() {}\
1430
- template <typename F>\
1431
- class gmock_Impl : public ::testing::ActionInterface<F> {\
1432
- public:\
1433
- typedef F function_type;\
1434
- typedef typename ::testing::internal::Function<F>::Result return_type;\
1435
- typedef typename ::testing::internal::Function<F>::ArgumentTuple\
1436
- args_type;\
1437
- gmock_Impl() {}\
1438
- virtual return_type Perform(const args_type& args) {\
1439
- return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
1440
- Perform(this, args);\
1441
- }\
1442
- template <typename arg0_type, typename arg1_type, typename arg2_type, \
1443
- typename arg3_type, typename arg4_type, typename arg5_type, \
1444
- typename arg6_type, typename arg7_type, typename arg8_type, \
1445
- typename arg9_type>\
1446
- return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, \
1447
- arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, \
1448
- arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, \
1449
- arg9_type arg9) const;\
1450
- private:\
1451
- GTEST_DISALLOW_ASSIGN_(gmock_Impl);\
1452
- };\
1453
- template <typename F> operator ::testing::Action<F>() const {\
1454
- return ::testing::Action<F>(new gmock_Impl<F>());\
1455
- }\
1456
- private:\
1457
- GTEST_DISALLOW_ASSIGN_(name##Action);\
1458
- };\
1459
- inline name##Action name() {\
1460
- return name##Action();\
1461
- }\
1462
- template <typename F>\
1463
- template <typename arg0_type, typename arg1_type, typename arg2_type, \
1464
- typename arg3_type, typename arg4_type, typename arg5_type, \
1465
- typename arg6_type, typename arg7_type, typename arg8_type, \
1466
- typename arg9_type>\
1467
- typename ::testing::internal::Function<F>::Result\
1468
- name##Action::gmock_Impl<F>::gmock_PerformImpl(\
1469
- GMOCK_ACTION_ARG_TYPES_AND_NAMES_UNUSED_) const
1470
-
1471
- #define ACTION_P(name, p0)\
1472
- template <typename p0##_type>\
1473
- class name##ActionP {\
1474
- public:\
1475
- explicit name##ActionP(p0##_type gmock_p0) : \
1476
- p0(::testing::internal::forward<p0##_type>(gmock_p0)) {}\
1477
- template <typename F>\
1478
- class gmock_Impl : public ::testing::ActionInterface<F> {\
1479
- public:\
1480
- typedef F function_type;\
1481
- typedef typename ::testing::internal::Function<F>::Result return_type;\
1482
- typedef typename ::testing::internal::Function<F>::ArgumentTuple\
1483
- args_type;\
1484
- explicit gmock_Impl(p0##_type gmock_p0) : \
1485
- p0(::testing::internal::forward<p0##_type>(gmock_p0)) {}\
1486
- virtual return_type Perform(const args_type& args) {\
1487
- return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
1488
- Perform(this, args);\
1489
- }\
1490
- template <typename arg0_type, typename arg1_type, typename arg2_type, \
1491
- typename arg3_type, typename arg4_type, typename arg5_type, \
1492
- typename arg6_type, typename arg7_type, typename arg8_type, \
1493
- typename arg9_type>\
1494
- return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, \
1495
- arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, \
1496
- arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, \
1497
- arg9_type arg9) const;\
1498
- p0##_type p0;\
1499
- private:\
1500
- GTEST_DISALLOW_ASSIGN_(gmock_Impl);\
1501
- };\
1502
- template <typename F> operator ::testing::Action<F>() const {\
1503
- return ::testing::Action<F>(new gmock_Impl<F>(p0));\
1504
- }\
1505
- p0##_type p0;\
1506
- private:\
1507
- GTEST_DISALLOW_ASSIGN_(name##ActionP);\
1508
- };\
1509
- template <typename p0##_type>\
1510
- inline name##ActionP<p0##_type> name(p0##_type p0) {\
1511
- return name##ActionP<p0##_type>(p0);\
1512
- }\
1513
- template <typename p0##_type>\
1514
- template <typename F>\
1515
- template <typename arg0_type, typename arg1_type, typename arg2_type, \
1516
- typename arg3_type, typename arg4_type, typename arg5_type, \
1517
- typename arg6_type, typename arg7_type, typename arg8_type, \
1518
- typename arg9_type>\
1519
- typename ::testing::internal::Function<F>::Result\
1520
- name##ActionP<p0##_type>::gmock_Impl<F>::gmock_PerformImpl(\
1521
- GMOCK_ACTION_ARG_TYPES_AND_NAMES_UNUSED_) const
1522
-
1523
- #define ACTION_P2(name, p0, p1)\
1524
- template <typename p0##_type, typename p1##_type>\
1525
- class name##ActionP2 {\
1526
- public:\
1527
- name##ActionP2(p0##_type gmock_p0, \
1528
- p1##_type gmock_p1) : p0(::testing::internal::forward<p0##_type>(gmock_p0)), \
1529
- p1(::testing::internal::forward<p1##_type>(gmock_p1)) {}\
1530
- template <typename F>\
1531
- class gmock_Impl : public ::testing::ActionInterface<F> {\
1532
- public:\
1533
- typedef F function_type;\
1534
- typedef typename ::testing::internal::Function<F>::Result return_type;\
1535
- typedef typename ::testing::internal::Function<F>::ArgumentTuple\
1536
- args_type;\
1537
- gmock_Impl(p0##_type gmock_p0, \
1538
- p1##_type gmock_p1) : p0(::testing::internal::forward<p0##_type>(gmock_p0)), \
1539
- p1(::testing::internal::forward<p1##_type>(gmock_p1)) {}\
1540
- virtual return_type Perform(const args_type& args) {\
1541
- return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
1542
- Perform(this, args);\
1543
- }\
1544
- template <typename arg0_type, typename arg1_type, typename arg2_type, \
1545
- typename arg3_type, typename arg4_type, typename arg5_type, \
1546
- typename arg6_type, typename arg7_type, typename arg8_type, \
1547
- typename arg9_type>\
1548
- return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, \
1549
- arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, \
1550
- arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, \
1551
- arg9_type arg9) const;\
1552
- p0##_type p0;\
1553
- p1##_type p1;\
1554
- private:\
1555
- GTEST_DISALLOW_ASSIGN_(gmock_Impl);\
1556
- };\
1557
- template <typename F> operator ::testing::Action<F>() const {\
1558
- return ::testing::Action<F>(new gmock_Impl<F>(p0, p1));\
1559
- }\
1560
- p0##_type p0;\
1561
- p1##_type p1;\
1562
- private:\
1563
- GTEST_DISALLOW_ASSIGN_(name##ActionP2);\
1564
- };\
1565
- template <typename p0##_type, typename p1##_type>\
1566
- inline name##ActionP2<p0##_type, p1##_type> name(p0##_type p0, \
1567
- p1##_type p1) {\
1568
- return name##ActionP2<p0##_type, p1##_type>(p0, p1);\
1569
- }\
1570
- template <typename p0##_type, typename p1##_type>\
1571
- template <typename F>\
1572
- template <typename arg0_type, typename arg1_type, typename arg2_type, \
1573
- typename arg3_type, typename arg4_type, typename arg5_type, \
1574
- typename arg6_type, typename arg7_type, typename arg8_type, \
1575
- typename arg9_type>\
1576
- typename ::testing::internal::Function<F>::Result\
1577
- name##ActionP2<p0##_type, p1##_type>::gmock_Impl<F>::gmock_PerformImpl(\
1578
- GMOCK_ACTION_ARG_TYPES_AND_NAMES_UNUSED_) const
1579
-
1580
- #define ACTION_P3(name, p0, p1, p2)\
1581
- template <typename p0##_type, typename p1##_type, typename p2##_type>\
1582
- class name##ActionP3 {\
1583
- public:\
1584
- name##ActionP3(p0##_type gmock_p0, p1##_type gmock_p1, \
1585
- p2##_type gmock_p2) : p0(::testing::internal::forward<p0##_type>(gmock_p0)), \
1586
- p1(::testing::internal::forward<p1##_type>(gmock_p1)), \
1587
- p2(::testing::internal::forward<p2##_type>(gmock_p2)) {}\
1588
- template <typename F>\
1589
- class gmock_Impl : public ::testing::ActionInterface<F> {\
1590
- public:\
1591
- typedef F function_type;\
1592
- typedef typename ::testing::internal::Function<F>::Result return_type;\
1593
- typedef typename ::testing::internal::Function<F>::ArgumentTuple\
1594
- args_type;\
1595
- gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, \
1596
- p2##_type gmock_p2) : p0(::testing::internal::forward<p0##_type>(gmock_p0)), \
1597
- p1(::testing::internal::forward<p1##_type>(gmock_p1)), \
1598
- p2(::testing::internal::forward<p2##_type>(gmock_p2)) {}\
1599
- virtual return_type Perform(const args_type& args) {\
1600
- return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
1601
- Perform(this, args);\
1602
- }\
1603
- template <typename arg0_type, typename arg1_type, typename arg2_type, \
1604
- typename arg3_type, typename arg4_type, typename arg5_type, \
1605
- typename arg6_type, typename arg7_type, typename arg8_type, \
1606
- typename arg9_type>\
1607
- return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, \
1608
- arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, \
1609
- arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, \
1610
- arg9_type arg9) const;\
1611
- p0##_type p0;\
1612
- p1##_type p1;\
1613
- p2##_type p2;\
1614
- private:\
1615
- GTEST_DISALLOW_ASSIGN_(gmock_Impl);\
1616
- };\
1617
- template <typename F> operator ::testing::Action<F>() const {\
1618
- return ::testing::Action<F>(new gmock_Impl<F>(p0, p1, p2));\
1619
- }\
1620
- p0##_type p0;\
1621
- p1##_type p1;\
1622
- p2##_type p2;\
1623
- private:\
1624
- GTEST_DISALLOW_ASSIGN_(name##ActionP3);\
1625
- };\
1626
- template <typename p0##_type, typename p1##_type, typename p2##_type>\
1627
- inline name##ActionP3<p0##_type, p1##_type, p2##_type> name(p0##_type p0, \
1628
- p1##_type p1, p2##_type p2) {\
1629
- return name##ActionP3<p0##_type, p1##_type, p2##_type>(p0, p1, p2);\
1630
- }\
1631
- template <typename p0##_type, typename p1##_type, typename p2##_type>\
1632
- template <typename F>\
1633
- template <typename arg0_type, typename arg1_type, typename arg2_type, \
1634
- typename arg3_type, typename arg4_type, typename arg5_type, \
1635
- typename arg6_type, typename arg7_type, typename arg8_type, \
1636
- typename arg9_type>\
1637
- typename ::testing::internal::Function<F>::Result\
1638
- name##ActionP3<p0##_type, p1##_type, \
1639
- p2##_type>::gmock_Impl<F>::gmock_PerformImpl(\
1640
- GMOCK_ACTION_ARG_TYPES_AND_NAMES_UNUSED_) const
1641
-
1642
- #define ACTION_P4(name, p0, p1, p2, p3)\
1643
- template <typename p0##_type, typename p1##_type, typename p2##_type, \
1644
- typename p3##_type>\
1645
- class name##ActionP4 {\
1646
- public:\
1647
- name##ActionP4(p0##_type gmock_p0, p1##_type gmock_p1, \
1648
- p2##_type gmock_p2, \
1649
- p3##_type gmock_p3) : p0(::testing::internal::forward<p0##_type>(gmock_p0)), \
1650
- p1(::testing::internal::forward<p1##_type>(gmock_p1)), \
1651
- p2(::testing::internal::forward<p2##_type>(gmock_p2)), \
1652
- p3(::testing::internal::forward<p3##_type>(gmock_p3)) {}\
1653
- template <typename F>\
1654
- class gmock_Impl : public ::testing::ActionInterface<F> {\
1655
- public:\
1656
- typedef F function_type;\
1657
- typedef typename ::testing::internal::Function<F>::Result return_type;\
1658
- typedef typename ::testing::internal::Function<F>::ArgumentTuple\
1659
- args_type;\
1660
- gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
1661
- p3##_type gmock_p3) : p0(::testing::internal::forward<p0##_type>(gmock_p0)), \
1662
- p1(::testing::internal::forward<p1##_type>(gmock_p1)), \
1663
- p2(::testing::internal::forward<p2##_type>(gmock_p2)), \
1664
- p3(::testing::internal::forward<p3##_type>(gmock_p3)) {}\
1665
- virtual return_type Perform(const args_type& args) {\
1666
- return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
1667
- Perform(this, args);\
1668
- }\
1669
- template <typename arg0_type, typename arg1_type, typename arg2_type, \
1670
- typename arg3_type, typename arg4_type, typename arg5_type, \
1671
- typename arg6_type, typename arg7_type, typename arg8_type, \
1672
- typename arg9_type>\
1673
- return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, \
1674
- arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, \
1675
- arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, \
1676
- arg9_type arg9) const;\
1677
- p0##_type p0;\
1678
- p1##_type p1;\
1679
- p2##_type p2;\
1680
- p3##_type p3;\
1681
- private:\
1682
- GTEST_DISALLOW_ASSIGN_(gmock_Impl);\
1683
- };\
1684
- template <typename F> operator ::testing::Action<F>() const {\
1685
- return ::testing::Action<F>(new gmock_Impl<F>(p0, p1, p2, p3));\
1686
- }\
1687
- p0##_type p0;\
1688
- p1##_type p1;\
1689
- p2##_type p2;\
1690
- p3##_type p3;\
1691
- private:\
1692
- GTEST_DISALLOW_ASSIGN_(name##ActionP4);\
1693
- };\
1694
- template <typename p0##_type, typename p1##_type, typename p2##_type, \
1695
- typename p3##_type>\
1696
- inline name##ActionP4<p0##_type, p1##_type, p2##_type, \
1697
- p3##_type> name(p0##_type p0, p1##_type p1, p2##_type p2, \
1698
- p3##_type p3) {\
1699
- return name##ActionP4<p0##_type, p1##_type, p2##_type, p3##_type>(p0, p1, \
1700
- p2, p3);\
1701
- }\
1702
- template <typename p0##_type, typename p1##_type, typename p2##_type, \
1703
- typename p3##_type>\
1704
- template <typename F>\
1705
- template <typename arg0_type, typename arg1_type, typename arg2_type, \
1706
- typename arg3_type, typename arg4_type, typename arg5_type, \
1707
- typename arg6_type, typename arg7_type, typename arg8_type, \
1708
- typename arg9_type>\
1709
- typename ::testing::internal::Function<F>::Result\
1710
- name##ActionP4<p0##_type, p1##_type, p2##_type, \
1711
- p3##_type>::gmock_Impl<F>::gmock_PerformImpl(\
1712
- GMOCK_ACTION_ARG_TYPES_AND_NAMES_UNUSED_) const
1713
-
1714
- #define ACTION_P5(name, p0, p1, p2, p3, p4)\
1715
- template <typename p0##_type, typename p1##_type, typename p2##_type, \
1716
- typename p3##_type, typename p4##_type>\
1717
- class name##ActionP5 {\
1718
- public:\
1719
- name##ActionP5(p0##_type gmock_p0, p1##_type gmock_p1, \
1720
- p2##_type gmock_p2, p3##_type gmock_p3, \
1721
- p4##_type gmock_p4) : p0(::testing::internal::forward<p0##_type>(gmock_p0)), \
1722
- p1(::testing::internal::forward<p1##_type>(gmock_p1)), \
1723
- p2(::testing::internal::forward<p2##_type>(gmock_p2)), \
1724
- p3(::testing::internal::forward<p3##_type>(gmock_p3)), \
1725
- p4(::testing::internal::forward<p4##_type>(gmock_p4)) {}\
1726
- template <typename F>\
1727
- class gmock_Impl : public ::testing::ActionInterface<F> {\
1728
- public:\
1729
- typedef F function_type;\
1730
- typedef typename ::testing::internal::Function<F>::Result return_type;\
1731
- typedef typename ::testing::internal::Function<F>::ArgumentTuple\
1732
- args_type;\
1733
- gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
1734
- p3##_type gmock_p3, \
1735
- p4##_type gmock_p4) : p0(::testing::internal::forward<p0##_type>(gmock_p0)), \
1736
- p1(::testing::internal::forward<p1##_type>(gmock_p1)), \
1737
- p2(::testing::internal::forward<p2##_type>(gmock_p2)), \
1738
- p3(::testing::internal::forward<p3##_type>(gmock_p3)), \
1739
- p4(::testing::internal::forward<p4##_type>(gmock_p4)) {}\
1740
- virtual return_type Perform(const args_type& args) {\
1741
- return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
1742
- Perform(this, args);\
1743
- }\
1744
- template <typename arg0_type, typename arg1_type, typename arg2_type, \
1745
- typename arg3_type, typename arg4_type, typename arg5_type, \
1746
- typename arg6_type, typename arg7_type, typename arg8_type, \
1747
- typename arg9_type>\
1748
- return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, \
1749
- arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, \
1750
- arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, \
1751
- arg9_type arg9) const;\
1752
- p0##_type p0;\
1753
- p1##_type p1;\
1754
- p2##_type p2;\
1755
- p3##_type p3;\
1756
- p4##_type p4;\
1757
- private:\
1758
- GTEST_DISALLOW_ASSIGN_(gmock_Impl);\
1759
- };\
1760
- template <typename F> operator ::testing::Action<F>() const {\
1761
- return ::testing::Action<F>(new gmock_Impl<F>(p0, p1, p2, p3, p4));\
1762
- }\
1763
- p0##_type p0;\
1764
- p1##_type p1;\
1765
- p2##_type p2;\
1766
- p3##_type p3;\
1767
- p4##_type p4;\
1768
- private:\
1769
- GTEST_DISALLOW_ASSIGN_(name##ActionP5);\
1770
- };\
1771
- template <typename p0##_type, typename p1##_type, typename p2##_type, \
1772
- typename p3##_type, typename p4##_type>\
1773
- inline name##ActionP5<p0##_type, p1##_type, p2##_type, p3##_type, \
1774
- p4##_type> name(p0##_type p0, p1##_type p1, p2##_type p2, p3##_type p3, \
1775
- p4##_type p4) {\
1776
- return name##ActionP5<p0##_type, p1##_type, p2##_type, p3##_type, \
1777
- p4##_type>(p0, p1, p2, p3, p4);\
1778
- }\
1779
- template <typename p0##_type, typename p1##_type, typename p2##_type, \
1780
- typename p3##_type, typename p4##_type>\
1781
- template <typename F>\
1782
- template <typename arg0_type, typename arg1_type, typename arg2_type, \
1783
- typename arg3_type, typename arg4_type, typename arg5_type, \
1784
- typename arg6_type, typename arg7_type, typename arg8_type, \
1785
- typename arg9_type>\
1786
- typename ::testing::internal::Function<F>::Result\
1787
- name##ActionP5<p0##_type, p1##_type, p2##_type, p3##_type, \
1788
- p4##_type>::gmock_Impl<F>::gmock_PerformImpl(\
1789
- GMOCK_ACTION_ARG_TYPES_AND_NAMES_UNUSED_) const
1790
-
1791
- #define ACTION_P6(name, p0, p1, p2, p3, p4, p5)\
1792
- template <typename p0##_type, typename p1##_type, typename p2##_type, \
1793
- typename p3##_type, typename p4##_type, typename p5##_type>\
1794
- class name##ActionP6 {\
1795
- public:\
1796
- name##ActionP6(p0##_type gmock_p0, p1##_type gmock_p1, \
1797
- p2##_type gmock_p2, p3##_type gmock_p3, p4##_type gmock_p4, \
1798
- p5##_type gmock_p5) : p0(::testing::internal::forward<p0##_type>(gmock_p0)), \
1799
- p1(::testing::internal::forward<p1##_type>(gmock_p1)), \
1800
- p2(::testing::internal::forward<p2##_type>(gmock_p2)), \
1801
- p3(::testing::internal::forward<p3##_type>(gmock_p3)), \
1802
- p4(::testing::internal::forward<p4##_type>(gmock_p4)), \
1803
- p5(::testing::internal::forward<p5##_type>(gmock_p5)) {}\
1804
- template <typename F>\
1805
- class gmock_Impl : public ::testing::ActionInterface<F> {\
1806
- public:\
1807
- typedef F function_type;\
1808
- typedef typename ::testing::internal::Function<F>::Result return_type;\
1809
- typedef typename ::testing::internal::Function<F>::ArgumentTuple\
1810
- args_type;\
1811
- gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
1812
- p3##_type gmock_p3, p4##_type gmock_p4, \
1813
- p5##_type gmock_p5) : p0(::testing::internal::forward<p0##_type>(gmock_p0)), \
1814
- p1(::testing::internal::forward<p1##_type>(gmock_p1)), \
1815
- p2(::testing::internal::forward<p2##_type>(gmock_p2)), \
1816
- p3(::testing::internal::forward<p3##_type>(gmock_p3)), \
1817
- p4(::testing::internal::forward<p4##_type>(gmock_p4)), \
1818
- p5(::testing::internal::forward<p5##_type>(gmock_p5)) {}\
1819
- virtual return_type Perform(const args_type& args) {\
1820
- return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
1821
- Perform(this, args);\
1822
- }\
1823
- template <typename arg0_type, typename arg1_type, typename arg2_type, \
1824
- typename arg3_type, typename arg4_type, typename arg5_type, \
1825
- typename arg6_type, typename arg7_type, typename arg8_type, \
1826
- typename arg9_type>\
1827
- return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, \
1828
- arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, \
1829
- arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, \
1830
- arg9_type arg9) const;\
1831
- p0##_type p0;\
1832
- p1##_type p1;\
1833
- p2##_type p2;\
1834
- p3##_type p3;\
1835
- p4##_type p4;\
1836
- p5##_type p5;\
1837
- private:\
1838
- GTEST_DISALLOW_ASSIGN_(gmock_Impl);\
1839
- };\
1840
- template <typename F> operator ::testing::Action<F>() const {\
1841
- return ::testing::Action<F>(new gmock_Impl<F>(p0, p1, p2, p3, p4, p5));\
1842
- }\
1843
- p0##_type p0;\
1844
- p1##_type p1;\
1845
- p2##_type p2;\
1846
- p3##_type p3;\
1847
- p4##_type p4;\
1848
- p5##_type p5;\
1849
- private:\
1850
- GTEST_DISALLOW_ASSIGN_(name##ActionP6);\
1851
- };\
1852
- template <typename p0##_type, typename p1##_type, typename p2##_type, \
1853
- typename p3##_type, typename p4##_type, typename p5##_type>\
1854
- inline name##ActionP6<p0##_type, p1##_type, p2##_type, p3##_type, \
1855
- p4##_type, p5##_type> name(p0##_type p0, p1##_type p1, p2##_type p2, \
1856
- p3##_type p3, p4##_type p4, p5##_type p5) {\
1857
- return name##ActionP6<p0##_type, p1##_type, p2##_type, p3##_type, \
1858
- p4##_type, p5##_type>(p0, p1, p2, p3, p4, p5);\
1859
- }\
1860
- template <typename p0##_type, typename p1##_type, typename p2##_type, \
1861
- typename p3##_type, typename p4##_type, typename p5##_type>\
1862
- template <typename F>\
1863
- template <typename arg0_type, typename arg1_type, typename arg2_type, \
1864
- typename arg3_type, typename arg4_type, typename arg5_type, \
1865
- typename arg6_type, typename arg7_type, typename arg8_type, \
1866
- typename arg9_type>\
1867
- typename ::testing::internal::Function<F>::Result\
1868
- name##ActionP6<p0##_type, p1##_type, p2##_type, p3##_type, p4##_type, \
1869
- p5##_type>::gmock_Impl<F>::gmock_PerformImpl(\
1870
- GMOCK_ACTION_ARG_TYPES_AND_NAMES_UNUSED_) const
1871
-
1872
- #define ACTION_P7(name, p0, p1, p2, p3, p4, p5, p6)\
1873
- template <typename p0##_type, typename p1##_type, typename p2##_type, \
1874
- typename p3##_type, typename p4##_type, typename p5##_type, \
1875
- typename p6##_type>\
1876
- class name##ActionP7 {\
1877
- public:\
1878
- name##ActionP7(p0##_type gmock_p0, p1##_type gmock_p1, \
1879
- p2##_type gmock_p2, p3##_type gmock_p3, p4##_type gmock_p4, \
1880
- p5##_type gmock_p5, \
1881
- p6##_type gmock_p6) : p0(::testing::internal::forward<p0##_type>(gmock_p0)), \
1882
- p1(::testing::internal::forward<p1##_type>(gmock_p1)), \
1883
- p2(::testing::internal::forward<p2##_type>(gmock_p2)), \
1884
- p3(::testing::internal::forward<p3##_type>(gmock_p3)), \
1885
- p4(::testing::internal::forward<p4##_type>(gmock_p4)), \
1886
- p5(::testing::internal::forward<p5##_type>(gmock_p5)), \
1887
- p6(::testing::internal::forward<p6##_type>(gmock_p6)) {}\
1888
- template <typename F>\
1889
- class gmock_Impl : public ::testing::ActionInterface<F> {\
1890
- public:\
1891
- typedef F function_type;\
1892
- typedef typename ::testing::internal::Function<F>::Result return_type;\
1893
- typedef typename ::testing::internal::Function<F>::ArgumentTuple\
1894
- args_type;\
1895
- gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
1896
- p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5, \
1897
- p6##_type gmock_p6) : p0(::testing::internal::forward<p0##_type>(gmock_p0)), \
1898
- p1(::testing::internal::forward<p1##_type>(gmock_p1)), \
1899
- p2(::testing::internal::forward<p2##_type>(gmock_p2)), \
1900
- p3(::testing::internal::forward<p3##_type>(gmock_p3)), \
1901
- p4(::testing::internal::forward<p4##_type>(gmock_p4)), \
1902
- p5(::testing::internal::forward<p5##_type>(gmock_p5)), \
1903
- p6(::testing::internal::forward<p6##_type>(gmock_p6)) {}\
1904
- virtual return_type Perform(const args_type& args) {\
1905
- return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
1906
- Perform(this, args);\
1907
- }\
1908
- template <typename arg0_type, typename arg1_type, typename arg2_type, \
1909
- typename arg3_type, typename arg4_type, typename arg5_type, \
1910
- typename arg6_type, typename arg7_type, typename arg8_type, \
1911
- typename arg9_type>\
1912
- return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, \
1913
- arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, \
1914
- arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, \
1915
- arg9_type arg9) const;\
1916
- p0##_type p0;\
1917
- p1##_type p1;\
1918
- p2##_type p2;\
1919
- p3##_type p3;\
1920
- p4##_type p4;\
1921
- p5##_type p5;\
1922
- p6##_type p6;\
1923
- private:\
1924
- GTEST_DISALLOW_ASSIGN_(gmock_Impl);\
1925
- };\
1926
- template <typename F> operator ::testing::Action<F>() const {\
1927
- return ::testing::Action<F>(new gmock_Impl<F>(p0, p1, p2, p3, p4, p5, \
1928
- p6));\
1929
- }\
1930
- p0##_type p0;\
1931
- p1##_type p1;\
1932
- p2##_type p2;\
1933
- p3##_type p3;\
1934
- p4##_type p4;\
1935
- p5##_type p5;\
1936
- p6##_type p6;\
1937
- private:\
1938
- GTEST_DISALLOW_ASSIGN_(name##ActionP7);\
1939
- };\
1940
- template <typename p0##_type, typename p1##_type, typename p2##_type, \
1941
- typename p3##_type, typename p4##_type, typename p5##_type, \
1942
- typename p6##_type>\
1943
- inline name##ActionP7<p0##_type, p1##_type, p2##_type, p3##_type, \
1944
- p4##_type, p5##_type, p6##_type> name(p0##_type p0, p1##_type p1, \
1945
- p2##_type p2, p3##_type p3, p4##_type p4, p5##_type p5, \
1946
- p6##_type p6) {\
1947
- return name##ActionP7<p0##_type, p1##_type, p2##_type, p3##_type, \
1948
- p4##_type, p5##_type, p6##_type>(p0, p1, p2, p3, p4, p5, p6);\
1949
- }\
1950
- template <typename p0##_type, typename p1##_type, typename p2##_type, \
1951
- typename p3##_type, typename p4##_type, typename p5##_type, \
1952
- typename p6##_type>\
1953
- template <typename F>\
1954
- template <typename arg0_type, typename arg1_type, typename arg2_type, \
1955
- typename arg3_type, typename arg4_type, typename arg5_type, \
1956
- typename arg6_type, typename arg7_type, typename arg8_type, \
1957
- typename arg9_type>\
1958
- typename ::testing::internal::Function<F>::Result\
1959
- name##ActionP7<p0##_type, p1##_type, p2##_type, p3##_type, p4##_type, \
1960
- p5##_type, p6##_type>::gmock_Impl<F>::gmock_PerformImpl(\
1961
- GMOCK_ACTION_ARG_TYPES_AND_NAMES_UNUSED_) const
1962
-
1963
- #define ACTION_P8(name, p0, p1, p2, p3, p4, p5, p6, p7)\
1964
- template <typename p0##_type, typename p1##_type, typename p2##_type, \
1965
- typename p3##_type, typename p4##_type, typename p5##_type, \
1966
- typename p6##_type, typename p7##_type>\
1967
- class name##ActionP8 {\
1968
- public:\
1969
- name##ActionP8(p0##_type gmock_p0, p1##_type gmock_p1, \
1970
- p2##_type gmock_p2, p3##_type gmock_p3, p4##_type gmock_p4, \
1971
- p5##_type gmock_p5, p6##_type gmock_p6, \
1972
- p7##_type gmock_p7) : p0(::testing::internal::forward<p0##_type>(gmock_p0)), \
1973
- p1(::testing::internal::forward<p1##_type>(gmock_p1)), \
1974
- p2(::testing::internal::forward<p2##_type>(gmock_p2)), \
1975
- p3(::testing::internal::forward<p3##_type>(gmock_p3)), \
1976
- p4(::testing::internal::forward<p4##_type>(gmock_p4)), \
1977
- p5(::testing::internal::forward<p5##_type>(gmock_p5)), \
1978
- p6(::testing::internal::forward<p6##_type>(gmock_p6)), \
1979
- p7(::testing::internal::forward<p7##_type>(gmock_p7)) {}\
1980
- template <typename F>\
1981
- class gmock_Impl : public ::testing::ActionInterface<F> {\
1982
- public:\
1983
- typedef F function_type;\
1984
- typedef typename ::testing::internal::Function<F>::Result return_type;\
1985
- typedef typename ::testing::internal::Function<F>::ArgumentTuple\
1986
- args_type;\
1987
- gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
1988
- p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5, \
1989
- p6##_type gmock_p6, \
1990
- p7##_type gmock_p7) : p0(::testing::internal::forward<p0##_type>(gmock_p0)), \
1991
- p1(::testing::internal::forward<p1##_type>(gmock_p1)), \
1992
- p2(::testing::internal::forward<p2##_type>(gmock_p2)), \
1993
- p3(::testing::internal::forward<p3##_type>(gmock_p3)), \
1994
- p4(::testing::internal::forward<p4##_type>(gmock_p4)), \
1995
- p5(::testing::internal::forward<p5##_type>(gmock_p5)), \
1996
- p6(::testing::internal::forward<p6##_type>(gmock_p6)), \
1997
- p7(::testing::internal::forward<p7##_type>(gmock_p7)) {}\
1998
- virtual return_type Perform(const args_type& args) {\
1999
- return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
2000
- Perform(this, args);\
2001
- }\
2002
- template <typename arg0_type, typename arg1_type, typename arg2_type, \
2003
- typename arg3_type, typename arg4_type, typename arg5_type, \
2004
- typename arg6_type, typename arg7_type, typename arg8_type, \
2005
- typename arg9_type>\
2006
- return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, \
2007
- arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, \
2008
- arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, \
2009
- arg9_type arg9) const;\
2010
- p0##_type p0;\
2011
- p1##_type p1;\
2012
- p2##_type p2;\
2013
- p3##_type p3;\
2014
- p4##_type p4;\
2015
- p5##_type p5;\
2016
- p6##_type p6;\
2017
- p7##_type p7;\
2018
- private:\
2019
- GTEST_DISALLOW_ASSIGN_(gmock_Impl);\
2020
- };\
2021
- template <typename F> operator ::testing::Action<F>() const {\
2022
- return ::testing::Action<F>(new gmock_Impl<F>(p0, p1, p2, p3, p4, p5, \
2023
- p6, p7));\
2024
- }\
2025
- p0##_type p0;\
2026
- p1##_type p1;\
2027
- p2##_type p2;\
2028
- p3##_type p3;\
2029
- p4##_type p4;\
2030
- p5##_type p5;\
2031
- p6##_type p6;\
2032
- p7##_type p7;\
2033
- private:\
2034
- GTEST_DISALLOW_ASSIGN_(name##ActionP8);\
2035
- };\
2036
- template <typename p0##_type, typename p1##_type, typename p2##_type, \
2037
- typename p3##_type, typename p4##_type, typename p5##_type, \
2038
- typename p6##_type, typename p7##_type>\
2039
- inline name##ActionP8<p0##_type, p1##_type, p2##_type, p3##_type, \
2040
- p4##_type, p5##_type, p6##_type, p7##_type> name(p0##_type p0, \
2041
- p1##_type p1, p2##_type p2, p3##_type p3, p4##_type p4, p5##_type p5, \
2042
- p6##_type p6, p7##_type p7) {\
2043
- return name##ActionP8<p0##_type, p1##_type, p2##_type, p3##_type, \
2044
- p4##_type, p5##_type, p6##_type, p7##_type>(p0, p1, p2, p3, p4, p5, \
2045
- p6, p7);\
2046
- }\
2047
- template <typename p0##_type, typename p1##_type, typename p2##_type, \
2048
- typename p3##_type, typename p4##_type, typename p5##_type, \
2049
- typename p6##_type, typename p7##_type>\
2050
- template <typename F>\
2051
- template <typename arg0_type, typename arg1_type, typename arg2_type, \
2052
- typename arg3_type, typename arg4_type, typename arg5_type, \
2053
- typename arg6_type, typename arg7_type, typename arg8_type, \
2054
- typename arg9_type>\
2055
- typename ::testing::internal::Function<F>::Result\
2056
- name##ActionP8<p0##_type, p1##_type, p2##_type, p3##_type, p4##_type, \
2057
- p5##_type, p6##_type, \
2058
- p7##_type>::gmock_Impl<F>::gmock_PerformImpl(\
2059
- GMOCK_ACTION_ARG_TYPES_AND_NAMES_UNUSED_) const
2060
-
2061
- #define ACTION_P9(name, p0, p1, p2, p3, p4, p5, p6, p7, p8)\
2062
- template <typename p0##_type, typename p1##_type, typename p2##_type, \
2063
- typename p3##_type, typename p4##_type, typename p5##_type, \
2064
- typename p6##_type, typename p7##_type, typename p8##_type>\
2065
- class name##ActionP9 {\
2066
- public:\
2067
- name##ActionP9(p0##_type gmock_p0, p1##_type gmock_p1, \
2068
- p2##_type gmock_p2, p3##_type gmock_p3, p4##_type gmock_p4, \
2069
- p5##_type gmock_p5, p6##_type gmock_p6, p7##_type gmock_p7, \
2070
- p8##_type gmock_p8) : p0(::testing::internal::forward<p0##_type>(gmock_p0)), \
2071
- p1(::testing::internal::forward<p1##_type>(gmock_p1)), \
2072
- p2(::testing::internal::forward<p2##_type>(gmock_p2)), \
2073
- p3(::testing::internal::forward<p3##_type>(gmock_p3)), \
2074
- p4(::testing::internal::forward<p4##_type>(gmock_p4)), \
2075
- p5(::testing::internal::forward<p5##_type>(gmock_p5)), \
2076
- p6(::testing::internal::forward<p6##_type>(gmock_p6)), \
2077
- p7(::testing::internal::forward<p7##_type>(gmock_p7)), \
2078
- p8(::testing::internal::forward<p8##_type>(gmock_p8)) {}\
2079
- template <typename F>\
2080
- class gmock_Impl : public ::testing::ActionInterface<F> {\
2081
- public:\
2082
- typedef F function_type;\
2083
- typedef typename ::testing::internal::Function<F>::Result return_type;\
2084
- typedef typename ::testing::internal::Function<F>::ArgumentTuple\
2085
- args_type;\
2086
- gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
2087
- p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5, \
2088
- p6##_type gmock_p6, p7##_type gmock_p7, \
2089
- p8##_type gmock_p8) : p0(::testing::internal::forward<p0##_type>(gmock_p0)), \
2090
- p1(::testing::internal::forward<p1##_type>(gmock_p1)), \
2091
- p2(::testing::internal::forward<p2##_type>(gmock_p2)), \
2092
- p3(::testing::internal::forward<p3##_type>(gmock_p3)), \
2093
- p4(::testing::internal::forward<p4##_type>(gmock_p4)), \
2094
- p5(::testing::internal::forward<p5##_type>(gmock_p5)), \
2095
- p6(::testing::internal::forward<p6##_type>(gmock_p6)), \
2096
- p7(::testing::internal::forward<p7##_type>(gmock_p7)), \
2097
- p8(::testing::internal::forward<p8##_type>(gmock_p8)) {}\
2098
- virtual return_type Perform(const args_type& args) {\
2099
- return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
2100
- Perform(this, args);\
2101
- }\
2102
- template <typename arg0_type, typename arg1_type, typename arg2_type, \
2103
- typename arg3_type, typename arg4_type, typename arg5_type, \
2104
- typename arg6_type, typename arg7_type, typename arg8_type, \
2105
- typename arg9_type>\
2106
- return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, \
2107
- arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, \
2108
- arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, \
2109
- arg9_type arg9) const;\
2110
- p0##_type p0;\
2111
- p1##_type p1;\
2112
- p2##_type p2;\
2113
- p3##_type p3;\
2114
- p4##_type p4;\
2115
- p5##_type p5;\
2116
- p6##_type p6;\
2117
- p7##_type p7;\
2118
- p8##_type p8;\
2119
- private:\
2120
- GTEST_DISALLOW_ASSIGN_(gmock_Impl);\
2121
- };\
2122
- template <typename F> operator ::testing::Action<F>() const {\
2123
- return ::testing::Action<F>(new gmock_Impl<F>(p0, p1, p2, p3, p4, p5, \
2124
- p6, p7, p8));\
2125
- }\
2126
- p0##_type p0;\
2127
- p1##_type p1;\
2128
- p2##_type p2;\
2129
- p3##_type p3;\
2130
- p4##_type p4;\
2131
- p5##_type p5;\
2132
- p6##_type p6;\
2133
- p7##_type p7;\
2134
- p8##_type p8;\
2135
- private:\
2136
- GTEST_DISALLOW_ASSIGN_(name##ActionP9);\
2137
- };\
2138
- template <typename p0##_type, typename p1##_type, typename p2##_type, \
2139
- typename p3##_type, typename p4##_type, typename p5##_type, \
2140
- typename p6##_type, typename p7##_type, typename p8##_type>\
2141
- inline name##ActionP9<p0##_type, p1##_type, p2##_type, p3##_type, \
2142
- p4##_type, p5##_type, p6##_type, p7##_type, \
2143
- p8##_type> name(p0##_type p0, p1##_type p1, p2##_type p2, p3##_type p3, \
2144
- p4##_type p4, p5##_type p5, p6##_type p6, p7##_type p7, \
2145
- p8##_type p8) {\
2146
- return name##ActionP9<p0##_type, p1##_type, p2##_type, p3##_type, \
2147
- p4##_type, p5##_type, p6##_type, p7##_type, p8##_type>(p0, p1, p2, \
2148
- p3, p4, p5, p6, p7, p8);\
2149
- }\
2150
- template <typename p0##_type, typename p1##_type, typename p2##_type, \
2151
- typename p3##_type, typename p4##_type, typename p5##_type, \
2152
- typename p6##_type, typename p7##_type, typename p8##_type>\
2153
- template <typename F>\
2154
- template <typename arg0_type, typename arg1_type, typename arg2_type, \
2155
- typename arg3_type, typename arg4_type, typename arg5_type, \
2156
- typename arg6_type, typename arg7_type, typename arg8_type, \
2157
- typename arg9_type>\
2158
- typename ::testing::internal::Function<F>::Result\
2159
- name##ActionP9<p0##_type, p1##_type, p2##_type, p3##_type, p4##_type, \
2160
- p5##_type, p6##_type, p7##_type, \
2161
- p8##_type>::gmock_Impl<F>::gmock_PerformImpl(\
2162
- GMOCK_ACTION_ARG_TYPES_AND_NAMES_UNUSED_) const
2163
-
2164
- #define ACTION_P10(name, p0, p1, p2, p3, p4, p5, p6, p7, p8, p9)\
2165
- template <typename p0##_type, typename p1##_type, typename p2##_type, \
2166
- typename p3##_type, typename p4##_type, typename p5##_type, \
2167
- typename p6##_type, typename p7##_type, typename p8##_type, \
2168
- typename p9##_type>\
2169
- class name##ActionP10 {\
2170
- public:\
2171
- name##ActionP10(p0##_type gmock_p0, p1##_type gmock_p1, \
2172
- p2##_type gmock_p2, p3##_type gmock_p3, p4##_type gmock_p4, \
2173
- p5##_type gmock_p5, p6##_type gmock_p6, p7##_type gmock_p7, \
2174
- p8##_type gmock_p8, \
2175
- p9##_type gmock_p9) : p0(::testing::internal::forward<p0##_type>(gmock_p0)), \
2176
- p1(::testing::internal::forward<p1##_type>(gmock_p1)), \
2177
- p2(::testing::internal::forward<p2##_type>(gmock_p2)), \
2178
- p3(::testing::internal::forward<p3##_type>(gmock_p3)), \
2179
- p4(::testing::internal::forward<p4##_type>(gmock_p4)), \
2180
- p5(::testing::internal::forward<p5##_type>(gmock_p5)), \
2181
- p6(::testing::internal::forward<p6##_type>(gmock_p6)), \
2182
- p7(::testing::internal::forward<p7##_type>(gmock_p7)), \
2183
- p8(::testing::internal::forward<p8##_type>(gmock_p8)), \
2184
- p9(::testing::internal::forward<p9##_type>(gmock_p9)) {}\
2185
- template <typename F>\
2186
- class gmock_Impl : public ::testing::ActionInterface<F> {\
2187
- public:\
2188
- typedef F function_type;\
2189
- typedef typename ::testing::internal::Function<F>::Result return_type;\
2190
- typedef typename ::testing::internal::Function<F>::ArgumentTuple\
2191
- args_type;\
2192
- gmock_Impl(p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
2193
- p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5, \
2194
- p6##_type gmock_p6, p7##_type gmock_p7, p8##_type gmock_p8, \
2195
- p9##_type gmock_p9) : p0(::testing::internal::forward<p0##_type>(gmock_p0)), \
2196
- p1(::testing::internal::forward<p1##_type>(gmock_p1)), \
2197
- p2(::testing::internal::forward<p2##_type>(gmock_p2)), \
2198
- p3(::testing::internal::forward<p3##_type>(gmock_p3)), \
2199
- p4(::testing::internal::forward<p4##_type>(gmock_p4)), \
2200
- p5(::testing::internal::forward<p5##_type>(gmock_p5)), \
2201
- p6(::testing::internal::forward<p6##_type>(gmock_p6)), \
2202
- p7(::testing::internal::forward<p7##_type>(gmock_p7)), \
2203
- p8(::testing::internal::forward<p8##_type>(gmock_p8)), \
2204
- p9(::testing::internal::forward<p9##_type>(gmock_p9)) {}\
2205
- virtual return_type Perform(const args_type& args) {\
2206
- return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
2207
- Perform(this, args);\
2208
- }\
2209
- template <typename arg0_type, typename arg1_type, typename arg2_type, \
2210
- typename arg3_type, typename arg4_type, typename arg5_type, \
2211
- typename arg6_type, typename arg7_type, typename arg8_type, \
2212
- typename arg9_type>\
2213
- return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, \
2214
- arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, \
2215
- arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, \
2216
- arg9_type arg9) const;\
2217
- p0##_type p0;\
2218
- p1##_type p1;\
2219
- p2##_type p2;\
2220
- p3##_type p3;\
2221
- p4##_type p4;\
2222
- p5##_type p5;\
2223
- p6##_type p6;\
2224
- p7##_type p7;\
2225
- p8##_type p8;\
2226
- p9##_type p9;\
2227
- private:\
2228
- GTEST_DISALLOW_ASSIGN_(gmock_Impl);\
2229
- };\
2230
- template <typename F> operator ::testing::Action<F>() const {\
2231
- return ::testing::Action<F>(new gmock_Impl<F>(p0, p1, p2, p3, p4, p5, \
2232
- p6, p7, p8, p9));\
2233
- }\
2234
- p0##_type p0;\
2235
- p1##_type p1;\
2236
- p2##_type p2;\
2237
- p3##_type p3;\
2238
- p4##_type p4;\
2239
- p5##_type p5;\
2240
- p6##_type p6;\
2241
- p7##_type p7;\
2242
- p8##_type p8;\
2243
- p9##_type p9;\
2244
- private:\
2245
- GTEST_DISALLOW_ASSIGN_(name##ActionP10);\
2246
- };\
2247
- template <typename p0##_type, typename p1##_type, typename p2##_type, \
2248
- typename p3##_type, typename p4##_type, typename p5##_type, \
2249
- typename p6##_type, typename p7##_type, typename p8##_type, \
2250
- typename p9##_type>\
2251
- inline name##ActionP10<p0##_type, p1##_type, p2##_type, p3##_type, \
2252
- p4##_type, p5##_type, p6##_type, p7##_type, p8##_type, \
2253
- p9##_type> name(p0##_type p0, p1##_type p1, p2##_type p2, p3##_type p3, \
2254
- p4##_type p4, p5##_type p5, p6##_type p6, p7##_type p7, p8##_type p8, \
2255
- p9##_type p9) {\
2256
- return name##ActionP10<p0##_type, p1##_type, p2##_type, p3##_type, \
2257
- p4##_type, p5##_type, p6##_type, p7##_type, p8##_type, p9##_type>(p0, \
2258
- p1, p2, p3, p4, p5, p6, p7, p8, p9);\
2259
- }\
2260
- template <typename p0##_type, typename p1##_type, typename p2##_type, \
2261
- typename p3##_type, typename p4##_type, typename p5##_type, \
2262
- typename p6##_type, typename p7##_type, typename p8##_type, \
2263
- typename p9##_type>\
2264
- template <typename F>\
2265
- template <typename arg0_type, typename arg1_type, typename arg2_type, \
2266
- typename arg3_type, typename arg4_type, typename arg5_type, \
2267
- typename arg6_type, typename arg7_type, typename arg8_type, \
2268
- typename arg9_type>\
2269
- typename ::testing::internal::Function<F>::Result\
2270
- name##ActionP10<p0##_type, p1##_type, p2##_type, p3##_type, p4##_type, \
2271
- p5##_type, p6##_type, p7##_type, p8##_type, \
2272
- p9##_type>::gmock_Impl<F>::gmock_PerformImpl(\
2273
- GMOCK_ACTION_ARG_TYPES_AND_NAMES_UNUSED_) const
2274
-
2275
- namespace testing {
2276
-
2277
-
2278
- // The ACTION*() macros trigger warning C4100 (unreferenced formal
2279
- // parameter) in MSVC with -W4. Unfortunately they cannot be fixed in
2280
- // the macro definition, as the warnings are generated when the macro
2281
- // is expanded and macro expansion cannot contain #pragma. Therefore
2282
- // we suppress them here.
2283
- #ifdef _MSC_VER
2284
- # pragma warning(push)
2285
- # pragma warning(disable:4100)
2286
- #endif
2287
-
2288
- // Various overloads for InvokeArgument<N>().
2289
- //
2290
- // The InvokeArgument<N>(a1, a2, ..., a_k) action invokes the N-th
2291
- // (0-based) argument, which must be a k-ary callable, of the mock
2292
- // function, with arguments a1, a2, ..., a_k.
2293
- //
2294
- // Notes:
2295
- //
2296
- // 1. The arguments are passed by value by default. If you need to
2297
- // pass an argument by reference, wrap it inside ByRef(). For
2298
- // example,
2299
- //
2300
- // InvokeArgument<1>(5, string("Hello"), ByRef(foo))
2301
- //
2302
- // passes 5 and string("Hello") by value, and passes foo by
2303
- // reference.
2304
- //
2305
- // 2. If the callable takes an argument by reference but ByRef() is
2306
- // not used, it will receive the reference to a copy of the value,
2307
- // instead of the original value. For example, when the 0-th
2308
- // argument of the mock function takes a const string&, the action
2309
- //
2310
- // InvokeArgument<0>(string("Hello"))
2311
- //
2312
- // makes a copy of the temporary string("Hello") object and passes a
2313
- // reference of the copy, instead of the original temporary object,
2314
- // to the callable. This makes it easy for a user to define an
2315
- // InvokeArgument action from temporary values and have it performed
2316
- // later.
2317
-
2318
- namespace internal {
2319
- namespace invoke_argument {
2320
-
2321
- // Appears in InvokeArgumentAdl's argument list to help avoid
2322
- // accidental calls to user functions of the same name.
2323
- struct AdlTag {};
2324
-
2325
- // InvokeArgumentAdl - a helper for InvokeArgument.
2326
- // The basic overloads are provided here for generic functors.
2327
- // Overloads for other custom-callables are provided in the
2328
- // internal/custom/callback-actions.h header.
2329
-
2330
- template <typename R, typename F>
2331
- R InvokeArgumentAdl(AdlTag, F f) {
2332
- return f();
2333
- }
2334
- template <typename R, typename F, typename A1>
2335
- R InvokeArgumentAdl(AdlTag, F f, A1 a1) {
2336
- return f(a1);
2337
- }
2338
- template <typename R, typename F, typename A1, typename A2>
2339
- R InvokeArgumentAdl(AdlTag, F f, A1 a1, A2 a2) {
2340
- return f(a1, a2);
2341
- }
2342
- template <typename R, typename F, typename A1, typename A2, typename A3>
2343
- R InvokeArgumentAdl(AdlTag, F f, A1 a1, A2 a2, A3 a3) {
2344
- return f(a1, a2, a3);
2345
- }
2346
- template <typename R, typename F, typename A1, typename A2, typename A3,
2347
- typename A4>
2348
- R InvokeArgumentAdl(AdlTag, F f, A1 a1, A2 a2, A3 a3, A4 a4) {
2349
- return f(a1, a2, a3, a4);
2350
- }
2351
- template <typename R, typename F, typename A1, typename A2, typename A3,
2352
- typename A4, typename A5>
2353
- R InvokeArgumentAdl(AdlTag, F f, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5) {
2354
- return f(a1, a2, a3, a4, a5);
2355
- }
2356
- template <typename R, typename F, typename A1, typename A2, typename A3,
2357
- typename A4, typename A5, typename A6>
2358
- R InvokeArgumentAdl(AdlTag, F f, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6) {
2359
- return f(a1, a2, a3, a4, a5, a6);
2360
- }
2361
- template <typename R, typename F, typename A1, typename A2, typename A3,
2362
- typename A4, typename A5, typename A6, typename A7>
2363
- R InvokeArgumentAdl(AdlTag, F f, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6,
2364
- A7 a7) {
2365
- return f(a1, a2, a3, a4, a5, a6, a7);
2366
- }
2367
- template <typename R, typename F, typename A1, typename A2, typename A3,
2368
- typename A4, typename A5, typename A6, typename A7, typename A8>
2369
- R InvokeArgumentAdl(AdlTag, F f, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6,
2370
- A7 a7, A8 a8) {
2371
- return f(a1, a2, a3, a4, a5, a6, a7, a8);
2372
- }
2373
- template <typename R, typename F, typename A1, typename A2, typename A3,
2374
- typename A4, typename A5, typename A6, typename A7, typename A8,
2375
- typename A9>
2376
- R InvokeArgumentAdl(AdlTag, F f, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6,
2377
- A7 a7, A8 a8, A9 a9) {
2378
- return f(a1, a2, a3, a4, a5, a6, a7, a8, a9);
2379
- }
2380
- template <typename R, typename F, typename A1, typename A2, typename A3,
2381
- typename A4, typename A5, typename A6, typename A7, typename A8,
2382
- typename A9, typename A10>
2383
- R InvokeArgumentAdl(AdlTag, F f, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6,
2384
- A7 a7, A8 a8, A9 a9, A10 a10) {
2385
- return f(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10);
2386
- }
2387
- } // namespace invoke_argument
2388
- } // namespace internal
2389
-
2390
- ACTION_TEMPLATE(InvokeArgument,
2391
- HAS_1_TEMPLATE_PARAMS(int, k),
2392
- AND_0_VALUE_PARAMS()) {
2393
- using internal::invoke_argument::InvokeArgumentAdl;
2394
- return InvokeArgumentAdl<return_type>(
2395
- internal::invoke_argument::AdlTag(),
2396
- ::testing::get<k>(args));
2397
- }
2398
-
2399
- ACTION_TEMPLATE(InvokeArgument,
2400
- HAS_1_TEMPLATE_PARAMS(int, k),
2401
- AND_1_VALUE_PARAMS(p0)) {
2402
- using internal::invoke_argument::InvokeArgumentAdl;
2403
- return InvokeArgumentAdl<return_type>(
2404
- internal::invoke_argument::AdlTag(),
2405
- ::testing::get<k>(args), p0);
2406
- }
2407
-
2408
- ACTION_TEMPLATE(InvokeArgument,
2409
- HAS_1_TEMPLATE_PARAMS(int, k),
2410
- AND_2_VALUE_PARAMS(p0, p1)) {
2411
- using internal::invoke_argument::InvokeArgumentAdl;
2412
- return InvokeArgumentAdl<return_type>(
2413
- internal::invoke_argument::AdlTag(),
2414
- ::testing::get<k>(args), p0, p1);
2415
- }
2416
-
2417
- ACTION_TEMPLATE(InvokeArgument,
2418
- HAS_1_TEMPLATE_PARAMS(int, k),
2419
- AND_3_VALUE_PARAMS(p0, p1, p2)) {
2420
- using internal::invoke_argument::InvokeArgumentAdl;
2421
- return InvokeArgumentAdl<return_type>(
2422
- internal::invoke_argument::AdlTag(),
2423
- ::testing::get<k>(args), p0, p1, p2);
2424
- }
2425
-
2426
- ACTION_TEMPLATE(InvokeArgument,
2427
- HAS_1_TEMPLATE_PARAMS(int, k),
2428
- AND_4_VALUE_PARAMS(p0, p1, p2, p3)) {
2429
- using internal::invoke_argument::InvokeArgumentAdl;
2430
- return InvokeArgumentAdl<return_type>(
2431
- internal::invoke_argument::AdlTag(),
2432
- ::testing::get<k>(args), p0, p1, p2, p3);
2433
- }
2434
-
2435
- ACTION_TEMPLATE(InvokeArgument,
2436
- HAS_1_TEMPLATE_PARAMS(int, k),
2437
- AND_5_VALUE_PARAMS(p0, p1, p2, p3, p4)) {
2438
- using internal::invoke_argument::InvokeArgumentAdl;
2439
- return InvokeArgumentAdl<return_type>(
2440
- internal::invoke_argument::AdlTag(),
2441
- ::testing::get<k>(args), p0, p1, p2, p3, p4);
2442
- }
2443
-
2444
- ACTION_TEMPLATE(InvokeArgument,
2445
- HAS_1_TEMPLATE_PARAMS(int, k),
2446
- AND_6_VALUE_PARAMS(p0, p1, p2, p3, p4, p5)) {
2447
- using internal::invoke_argument::InvokeArgumentAdl;
2448
- return InvokeArgumentAdl<return_type>(
2449
- internal::invoke_argument::AdlTag(),
2450
- ::testing::get<k>(args), p0, p1, p2, p3, p4, p5);
2451
- }
2452
-
2453
- ACTION_TEMPLATE(InvokeArgument,
2454
- HAS_1_TEMPLATE_PARAMS(int, k),
2455
- AND_7_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6)) {
2456
- using internal::invoke_argument::InvokeArgumentAdl;
2457
- return InvokeArgumentAdl<return_type>(
2458
- internal::invoke_argument::AdlTag(),
2459
- ::testing::get<k>(args), p0, p1, p2, p3, p4, p5, p6);
2460
- }
2461
-
2462
- ACTION_TEMPLATE(InvokeArgument,
2463
- HAS_1_TEMPLATE_PARAMS(int, k),
2464
- AND_8_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, p7)) {
2465
- using internal::invoke_argument::InvokeArgumentAdl;
2466
- return InvokeArgumentAdl<return_type>(
2467
- internal::invoke_argument::AdlTag(),
2468
- ::testing::get<k>(args), p0, p1, p2, p3, p4, p5, p6, p7);
2469
- }
2470
-
2471
- ACTION_TEMPLATE(InvokeArgument,
2472
- HAS_1_TEMPLATE_PARAMS(int, k),
2473
- AND_9_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, p7, p8)) {
2474
- using internal::invoke_argument::InvokeArgumentAdl;
2475
- return InvokeArgumentAdl<return_type>(
2476
- internal::invoke_argument::AdlTag(),
2477
- ::testing::get<k>(args), p0, p1, p2, p3, p4, p5, p6, p7, p8);
2478
- }
2479
-
2480
- ACTION_TEMPLATE(InvokeArgument,
2481
- HAS_1_TEMPLATE_PARAMS(int, k),
2482
- AND_10_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9)) {
2483
- using internal::invoke_argument::InvokeArgumentAdl;
2484
- return InvokeArgumentAdl<return_type>(
2485
- internal::invoke_argument::AdlTag(),
2486
- ::testing::get<k>(args), p0, p1, p2, p3, p4, p5, p6, p7, p8, p9);
2487
- }
2488
-
2489
- // Various overloads for ReturnNew<T>().
2490
- //
2491
- // The ReturnNew<T>(a1, a2, ..., a_k) action returns a pointer to a new
2492
- // instance of type T, constructed on the heap with constructor arguments
2493
- // a1, a2, ..., and a_k. The caller assumes ownership of the returned value.
2494
- ACTION_TEMPLATE(ReturnNew,
2495
- HAS_1_TEMPLATE_PARAMS(typename, T),
2496
- AND_0_VALUE_PARAMS()) {
2497
- return new T();
2498
- }
2499
-
2500
- ACTION_TEMPLATE(ReturnNew,
2501
- HAS_1_TEMPLATE_PARAMS(typename, T),
2502
- AND_1_VALUE_PARAMS(p0)) {
2503
- return new T(p0);
2504
- }
2505
-
2506
- ACTION_TEMPLATE(ReturnNew,
2507
- HAS_1_TEMPLATE_PARAMS(typename, T),
2508
- AND_2_VALUE_PARAMS(p0, p1)) {
2509
- return new T(p0, p1);
2510
- }
2511
-
2512
- ACTION_TEMPLATE(ReturnNew,
2513
- HAS_1_TEMPLATE_PARAMS(typename, T),
2514
- AND_3_VALUE_PARAMS(p0, p1, p2)) {
2515
- return new T(p0, p1, p2);
2516
- }
2517
-
2518
- ACTION_TEMPLATE(ReturnNew,
2519
- HAS_1_TEMPLATE_PARAMS(typename, T),
2520
- AND_4_VALUE_PARAMS(p0, p1, p2, p3)) {
2521
- return new T(p0, p1, p2, p3);
2522
- }
2523
-
2524
- ACTION_TEMPLATE(ReturnNew,
2525
- HAS_1_TEMPLATE_PARAMS(typename, T),
2526
- AND_5_VALUE_PARAMS(p0, p1, p2, p3, p4)) {
2527
- return new T(p0, p1, p2, p3, p4);
2528
- }
2529
-
2530
- ACTION_TEMPLATE(ReturnNew,
2531
- HAS_1_TEMPLATE_PARAMS(typename, T),
2532
- AND_6_VALUE_PARAMS(p0, p1, p2, p3, p4, p5)) {
2533
- return new T(p0, p1, p2, p3, p4, p5);
2534
- }
2535
-
2536
- ACTION_TEMPLATE(ReturnNew,
2537
- HAS_1_TEMPLATE_PARAMS(typename, T),
2538
- AND_7_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6)) {
2539
- return new T(p0, p1, p2, p3, p4, p5, p6);
2540
- }
2541
-
2542
- ACTION_TEMPLATE(ReturnNew,
2543
- HAS_1_TEMPLATE_PARAMS(typename, T),
2544
- AND_8_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, p7)) {
2545
- return new T(p0, p1, p2, p3, p4, p5, p6, p7);
2546
- }
2547
-
2548
- ACTION_TEMPLATE(ReturnNew,
2549
- HAS_1_TEMPLATE_PARAMS(typename, T),
2550
- AND_9_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, p7, p8)) {
2551
- return new T(p0, p1, p2, p3, p4, p5, p6, p7, p8);
2552
- }
2553
-
2554
- ACTION_TEMPLATE(ReturnNew,
2555
- HAS_1_TEMPLATE_PARAMS(typename, T),
2556
- AND_10_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9)) {
2557
- return new T(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9);
2558
- }
2559
-
2560
- #ifdef _MSC_VER
2561
- # pragma warning(pop)
2562
- #endif
2563
-
2564
- } // namespace testing
2565
-
2566
- // Include any custom callback actions added by the local installation.
2567
- // We must include this header at the end to make sure it can use the
2568
- // declarations from this file.
2569
- #include "gmock/internal/custom/gmock-generated-actions.h"
2570
-
2571
- #endif // GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_ACTIONS_H_