rj_schema 0.2.3 → 0.2.4

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 (613) hide show
  1. checksums.yaml +4 -4
  2. metadata +3 -615
  3. data/ext/rj_schema/rapidjson/CHANGELOG.md +0 -158
  4. data/ext/rj_schema/rapidjson/CMakeLists.txt +0 -221
  5. data/ext/rj_schema/rapidjson/CMakeModules/FindGTestSrc.cmake +0 -30
  6. data/ext/rj_schema/rapidjson/RapidJSON.pc.in +0 -7
  7. data/ext/rj_schema/rapidjson/RapidJSONConfig.cmake.in +0 -15
  8. data/ext/rj_schema/rapidjson/RapidJSONConfigVersion.cmake.in +0 -10
  9. data/ext/rj_schema/rapidjson/appveyor.yml +0 -41
  10. data/ext/rj_schema/rapidjson/bin/data/glossary.json +0 -22
  11. data/ext/rj_schema/rapidjson/bin/data/menu.json +0 -27
  12. data/ext/rj_schema/rapidjson/bin/data/readme.txt +0 -1
  13. data/ext/rj_schema/rapidjson/bin/data/sample.json +0 -3315
  14. data/ext/rj_schema/rapidjson/bin/data/webapp.json +0 -88
  15. data/ext/rj_schema/rapidjson/bin/data/widget.json +0 -26
  16. data/ext/rj_schema/rapidjson/bin/draft-04/schema +0 -150
  17. data/ext/rj_schema/rapidjson/bin/encodings/utf16be.json +0 -0
  18. data/ext/rj_schema/rapidjson/bin/encodings/utf16bebom.json +0 -0
  19. data/ext/rj_schema/rapidjson/bin/encodings/utf16le.json +0 -0
  20. data/ext/rj_schema/rapidjson/bin/encodings/utf16lebom.json +0 -0
  21. data/ext/rj_schema/rapidjson/bin/encodings/utf32be.json +0 -0
  22. data/ext/rj_schema/rapidjson/bin/encodings/utf32bebom.json +0 -0
  23. data/ext/rj_schema/rapidjson/bin/encodings/utf32le.json +0 -0
  24. data/ext/rj_schema/rapidjson/bin/encodings/utf32lebom.json +0 -0
  25. data/ext/rj_schema/rapidjson/bin/encodings/utf8.json +0 -7
  26. data/ext/rj_schema/rapidjson/bin/encodings/utf8bom.json +0 -7
  27. data/ext/rj_schema/rapidjson/bin/jsonchecker/fail1.json +0 -1
  28. data/ext/rj_schema/rapidjson/bin/jsonchecker/fail10.json +0 -1
  29. data/ext/rj_schema/rapidjson/bin/jsonchecker/fail11.json +0 -1
  30. data/ext/rj_schema/rapidjson/bin/jsonchecker/fail12.json +0 -1
  31. data/ext/rj_schema/rapidjson/bin/jsonchecker/fail13.json +0 -1
  32. data/ext/rj_schema/rapidjson/bin/jsonchecker/fail14.json +0 -1
  33. data/ext/rj_schema/rapidjson/bin/jsonchecker/fail15.json +0 -1
  34. data/ext/rj_schema/rapidjson/bin/jsonchecker/fail16.json +0 -1
  35. data/ext/rj_schema/rapidjson/bin/jsonchecker/fail17.json +0 -1
  36. data/ext/rj_schema/rapidjson/bin/jsonchecker/fail18.json +0 -1
  37. data/ext/rj_schema/rapidjson/bin/jsonchecker/fail19.json +0 -1
  38. data/ext/rj_schema/rapidjson/bin/jsonchecker/fail2.json +0 -1
  39. data/ext/rj_schema/rapidjson/bin/jsonchecker/fail20.json +0 -1
  40. data/ext/rj_schema/rapidjson/bin/jsonchecker/fail21.json +0 -1
  41. data/ext/rj_schema/rapidjson/bin/jsonchecker/fail22.json +0 -1
  42. data/ext/rj_schema/rapidjson/bin/jsonchecker/fail23.json +0 -1
  43. data/ext/rj_schema/rapidjson/bin/jsonchecker/fail24.json +0 -1
  44. data/ext/rj_schema/rapidjson/bin/jsonchecker/fail25.json +0 -1
  45. data/ext/rj_schema/rapidjson/bin/jsonchecker/fail26.json +0 -1
  46. data/ext/rj_schema/rapidjson/bin/jsonchecker/fail27.json +0 -2
  47. data/ext/rj_schema/rapidjson/bin/jsonchecker/fail28.json +0 -2
  48. data/ext/rj_schema/rapidjson/bin/jsonchecker/fail29.json +0 -1
  49. data/ext/rj_schema/rapidjson/bin/jsonchecker/fail3.json +0 -1
  50. data/ext/rj_schema/rapidjson/bin/jsonchecker/fail30.json +0 -1
  51. data/ext/rj_schema/rapidjson/bin/jsonchecker/fail31.json +0 -1
  52. data/ext/rj_schema/rapidjson/bin/jsonchecker/fail32.json +0 -1
  53. data/ext/rj_schema/rapidjson/bin/jsonchecker/fail33.json +0 -1
  54. data/ext/rj_schema/rapidjson/bin/jsonchecker/fail4.json +0 -1
  55. data/ext/rj_schema/rapidjson/bin/jsonchecker/fail5.json +0 -1
  56. data/ext/rj_schema/rapidjson/bin/jsonchecker/fail6.json +0 -1
  57. data/ext/rj_schema/rapidjson/bin/jsonchecker/fail7.json +0 -1
  58. data/ext/rj_schema/rapidjson/bin/jsonchecker/fail8.json +0 -1
  59. data/ext/rj_schema/rapidjson/bin/jsonchecker/fail9.json +0 -1
  60. data/ext/rj_schema/rapidjson/bin/jsonchecker/pass1.json +0 -58
  61. data/ext/rj_schema/rapidjson/bin/jsonchecker/pass2.json +0 -1
  62. data/ext/rj_schema/rapidjson/bin/jsonchecker/pass3.json +0 -6
  63. data/ext/rj_schema/rapidjson/bin/jsonchecker/readme.txt +0 -3
  64. data/ext/rj_schema/rapidjson/bin/jsonschema/LICENSE +0 -19
  65. data/ext/rj_schema/rapidjson/bin/jsonschema/README.md +0 -148
  66. data/ext/rj_schema/rapidjson/bin/jsonschema/bin/jsonschema_suite +0 -283
  67. data/ext/rj_schema/rapidjson/bin/jsonschema/remotes/folder/folderInteger.json +0 -3
  68. data/ext/rj_schema/rapidjson/bin/jsonschema/remotes/integer.json +0 -3
  69. data/ext/rj_schema/rapidjson/bin/jsonschema/remotes/subSchemas.json +0 -8
  70. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/additionalItems.json +0 -82
  71. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/additionalProperties.json +0 -88
  72. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/default.json +0 -49
  73. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/dependencies.json +0 -108
  74. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/disallow.json +0 -80
  75. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/divisibleBy.json +0 -60
  76. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/enum.json +0 -71
  77. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/extends.json +0 -94
  78. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/items.json +0 -46
  79. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/maxItems.json +0 -28
  80. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/maxLength.json +0 -33
  81. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/maximum.json +0 -42
  82. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/minItems.json +0 -28
  83. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/minLength.json +0 -33
  84. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/minimum.json +0 -42
  85. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/optional/bignum.json +0 -107
  86. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/optional/format.json +0 -222
  87. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/optional/jsregex.json +0 -18
  88. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/optional/zeroTerminatedFloats.json +0 -15
  89. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/pattern.json +0 -34
  90. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/patternProperties.json +0 -110
  91. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/properties.json +0 -92
  92. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/ref.json +0 -159
  93. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/refRemote.json +0 -74
  94. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/required.json +0 -53
  95. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/type.json +0 -474
  96. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/uniqueItems.json +0 -79
  97. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/additionalItems.json +0 -82
  98. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/additionalProperties.json +0 -88
  99. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/allOf.json +0 -112
  100. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/anyOf.json +0 -68
  101. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/default.json +0 -49
  102. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/definitions.json +0 -32
  103. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/dependencies.json +0 -113
  104. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/enum.json +0 -72
  105. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/items.json +0 -46
  106. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/maxItems.json +0 -28
  107. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/maxLength.json +0 -33
  108. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/maxProperties.json +0 -28
  109. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/maximum.json +0 -42
  110. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/minItems.json +0 -28
  111. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/minLength.json +0 -33
  112. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/minProperties.json +0 -28
  113. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/minimum.json +0 -42
  114. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/multipleOf.json +0 -60
  115. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/not.json +0 -96
  116. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/oneOf.json +0 -68
  117. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/optional/bignum.json +0 -107
  118. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/optional/format.json +0 -148
  119. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/optional/zeroTerminatedFloats.json +0 -15
  120. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/pattern.json +0 -34
  121. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/patternProperties.json +0 -110
  122. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/properties.json +0 -92
  123. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/ref.json +0 -159
  124. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/refRemote.json +0 -74
  125. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/required.json +0 -39
  126. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/type.json +0 -330
  127. data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/uniqueItems.json +0 -79
  128. data/ext/rj_schema/rapidjson/bin/jsonschema/tox.ini +0 -8
  129. data/ext/rj_schema/rapidjson/bin/types/booleans.json +0 -102
  130. data/ext/rj_schema/rapidjson/bin/types/floats.json +0 -102
  131. data/ext/rj_schema/rapidjson/bin/types/guids.json +0 -102
  132. data/ext/rj_schema/rapidjson/bin/types/integers.json +0 -102
  133. data/ext/rj_schema/rapidjson/bin/types/mixed.json +0 -592
  134. data/ext/rj_schema/rapidjson/bin/types/nulls.json +0 -102
  135. data/ext/rj_schema/rapidjson/bin/types/paragraphs.json +0 -102
  136. data/ext/rj_schema/rapidjson/bin/types/readme.txt +0 -1
  137. data/ext/rj_schema/rapidjson/contrib/natvis/LICENSE +0 -45
  138. data/ext/rj_schema/rapidjson/contrib/natvis/README.md +0 -7
  139. data/ext/rj_schema/rapidjson/contrib/natvis/rapidjson.natvis +0 -38
  140. data/ext/rj_schema/rapidjson/doc/CMakeLists.txt +0 -27
  141. data/ext/rj_schema/rapidjson/doc/Doxyfile.in +0 -2369
  142. data/ext/rj_schema/rapidjson/doc/Doxyfile.zh-cn.in +0 -2369
  143. data/ext/rj_schema/rapidjson/doc/diagram/architecture.dot +0 -50
  144. data/ext/rj_schema/rapidjson/doc/diagram/architecture.png +0 -0
  145. data/ext/rj_schema/rapidjson/doc/diagram/insituparsing.dot +0 -65
  146. data/ext/rj_schema/rapidjson/doc/diagram/insituparsing.png +0 -0
  147. data/ext/rj_schema/rapidjson/doc/diagram/iterative-parser-states-diagram.dot +0 -62
  148. data/ext/rj_schema/rapidjson/doc/diagram/iterative-parser-states-diagram.png +0 -0
  149. data/ext/rj_schema/rapidjson/doc/diagram/makefile +0 -8
  150. data/ext/rj_schema/rapidjson/doc/diagram/move1.dot +0 -47
  151. data/ext/rj_schema/rapidjson/doc/diagram/move1.png +0 -0
  152. data/ext/rj_schema/rapidjson/doc/diagram/move2.dot +0 -62
  153. data/ext/rj_schema/rapidjson/doc/diagram/move2.png +0 -0
  154. data/ext/rj_schema/rapidjson/doc/diagram/move3.dot +0 -60
  155. data/ext/rj_schema/rapidjson/doc/diagram/move3.png +0 -0
  156. data/ext/rj_schema/rapidjson/doc/diagram/normalparsing.dot +0 -56
  157. data/ext/rj_schema/rapidjson/doc/diagram/normalparsing.png +0 -0
  158. data/ext/rj_schema/rapidjson/doc/diagram/simpledom.dot +0 -54
  159. data/ext/rj_schema/rapidjson/doc/diagram/simpledom.png +0 -0
  160. data/ext/rj_schema/rapidjson/doc/diagram/tutorial.dot +0 -58
  161. data/ext/rj_schema/rapidjson/doc/diagram/tutorial.png +0 -0
  162. data/ext/rj_schema/rapidjson/doc/diagram/utilityclass.dot +0 -73
  163. data/ext/rj_schema/rapidjson/doc/diagram/utilityclass.png +0 -0
  164. data/ext/rj_schema/rapidjson/doc/dom.md +0 -280
  165. data/ext/rj_schema/rapidjson/doc/dom.zh-cn.md +0 -284
  166. data/ext/rj_schema/rapidjson/doc/encoding.md +0 -146
  167. data/ext/rj_schema/rapidjson/doc/encoding.zh-cn.md +0 -152
  168. data/ext/rj_schema/rapidjson/doc/faq.md +0 -289
  169. data/ext/rj_schema/rapidjson/doc/faq.zh-cn.md +0 -290
  170. data/ext/rj_schema/rapidjson/doc/features.md +0 -104
  171. data/ext/rj_schema/rapidjson/doc/features.zh-cn.md +0 -103
  172. data/ext/rj_schema/rapidjson/doc/internals.md +0 -368
  173. data/ext/rj_schema/rapidjson/doc/internals.zh-cn.md +0 -363
  174. data/ext/rj_schema/rapidjson/doc/logo/rapidjson.png +0 -0
  175. data/ext/rj_schema/rapidjson/doc/logo/rapidjson.svg +0 -119
  176. data/ext/rj_schema/rapidjson/doc/misc/DoxygenLayout.xml +0 -194
  177. data/ext/rj_schema/rapidjson/doc/misc/doxygenextra.css +0 -274
  178. data/ext/rj_schema/rapidjson/doc/misc/footer.html +0 -11
  179. data/ext/rj_schema/rapidjson/doc/misc/header.html +0 -24
  180. data/ext/rj_schema/rapidjson/doc/npm.md +0 -31
  181. data/ext/rj_schema/rapidjson/doc/performance.md +0 -26
  182. data/ext/rj_schema/rapidjson/doc/performance.zh-cn.md +0 -26
  183. data/ext/rj_schema/rapidjson/doc/pointer.md +0 -234
  184. data/ext/rj_schema/rapidjson/doc/pointer.zh-cn.md +0 -234
  185. data/ext/rj_schema/rapidjson/doc/sax.md +0 -509
  186. data/ext/rj_schema/rapidjson/doc/sax.zh-cn.md +0 -487
  187. data/ext/rj_schema/rapidjson/doc/schema.md +0 -505
  188. data/ext/rj_schema/rapidjson/doc/schema.zh-cn.md +0 -237
  189. data/ext/rj_schema/rapidjson/doc/stream.md +0 -429
  190. data/ext/rj_schema/rapidjson/doc/stream.zh-cn.md +0 -429
  191. data/ext/rj_schema/rapidjson/doc/tutorial.md +0 -536
  192. data/ext/rj_schema/rapidjson/doc/tutorial.zh-cn.md +0 -534
  193. data/ext/rj_schema/rapidjson/docker/debian/Dockerfile +0 -8
  194. data/ext/rj_schema/rapidjson/example/CMakeLists.txt +0 -45
  195. data/ext/rj_schema/rapidjson/example/archiver/archiver.cpp +0 -292
  196. data/ext/rj_schema/rapidjson/example/archiver/archiver.h +0 -145
  197. data/ext/rj_schema/rapidjson/example/archiver/archivertest.cpp +0 -287
  198. data/ext/rj_schema/rapidjson/example/capitalize/capitalize.cpp +0 -67
  199. data/ext/rj_schema/rapidjson/example/condense/condense.cpp +0 -32
  200. data/ext/rj_schema/rapidjson/example/filterkey/filterkey.cpp +0 -135
  201. data/ext/rj_schema/rapidjson/example/filterkeydom/filterkeydom.cpp +0 -170
  202. data/ext/rj_schema/rapidjson/example/jsonx/jsonx.cpp +0 -207
  203. data/ext/rj_schema/rapidjson/example/lookaheadparser/lookaheadparser.cpp +0 -350
  204. data/ext/rj_schema/rapidjson/example/messagereader/messagereader.cpp +0 -105
  205. data/ext/rj_schema/rapidjson/example/parsebyparts/parsebyparts.cpp +0 -176
  206. data/ext/rj_schema/rapidjson/example/pretty/pretty.cpp +0 -30
  207. data/ext/rj_schema/rapidjson/example/prettyauto/prettyauto.cpp +0 -56
  208. data/ext/rj_schema/rapidjson/example/schemavalidator/schemavalidator.cpp +0 -78
  209. data/ext/rj_schema/rapidjson/example/serialize/serialize.cpp +0 -173
  210. data/ext/rj_schema/rapidjson/example/simpledom/simpledom.cpp +0 -29
  211. data/ext/rj_schema/rapidjson/example/simplepullreader/simplepullreader.cpp +0 -53
  212. data/ext/rj_schema/rapidjson/example/simplereader/simplereader.cpp +0 -42
  213. data/ext/rj_schema/rapidjson/example/simplewriter/simplewriter.cpp +0 -36
  214. data/ext/rj_schema/rapidjson/example/tutorial/tutorial.cpp +0 -151
  215. data/ext/rj_schema/rapidjson/include/rapidjson/allocators.h +0 -284
  216. data/ext/rj_schema/rapidjson/include/rapidjson/cursorstreamwrapper.h +0 -78
  217. data/ext/rj_schema/rapidjson/include/rapidjson/document.h +0 -2648
  218. data/ext/rj_schema/rapidjson/include/rapidjson/encodedstream.h +0 -299
  219. data/ext/rj_schema/rapidjson/include/rapidjson/encodings.h +0 -716
  220. data/ext/rj_schema/rapidjson/include/rapidjson/error/en.h +0 -74
  221. data/ext/rj_schema/rapidjson/include/rapidjson/error/error.h +0 -161
  222. data/ext/rj_schema/rapidjson/include/rapidjson/filereadstream.h +0 -99
  223. data/ext/rj_schema/rapidjson/include/rapidjson/filewritestream.h +0 -104
  224. data/ext/rj_schema/rapidjson/include/rapidjson/fwd.h +0 -151
  225. data/ext/rj_schema/rapidjson/include/rapidjson/internal/biginteger.h +0 -290
  226. data/ext/rj_schema/rapidjson/include/rapidjson/internal/diyfp.h +0 -271
  227. data/ext/rj_schema/rapidjson/include/rapidjson/internal/dtoa.h +0 -245
  228. data/ext/rj_schema/rapidjson/include/rapidjson/internal/ieee754.h +0 -78
  229. data/ext/rj_schema/rapidjson/include/rapidjson/internal/itoa.h +0 -308
  230. data/ext/rj_schema/rapidjson/include/rapidjson/internal/meta.h +0 -186
  231. data/ext/rj_schema/rapidjson/include/rapidjson/internal/pow10.h +0 -55
  232. data/ext/rj_schema/rapidjson/include/rapidjson/internal/regex.h +0 -732
  233. data/ext/rj_schema/rapidjson/include/rapidjson/internal/stack.h +0 -231
  234. data/ext/rj_schema/rapidjson/include/rapidjson/internal/strfunc.h +0 -69
  235. data/ext/rj_schema/rapidjson/include/rapidjson/internal/strtod.h +0 -290
  236. data/ext/rj_schema/rapidjson/include/rapidjson/internal/swap.h +0 -46
  237. data/ext/rj_schema/rapidjson/include/rapidjson/istreamwrapper.h +0 -113
  238. data/ext/rj_schema/rapidjson/include/rapidjson/memorybuffer.h +0 -70
  239. data/ext/rj_schema/rapidjson/include/rapidjson/memorystream.h +0 -71
  240. data/ext/rj_schema/rapidjson/include/rapidjson/msinttypes/inttypes.h +0 -316
  241. data/ext/rj_schema/rapidjson/include/rapidjson/msinttypes/stdint.h +0 -300
  242. data/ext/rj_schema/rapidjson/include/rapidjson/ostreamwrapper.h +0 -81
  243. data/ext/rj_schema/rapidjson/include/rapidjson/pointer.h +0 -1357
  244. data/ext/rj_schema/rapidjson/include/rapidjson/prettywriter.h +0 -277
  245. data/ext/rj_schema/rapidjson/include/rapidjson/rapidjson.h +0 -630
  246. data/ext/rj_schema/rapidjson/include/rapidjson/reader.h +0 -2230
  247. data/ext/rj_schema/rapidjson/include/rapidjson/schema.h +0 -2494
  248. data/ext/rj_schema/rapidjson/include/rapidjson/stream.h +0 -223
  249. data/ext/rj_schema/rapidjson/include/rapidjson/stringbuffer.h +0 -121
  250. data/ext/rj_schema/rapidjson/include/rapidjson/writer.h +0 -710
  251. data/ext/rj_schema/rapidjson/include_dirs.js +0 -2
  252. data/ext/rj_schema/rapidjson/library.json +0 -15
  253. data/ext/rj_schema/rapidjson/license.txt +0 -57
  254. data/ext/rj_schema/rapidjson/package.json +0 -24
  255. data/ext/rj_schema/rapidjson/rapidjson.autopkg +0 -77
  256. data/ext/rj_schema/rapidjson/readme.md +0 -160
  257. data/ext/rj_schema/rapidjson/readme.zh-cn.md +0 -152
  258. data/ext/rj_schema/rapidjson/test/CMakeLists.txt +0 -20
  259. data/ext/rj_schema/rapidjson/test/perftest/CMakeLists.txt +0 -28
  260. data/ext/rj_schema/rapidjson/test/perftest/misctest.cpp +0 -974
  261. data/ext/rj_schema/rapidjson/test/perftest/perftest.cpp +0 -24
  262. data/ext/rj_schema/rapidjson/test/perftest/perftest.h +0 -185
  263. data/ext/rj_schema/rapidjson/test/perftest/platformtest.cpp +0 -166
  264. data/ext/rj_schema/rapidjson/test/perftest/rapidjsontest.cpp +0 -472
  265. data/ext/rj_schema/rapidjson/test/perftest/schematest.cpp +0 -223
  266. data/ext/rj_schema/rapidjson/test/unittest/CMakeLists.txt +0 -92
  267. data/ext/rj_schema/rapidjson/test/unittest/allocatorstest.cpp +0 -100
  268. data/ext/rj_schema/rapidjson/test/unittest/bigintegertest.cpp +0 -138
  269. data/ext/rj_schema/rapidjson/test/unittest/cursorstreamwrappertest.cpp +0 -115
  270. data/ext/rj_schema/rapidjson/test/unittest/documenttest.cpp +0 -672
  271. data/ext/rj_schema/rapidjson/test/unittest/dtoatest.cpp +0 -98
  272. data/ext/rj_schema/rapidjson/test/unittest/encodedstreamtest.cpp +0 -313
  273. data/ext/rj_schema/rapidjson/test/unittest/encodingstest.cpp +0 -451
  274. data/ext/rj_schema/rapidjson/test/unittest/filestreamtest.cpp +0 -112
  275. data/ext/rj_schema/rapidjson/test/unittest/fwdtest.cpp +0 -230
  276. data/ext/rj_schema/rapidjson/test/unittest/istreamwrappertest.cpp +0 -181
  277. data/ext/rj_schema/rapidjson/test/unittest/itoatest.cpp +0 -160
  278. data/ext/rj_schema/rapidjson/test/unittest/jsoncheckertest.cpp +0 -143
  279. data/ext/rj_schema/rapidjson/test/unittest/namespacetest.cpp +0 -70
  280. data/ext/rj_schema/rapidjson/test/unittest/ostreamwrappertest.cpp +0 -92
  281. data/ext/rj_schema/rapidjson/test/unittest/pointertest.cpp +0 -1529
  282. data/ext/rj_schema/rapidjson/test/unittest/prettywritertest.cpp +0 -373
  283. data/ext/rj_schema/rapidjson/test/unittest/readertest.cpp +0 -2190
  284. data/ext/rj_schema/rapidjson/test/unittest/regextest.cpp +0 -638
  285. data/ext/rj_schema/rapidjson/test/unittest/schematest.cpp +0 -2072
  286. data/ext/rj_schema/rapidjson/test/unittest/simdtest.cpp +0 -219
  287. data/ext/rj_schema/rapidjson/test/unittest/strfunctest.cpp +0 -30
  288. data/ext/rj_schema/rapidjson/test/unittest/stringbuffertest.cpp +0 -192
  289. data/ext/rj_schema/rapidjson/test/unittest/strtodtest.cpp +0 -132
  290. data/ext/rj_schema/rapidjson/test/unittest/unittest.cpp +0 -51
  291. data/ext/rj_schema/rapidjson/test/unittest/unittest.h +0 -140
  292. data/ext/rj_schema/rapidjson/test/unittest/valuetest.cpp +0 -1851
  293. data/ext/rj_schema/rapidjson/test/unittest/writertest.cpp +0 -598
  294. data/ext/rj_schema/rapidjson/test/valgrind.supp +0 -17
  295. data/ext/rj_schema/rapidjson/thirdparty/gtest/CMakeLists.txt +0 -16
  296. data/ext/rj_schema/rapidjson/thirdparty/gtest/README.md +0 -141
  297. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/CHANGES +0 -126
  298. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/CMakeLists.txt +0 -202
  299. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/CONTRIBUTORS +0 -40
  300. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/LICENSE +0 -28
  301. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/Makefile.am +0 -224
  302. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/README.md +0 -333
  303. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/configure.ac +0 -146
  304. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/CheatSheet.md +0 -562
  305. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/CookBook.md +0 -3675
  306. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/DesignDoc.md +0 -280
  307. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/DevGuide.md +0 -132
  308. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/Documentation.md +0 -12
  309. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/ForDummies.md +0 -439
  310. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/FrequentlyAskedQuestions.md +0 -628
  311. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/KnownIssues.md +0 -19
  312. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/CheatSheet.md +0 -525
  313. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/CookBook.md +0 -3250
  314. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/Documentation.md +0 -11
  315. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/ForDummies.md +0 -439
  316. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/FrequentlyAskedQuestions.md +0 -624
  317. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/CheatSheet.md +0 -534
  318. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/CookBook.md +0 -3342
  319. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/Documentation.md +0 -12
  320. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/ForDummies.md +0 -439
  321. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/FrequentlyAskedQuestions.md +0 -628
  322. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/CheatSheet.md +0 -556
  323. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/CookBook.md +0 -3432
  324. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/Documentation.md +0 -12
  325. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/ForDummies.md +0 -439
  326. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/FrequentlyAskedQuestions.md +0 -628
  327. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-actions.h +0 -1205
  328. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-cardinalities.h +0 -147
  329. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-actions.h +0 -2377
  330. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-actions.h.pump +0 -794
  331. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-function-mockers.h +0 -1095
  332. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-function-mockers.h.pump +0 -291
  333. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-matchers.h +0 -2179
  334. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-matchers.h.pump +0 -672
  335. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-nice-strict.h +0 -397
  336. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-nice-strict.h.pump +0 -161
  337. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-matchers.h +0 -4399
  338. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-more-actions.h +0 -246
  339. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-more-matchers.h +0 -58
  340. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-spec-builders.h +0 -1847
  341. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock.h +0 -94
  342. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-generated-actions.h +0 -8
  343. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-generated-actions.h.pump +0 -10
  344. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-matchers.h +0 -39
  345. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-port.h +0 -46
  346. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-generated-internal-utils.h +0 -279
  347. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-generated-internal-utils.h.pump +0 -136
  348. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-internal-utils.h +0 -511
  349. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-port.h +0 -91
  350. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/make/Makefile +0 -101
  351. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock.sln +0 -32
  352. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock.vcproj +0 -191
  353. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock_config.vsprops +0 -15
  354. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock_main.vcproj +0 -187
  355. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock_test.vcproj +0 -201
  356. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock.sln +0 -32
  357. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock.vcxproj +0 -82
  358. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock_config.props +0 -19
  359. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock_main.vcxproj +0 -88
  360. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock_test.vcxproj +0 -101
  361. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock.sln +0 -32
  362. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock.vcxproj +0 -84
  363. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock_config.props +0 -19
  364. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock_main.vcxproj +0 -90
  365. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock_test.vcxproj +0 -103
  366. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/fuse_gmock_files.py +0 -240
  367. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/generator/LICENSE +0 -203
  368. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/generator/README +0 -35
  369. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/generator/README.cppclean +0 -115
  370. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/__init__.py +0 -0
  371. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/ast.py +0 -1733
  372. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/gmock_class.py +0 -227
  373. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/gmock_class_test.py +0 -448
  374. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/keywords.py +0 -59
  375. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/tokenize.py +0 -287
  376. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/utils.py +0 -41
  377. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/generator/gmock_gen.py +0 -31
  378. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/gmock-config.in +0 -303
  379. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/gmock_doctor.py +0 -640
  380. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/upload.py +0 -1387
  381. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/upload_gmock.py +0 -78
  382. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/src/gmock-all.cc +0 -47
  383. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/src/gmock-cardinalities.cc +0 -156
  384. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/src/gmock-internal-utils.cc +0 -174
  385. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/src/gmock-matchers.cc +0 -498
  386. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/src/gmock-spec-builders.cc +0 -823
  387. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/src/gmock.cc +0 -183
  388. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/src/gmock_main.cc +0 -54
  389. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-actions_test.cc +0 -1411
  390. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-cardinalities_test.cc +0 -428
  391. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-actions_test.cc +0 -1228
  392. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-function-mockers_test.cc +0 -622
  393. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-internal-utils_test.cc +0 -127
  394. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-matchers_test.cc +0 -1286
  395. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-internal-utils_test.cc +0 -699
  396. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-matchers_test.cc +0 -5648
  397. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-more-actions_test.cc +0 -708
  398. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-nice-strict_test.cc +0 -424
  399. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-port_test.cc +0 -43
  400. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-spec-builders_test.cc +0 -2644
  401. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_all_test.cc +0 -51
  402. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_ex_test.cc +0 -81
  403. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_leak_test.py +0 -108
  404. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_leak_test_.cc +0 -100
  405. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_link2_test.cc +0 -40
  406. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_link_test.cc +0 -40
  407. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_link_test.h +0 -669
  408. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_output_test.py +0 -180
  409. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_output_test_.cc +0 -291
  410. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_output_test_golden.txt +0 -310
  411. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_stress_test.cc +0 -322
  412. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_test.cc +0 -220
  413. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_test_utils.py +0 -112
  414. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/CHANGES +0 -157
  415. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/CMakeLists.txt +0 -286
  416. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/CONTRIBUTORS +0 -37
  417. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/LICENSE +0 -28
  418. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/Makefile.am +0 -310
  419. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/README.md +0 -280
  420. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/cmake/internal_utils.cmake +0 -242
  421. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/codegear/gtest.cbproj +0 -138
  422. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/codegear/gtest.groupproj +0 -54
  423. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/codegear/gtest_all.cc +0 -38
  424. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/codegear/gtest_link.cc +0 -40
  425. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/codegear/gtest_main.cbproj +0 -82
  426. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/codegear/gtest_unittest.cbproj +0 -88
  427. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/configure.ac +0 -68
  428. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/AdvancedGuide.md +0 -2182
  429. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/DevGuide.md +0 -126
  430. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/Documentation.md +0 -14
  431. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/FAQ.md +0 -1087
  432. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/Primer.md +0 -502
  433. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/PumpManual.md +0 -177
  434. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/Samples.md +0 -14
  435. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_5_AdvancedGuide.md +0 -2096
  436. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_5_Documentation.md +0 -12
  437. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_5_FAQ.md +0 -886
  438. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_5_Primer.md +0 -497
  439. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_5_PumpManual.md +0 -177
  440. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_5_XcodeGuide.md +0 -93
  441. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_6_AdvancedGuide.md +0 -2178
  442. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_6_Documentation.md +0 -14
  443. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_6_FAQ.md +0 -1038
  444. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_6_Primer.md +0 -501
  445. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_6_PumpManual.md +0 -177
  446. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_6_Samples.md +0 -14
  447. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_6_XcodeGuide.md +0 -93
  448. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_7_AdvancedGuide.md +0 -2181
  449. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_7_Documentation.md +0 -14
  450. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_7_FAQ.md +0 -1082
  451. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_7_Primer.md +0 -501
  452. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_7_PumpManual.md +0 -177
  453. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_7_Samples.md +0 -14
  454. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_7_XcodeGuide.md +0 -93
  455. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/XcodeGuide.md +0 -93
  456. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-death-test.h +0 -294
  457. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-message.h +0 -250
  458. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-param-test.h +0 -1444
  459. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-param-test.h.pump +0 -510
  460. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-printers.h +0 -993
  461. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-spi.h +0 -232
  462. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-test-part.h +0 -179
  463. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-typed-test.h +0 -263
  464. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest.h +0 -2236
  465. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest_pred_impl.h +0 -358
  466. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest_prod.h +0 -58
  467. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/custom/gtest-port.h +0 -69
  468. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/custom/gtest-printers.h +0 -42
  469. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/custom/gtest.h +0 -41
  470. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-death-test-internal.h +0 -319
  471. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-filepath.h +0 -206
  472. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-internal.h +0 -1238
  473. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-linked_ptr.h +0 -243
  474. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-param-util-generated.h +0 -5146
  475. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-param-util-generated.h.pump +0 -286
  476. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-param-util.h +0 -731
  477. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-port-arch.h +0 -93
  478. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-port.h +0 -2554
  479. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-string.h +0 -167
  480. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-tuple.h +0 -1020
  481. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-tuple.h.pump +0 -347
  482. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-type-util.h +0 -3331
  483. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-type-util.h.pump +0 -297
  484. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/m4/acx_pthread.m4 +0 -363
  485. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/m4/gtest.m4 +0 -74
  486. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/make/Makefile +0 -82
  487. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest-md.sln +0 -45
  488. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest-md.vcproj +0 -126
  489. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest.sln +0 -45
  490. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest.vcproj +0 -126
  491. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest_main-md.vcproj +0 -129
  492. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest_main.vcproj +0 -129
  493. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest_prod_test-md.vcproj +0 -164
  494. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest_prod_test.vcproj +0 -164
  495. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest_unittest-md.vcproj +0 -147
  496. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest_unittest.vcproj +0 -147
  497. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/prime_tables.h +0 -123
  498. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample1.cc +0 -68
  499. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample1.h +0 -43
  500. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample10_unittest.cc +0 -144
  501. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample1_unittest.cc +0 -153
  502. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample2.cc +0 -56
  503. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample2.h +0 -85
  504. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample2_unittest.cc +0 -109
  505. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample3-inl.h +0 -172
  506. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample3_unittest.cc +0 -151
  507. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample4.cc +0 -46
  508. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample4.h +0 -53
  509. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample4_unittest.cc +0 -45
  510. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample5_unittest.cc +0 -199
  511. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample6_unittest.cc +0 -224
  512. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample7_unittest.cc +0 -130
  513. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample8_unittest.cc +0 -173
  514. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample9_unittest.cc +0 -160
  515. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/scripts/common.py +0 -83
  516. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/scripts/fuse_gtest_files.py +0 -253
  517. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/scripts/gen_gtest_pred_impl.py +0 -730
  518. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/scripts/gtest-config.in +0 -274
  519. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/scripts/pump.py +0 -855
  520. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/scripts/release_docs.py +0 -158
  521. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/scripts/test/Makefile +0 -59
  522. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/scripts/upload.py +0 -1387
  523. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/scripts/upload_gtest.py +0 -78
  524. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-all.cc +0 -48
  525. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-death-test.cc +0 -1342
  526. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-filepath.cc +0 -387
  527. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-internal-inl.h +0 -1183
  528. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-port.cc +0 -1259
  529. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-printers.cc +0 -373
  530. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-test-part.cc +0 -110
  531. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-typed-test.cc +0 -118
  532. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest.cc +0 -5388
  533. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest_main.cc +0 -38
  534. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-death-test_ex_test.cc +0 -93
  535. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-death-test_test.cc +0 -1427
  536. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-filepath_test.cc +0 -662
  537. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-linked_ptr_test.cc +0 -154
  538. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-listener_test.cc +0 -311
  539. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-message_test.cc +0 -159
  540. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-options_test.cc +0 -215
  541. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-param-test2_test.cc +0 -65
  542. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-param-test_test.cc +0 -1055
  543. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-param-test_test.h +0 -57
  544. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-port_test.cc +0 -1304
  545. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-printers_test.cc +0 -1635
  546. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-test-part_test.cc +0 -208
  547. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-tuple_test.cc +0 -320
  548. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-typed-test2_test.cc +0 -45
  549. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-typed-test_test.cc +0 -380
  550. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-typed-test_test.h +0 -66
  551. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-unittest-api_test.cc +0 -341
  552. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_all_test.cc +0 -47
  553. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_break_on_failure_unittest.py +0 -212
  554. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_break_on_failure_unittest_.cc +0 -88
  555. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_catch_exceptions_test.py +0 -237
  556. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_catch_exceptions_test_.cc +0 -311
  557. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_color_test.py +0 -130
  558. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_color_test_.cc +0 -71
  559. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_env_var_test.py +0 -117
  560. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_env_var_test_.cc +0 -126
  561. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_environment_test.cc +0 -192
  562. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_filter_unittest.py +0 -636
  563. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_filter_unittest_.cc +0 -140
  564. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_help_test.py +0 -172
  565. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_help_test_.cc +0 -46
  566. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_list_tests_unittest.py +0 -207
  567. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_list_tests_unittest_.cc +0 -157
  568. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_main_unittest.cc +0 -45
  569. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_no_test_unittest.cc +0 -56
  570. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_output_test.py +0 -340
  571. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_output_test_.cc +0 -1062
  572. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_output_test_golden_lin.txt +0 -743
  573. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_pred_impl_unittest.cc +0 -2427
  574. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_premature_exit_test.cc +0 -127
  575. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_prod_test.cc +0 -57
  576. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_repeat_test.cc +0 -253
  577. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_shuffle_test.py +0 -325
  578. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_shuffle_test_.cc +0 -103
  579. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_sole_header_test.cc +0 -57
  580. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_stress_test.cc +0 -256
  581. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_test_utils.py +0 -320
  582. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_throw_on_failure_ex_test.cc +0 -92
  583. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_throw_on_failure_test.py +0 -171
  584. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_throw_on_failure_test_.cc +0 -72
  585. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_uninitialized_test.py +0 -70
  586. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_uninitialized_test_.cc +0 -43
  587. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_unittest.cc +0 -7706
  588. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_outfile1_test_.cc +0 -49
  589. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_outfile2_test_.cc +0 -49
  590. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_outfiles_test.py +0 -132
  591. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_output_unittest.py +0 -308
  592. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_output_unittest_.cc +0 -181
  593. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_test_utils.py +0 -194
  594. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/production.cc +0 -36
  595. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/production.h +0 -55
  596. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Config/DebugProject.xcconfig +0 -30
  597. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Config/FrameworkTarget.xcconfig +0 -17
  598. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Config/General.xcconfig +0 -41
  599. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Config/ReleaseProject.xcconfig +0 -32
  600. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Config/StaticLibraryTarget.xcconfig +0 -18
  601. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Config/TestTarget.xcconfig +0 -8
  602. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Resources/Info.plist +0 -30
  603. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/Info.plist +0 -28
  604. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/WidgetFramework.xcodeproj/project.pbxproj +0 -457
  605. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/runtests.sh +0 -62
  606. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/widget.cc +0 -63
  607. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/widget.h +0 -59
  608. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/widget_test.cc +0 -68
  609. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Scripts/runtests.sh +0 -65
  610. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Scripts/versiongenerate.py +0 -100
  611. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/gtest.xcodeproj/project.pbxproj +0 -1135
  612. data/ext/rj_schema/rapidjson/thirdparty/gtest/travis.sh +0 -15
  613. data/ext/rj_schema/rapidjson/travis-doxygen.sh +0 -121
@@ -1,1095 +0,0 @@
1
- // This file was GENERATED by command:
2
- // pump.py gmock-generated-function-mockers.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 function mockers of various arities.
39
-
40
- #ifndef GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_FUNCTION_MOCKERS_H_
41
- #define GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_FUNCTION_MOCKERS_H_
42
-
43
- #include "gmock/gmock-spec-builders.h"
44
- #include "gmock/internal/gmock-internal-utils.h"
45
-
46
- #if GTEST_HAS_STD_FUNCTION_
47
- # include <functional>
48
- #endif
49
-
50
- namespace testing {
51
- namespace internal {
52
-
53
- template <typename F>
54
- class FunctionMockerBase;
55
-
56
- // Note: class FunctionMocker really belongs to the ::testing
57
- // namespace. However if we define it in ::testing, MSVC will
58
- // complain when classes in ::testing::internal declare it as a
59
- // friend class template. To workaround this compiler bug, we define
60
- // FunctionMocker in ::testing::internal and import it into ::testing.
61
- template <typename F>
62
- class FunctionMocker;
63
-
64
- template <typename R>
65
- class FunctionMocker<R()> : public
66
- internal::FunctionMockerBase<R()> {
67
- public:
68
- typedef R F();
69
- typedef typename internal::Function<F>::ArgumentTuple ArgumentTuple;
70
-
71
- MockSpec<F>& With() {
72
- return this->current_spec();
73
- }
74
-
75
- R Invoke() {
76
- // Even though gcc and MSVC don't enforce it, 'this->' is required
77
- // by the C++ standard [14.6.4] here, as the base class type is
78
- // dependent on the template argument (and thus shouldn't be
79
- // looked into when resolving InvokeWith).
80
- return this->InvokeWith(ArgumentTuple());
81
- }
82
- };
83
-
84
- template <typename R, typename A1>
85
- class FunctionMocker<R(A1)> : public
86
- internal::FunctionMockerBase<R(A1)> {
87
- public:
88
- typedef R F(A1);
89
- typedef typename internal::Function<F>::ArgumentTuple ArgumentTuple;
90
-
91
- MockSpec<F>& With(const Matcher<A1>& m1) {
92
- this->current_spec().SetMatchers(::testing::make_tuple(m1));
93
- return this->current_spec();
94
- }
95
-
96
- R Invoke(A1 a1) {
97
- // Even though gcc and MSVC don't enforce it, 'this->' is required
98
- // by the C++ standard [14.6.4] here, as the base class type is
99
- // dependent on the template argument (and thus shouldn't be
100
- // looked into when resolving InvokeWith).
101
- return this->InvokeWith(ArgumentTuple(a1));
102
- }
103
- };
104
-
105
- template <typename R, typename A1, typename A2>
106
- class FunctionMocker<R(A1, A2)> : public
107
- internal::FunctionMockerBase<R(A1, A2)> {
108
- public:
109
- typedef R F(A1, A2);
110
- typedef typename internal::Function<F>::ArgumentTuple ArgumentTuple;
111
-
112
- MockSpec<F>& With(const Matcher<A1>& m1, const Matcher<A2>& m2) {
113
- this->current_spec().SetMatchers(::testing::make_tuple(m1, m2));
114
- return this->current_spec();
115
- }
116
-
117
- R Invoke(A1 a1, A2 a2) {
118
- // Even though gcc and MSVC don't enforce it, 'this->' is required
119
- // by the C++ standard [14.6.4] here, as the base class type is
120
- // dependent on the template argument (and thus shouldn't be
121
- // looked into when resolving InvokeWith).
122
- return this->InvokeWith(ArgumentTuple(a1, a2));
123
- }
124
- };
125
-
126
- template <typename R, typename A1, typename A2, typename A3>
127
- class FunctionMocker<R(A1, A2, A3)> : public
128
- internal::FunctionMockerBase<R(A1, A2, A3)> {
129
- public:
130
- typedef R F(A1, A2, A3);
131
- typedef typename internal::Function<F>::ArgumentTuple ArgumentTuple;
132
-
133
- MockSpec<F>& With(const Matcher<A1>& m1, const Matcher<A2>& m2,
134
- const Matcher<A3>& m3) {
135
- this->current_spec().SetMatchers(::testing::make_tuple(m1, m2, m3));
136
- return this->current_spec();
137
- }
138
-
139
- R Invoke(A1 a1, A2 a2, A3 a3) {
140
- // Even though gcc and MSVC don't enforce it, 'this->' is required
141
- // by the C++ standard [14.6.4] here, as the base class type is
142
- // dependent on the template argument (and thus shouldn't be
143
- // looked into when resolving InvokeWith).
144
- return this->InvokeWith(ArgumentTuple(a1, a2, a3));
145
- }
146
- };
147
-
148
- template <typename R, typename A1, typename A2, typename A3, typename A4>
149
- class FunctionMocker<R(A1, A2, A3, A4)> : public
150
- internal::FunctionMockerBase<R(A1, A2, A3, A4)> {
151
- public:
152
- typedef R F(A1, A2, A3, A4);
153
- typedef typename internal::Function<F>::ArgumentTuple ArgumentTuple;
154
-
155
- MockSpec<F>& With(const Matcher<A1>& m1, const Matcher<A2>& m2,
156
- const Matcher<A3>& m3, const Matcher<A4>& m4) {
157
- this->current_spec().SetMatchers(::testing::make_tuple(m1, m2, m3, m4));
158
- return this->current_spec();
159
- }
160
-
161
- R Invoke(A1 a1, A2 a2, A3 a3, A4 a4) {
162
- // Even though gcc and MSVC don't enforce it, 'this->' is required
163
- // by the C++ standard [14.6.4] here, as the base class type is
164
- // dependent on the template argument (and thus shouldn't be
165
- // looked into when resolving InvokeWith).
166
- return this->InvokeWith(ArgumentTuple(a1, a2, a3, a4));
167
- }
168
- };
169
-
170
- template <typename R, typename A1, typename A2, typename A3, typename A4,
171
- typename A5>
172
- class FunctionMocker<R(A1, A2, A3, A4, A5)> : public
173
- internal::FunctionMockerBase<R(A1, A2, A3, A4, A5)> {
174
- public:
175
- typedef R F(A1, A2, A3, A4, A5);
176
- typedef typename internal::Function<F>::ArgumentTuple ArgumentTuple;
177
-
178
- MockSpec<F>& With(const Matcher<A1>& m1, const Matcher<A2>& m2,
179
- const Matcher<A3>& m3, const Matcher<A4>& m4, const Matcher<A5>& m5) {
180
- this->current_spec().SetMatchers(::testing::make_tuple(m1, m2, m3, m4, m5));
181
- return this->current_spec();
182
- }
183
-
184
- R Invoke(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5) {
185
- // Even though gcc and MSVC don't enforce it, 'this->' is required
186
- // by the C++ standard [14.6.4] here, as the base class type is
187
- // dependent on the template argument (and thus shouldn't be
188
- // looked into when resolving InvokeWith).
189
- return this->InvokeWith(ArgumentTuple(a1, a2, a3, a4, a5));
190
- }
191
- };
192
-
193
- template <typename R, typename A1, typename A2, typename A3, typename A4,
194
- typename A5, typename A6>
195
- class FunctionMocker<R(A1, A2, A3, A4, A5, A6)> : public
196
- internal::FunctionMockerBase<R(A1, A2, A3, A4, A5, A6)> {
197
- public:
198
- typedef R F(A1, A2, A3, A4, A5, A6);
199
- typedef typename internal::Function<F>::ArgumentTuple ArgumentTuple;
200
-
201
- MockSpec<F>& With(const Matcher<A1>& m1, const Matcher<A2>& m2,
202
- const Matcher<A3>& m3, const Matcher<A4>& m4, const Matcher<A5>& m5,
203
- const Matcher<A6>& m6) {
204
- this->current_spec().SetMatchers(::testing::make_tuple(m1, m2, m3, m4, m5,
205
- m6));
206
- return this->current_spec();
207
- }
208
-
209
- R Invoke(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6) {
210
- // Even though gcc and MSVC don't enforce it, 'this->' is required
211
- // by the C++ standard [14.6.4] here, as the base class type is
212
- // dependent on the template argument (and thus shouldn't be
213
- // looked into when resolving InvokeWith).
214
- return this->InvokeWith(ArgumentTuple(a1, a2, a3, a4, a5, a6));
215
- }
216
- };
217
-
218
- template <typename R, typename A1, typename A2, typename A3, typename A4,
219
- typename A5, typename A6, typename A7>
220
- class FunctionMocker<R(A1, A2, A3, A4, A5, A6, A7)> : public
221
- internal::FunctionMockerBase<R(A1, A2, A3, A4, A5, A6, A7)> {
222
- public:
223
- typedef R F(A1, A2, A3, A4, A5, A6, A7);
224
- typedef typename internal::Function<F>::ArgumentTuple ArgumentTuple;
225
-
226
- MockSpec<F>& With(const Matcher<A1>& m1, const Matcher<A2>& m2,
227
- const Matcher<A3>& m3, const Matcher<A4>& m4, const Matcher<A5>& m5,
228
- const Matcher<A6>& m6, const Matcher<A7>& m7) {
229
- this->current_spec().SetMatchers(::testing::make_tuple(m1, m2, m3, m4, m5,
230
- m6, m7));
231
- return this->current_spec();
232
- }
233
-
234
- R Invoke(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7) {
235
- // Even though gcc and MSVC don't enforce it, 'this->' is required
236
- // by the C++ standard [14.6.4] here, as the base class type is
237
- // dependent on the template argument (and thus shouldn't be
238
- // looked into when resolving InvokeWith).
239
- return this->InvokeWith(ArgumentTuple(a1, a2, a3, a4, a5, a6, a7));
240
- }
241
- };
242
-
243
- template <typename R, typename A1, typename A2, typename A3, typename A4,
244
- typename A5, typename A6, typename A7, typename A8>
245
- class FunctionMocker<R(A1, A2, A3, A4, A5, A6, A7, A8)> : public
246
- internal::FunctionMockerBase<R(A1, A2, A3, A4, A5, A6, A7, A8)> {
247
- public:
248
- typedef R F(A1, A2, A3, A4, A5, A6, A7, A8);
249
- typedef typename internal::Function<F>::ArgumentTuple ArgumentTuple;
250
-
251
- MockSpec<F>& With(const Matcher<A1>& m1, const Matcher<A2>& m2,
252
- const Matcher<A3>& m3, const Matcher<A4>& m4, const Matcher<A5>& m5,
253
- const Matcher<A6>& m6, const Matcher<A7>& m7, const Matcher<A8>& m8) {
254
- this->current_spec().SetMatchers(::testing::make_tuple(m1, m2, m3, m4, m5,
255
- m6, m7, m8));
256
- return this->current_spec();
257
- }
258
-
259
- R Invoke(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8) {
260
- // Even though gcc and MSVC don't enforce it, 'this->' is required
261
- // by the C++ standard [14.6.4] here, as the base class type is
262
- // dependent on the template argument (and thus shouldn't be
263
- // looked into when resolving InvokeWith).
264
- return this->InvokeWith(ArgumentTuple(a1, a2, a3, a4, a5, a6, a7, a8));
265
- }
266
- };
267
-
268
- template <typename R, typename A1, typename A2, typename A3, typename A4,
269
- typename A5, typename A6, typename A7, typename A8, typename A9>
270
- class FunctionMocker<R(A1, A2, A3, A4, A5, A6, A7, A8, A9)> : public
271
- internal::FunctionMockerBase<R(A1, A2, A3, A4, A5, A6, A7, A8, A9)> {
272
- public:
273
- typedef R F(A1, A2, A3, A4, A5, A6, A7, A8, A9);
274
- typedef typename internal::Function<F>::ArgumentTuple ArgumentTuple;
275
-
276
- MockSpec<F>& With(const Matcher<A1>& m1, const Matcher<A2>& m2,
277
- const Matcher<A3>& m3, const Matcher<A4>& m4, const Matcher<A5>& m5,
278
- const Matcher<A6>& m6, const Matcher<A7>& m7, const Matcher<A8>& m8,
279
- const Matcher<A9>& m9) {
280
- this->current_spec().SetMatchers(::testing::make_tuple(m1, m2, m3, m4, m5,
281
- m6, m7, m8, m9));
282
- return this->current_spec();
283
- }
284
-
285
- R Invoke(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9) {
286
- // Even though gcc and MSVC don't enforce it, 'this->' is required
287
- // by the C++ standard [14.6.4] here, as the base class type is
288
- // dependent on the template argument (and thus shouldn't be
289
- // looked into when resolving InvokeWith).
290
- return this->InvokeWith(ArgumentTuple(a1, a2, a3, a4, a5, a6, a7, a8, a9));
291
- }
292
- };
293
-
294
- template <typename R, typename A1, typename A2, typename A3, typename A4,
295
- typename A5, typename A6, typename A7, typename A8, typename A9,
296
- typename A10>
297
- class FunctionMocker<R(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)> : public
298
- internal::FunctionMockerBase<R(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)> {
299
- public:
300
- typedef R F(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10);
301
- typedef typename internal::Function<F>::ArgumentTuple ArgumentTuple;
302
-
303
- MockSpec<F>& With(const Matcher<A1>& m1, const Matcher<A2>& m2,
304
- const Matcher<A3>& m3, const Matcher<A4>& m4, const Matcher<A5>& m5,
305
- const Matcher<A6>& m6, const Matcher<A7>& m7, const Matcher<A8>& m8,
306
- const Matcher<A9>& m9, const Matcher<A10>& m10) {
307
- this->current_spec().SetMatchers(::testing::make_tuple(m1, m2, m3, m4, m5,
308
- m6, m7, m8, m9, m10));
309
- return this->current_spec();
310
- }
311
-
312
- R Invoke(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9,
313
- A10 a10) {
314
- // Even though gcc and MSVC don't enforce it, 'this->' is required
315
- // by the C++ standard [14.6.4] here, as the base class type is
316
- // dependent on the template argument (and thus shouldn't be
317
- // looked into when resolving InvokeWith).
318
- return this->InvokeWith(ArgumentTuple(a1, a2, a3, a4, a5, a6, a7, a8, a9,
319
- a10));
320
- }
321
- };
322
-
323
- } // namespace internal
324
-
325
- // The style guide prohibits "using" statements in a namespace scope
326
- // inside a header file. However, the FunctionMocker class template
327
- // is meant to be defined in the ::testing namespace. The following
328
- // line is just a trick for working around a bug in MSVC 8.0, which
329
- // cannot handle it if we define FunctionMocker in ::testing.
330
- using internal::FunctionMocker;
331
-
332
- // GMOCK_RESULT_(tn, F) expands to the result type of function type F.
333
- // We define this as a variadic macro in case F contains unprotected
334
- // commas (the same reason that we use variadic macros in other places
335
- // in this file).
336
- // INTERNAL IMPLEMENTATION - DON'T USE IN USER CODE!!!
337
- #define GMOCK_RESULT_(tn, ...) \
338
- tn ::testing::internal::Function<__VA_ARGS__>::Result
339
-
340
- // The type of argument N of the given function type.
341
- // INTERNAL IMPLEMENTATION - DON'T USE IN USER CODE!!!
342
- #define GMOCK_ARG_(tn, N, ...) \
343
- tn ::testing::internal::Function<__VA_ARGS__>::Argument##N
344
-
345
- // The matcher type for argument N of the given function type.
346
- // INTERNAL IMPLEMENTATION - DON'T USE IN USER CODE!!!
347
- #define GMOCK_MATCHER_(tn, N, ...) \
348
- const ::testing::Matcher<GMOCK_ARG_(tn, N, __VA_ARGS__)>&
349
-
350
- // The variable for mocking the given method.
351
- // INTERNAL IMPLEMENTATION - DON'T USE IN USER CODE!!!
352
- #define GMOCK_MOCKER_(arity, constness, Method) \
353
- GTEST_CONCAT_TOKEN_(gmock##constness##arity##_##Method##_, __LINE__)
354
-
355
- // INTERNAL IMPLEMENTATION - DON'T USE IN USER CODE!!!
356
- #define GMOCK_METHOD0_(tn, constness, ct, Method, ...) \
357
- GMOCK_RESULT_(tn, __VA_ARGS__) ct Method( \
358
- ) constness { \
359
- GTEST_COMPILE_ASSERT_((::testing::tuple_size< \
360
- tn ::testing::internal::Function<__VA_ARGS__>::ArgumentTuple>::value \
361
- == 0), \
362
- this_method_does_not_take_0_arguments); \
363
- GMOCK_MOCKER_(0, constness, Method).SetOwnerAndName(this, #Method); \
364
- return GMOCK_MOCKER_(0, constness, Method).Invoke(); \
365
- } \
366
- ::testing::MockSpec<__VA_ARGS__>& \
367
- gmock_##Method() constness { \
368
- GMOCK_MOCKER_(0, constness, Method).RegisterOwner(this); \
369
- return GMOCK_MOCKER_(0, constness, Method).With(); \
370
- } \
371
- mutable ::testing::FunctionMocker<__VA_ARGS__> GMOCK_MOCKER_(0, constness, \
372
- Method)
373
-
374
- // INTERNAL IMPLEMENTATION - DON'T USE IN USER CODE!!!
375
- #define GMOCK_METHOD1_(tn, constness, ct, Method, ...) \
376
- GMOCK_RESULT_(tn, __VA_ARGS__) ct Method( \
377
- GMOCK_ARG_(tn, 1, __VA_ARGS__) gmock_a1) constness { \
378
- GTEST_COMPILE_ASSERT_((::testing::tuple_size< \
379
- tn ::testing::internal::Function<__VA_ARGS__>::ArgumentTuple>::value \
380
- == 1), \
381
- this_method_does_not_take_1_argument); \
382
- GMOCK_MOCKER_(1, constness, Method).SetOwnerAndName(this, #Method); \
383
- return GMOCK_MOCKER_(1, constness, Method).Invoke(gmock_a1); \
384
- } \
385
- ::testing::MockSpec<__VA_ARGS__>& \
386
- gmock_##Method(GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1) constness { \
387
- GMOCK_MOCKER_(1, constness, Method).RegisterOwner(this); \
388
- return GMOCK_MOCKER_(1, constness, Method).With(gmock_a1); \
389
- } \
390
- mutable ::testing::FunctionMocker<__VA_ARGS__> GMOCK_MOCKER_(1, constness, \
391
- Method)
392
-
393
- // INTERNAL IMPLEMENTATION - DON'T USE IN USER CODE!!!
394
- #define GMOCK_METHOD2_(tn, constness, ct, Method, ...) \
395
- GMOCK_RESULT_(tn, __VA_ARGS__) ct Method( \
396
- GMOCK_ARG_(tn, 1, __VA_ARGS__) gmock_a1, \
397
- GMOCK_ARG_(tn, 2, __VA_ARGS__) gmock_a2) constness { \
398
- GTEST_COMPILE_ASSERT_((::testing::tuple_size< \
399
- tn ::testing::internal::Function<__VA_ARGS__>::ArgumentTuple>::value \
400
- == 2), \
401
- this_method_does_not_take_2_arguments); \
402
- GMOCK_MOCKER_(2, constness, Method).SetOwnerAndName(this, #Method); \
403
- return GMOCK_MOCKER_(2, constness, Method).Invoke(gmock_a1, gmock_a2); \
404
- } \
405
- ::testing::MockSpec<__VA_ARGS__>& \
406
- gmock_##Method(GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1, \
407
- GMOCK_MATCHER_(tn, 2, __VA_ARGS__) gmock_a2) constness { \
408
- GMOCK_MOCKER_(2, constness, Method).RegisterOwner(this); \
409
- return GMOCK_MOCKER_(2, constness, Method).With(gmock_a1, gmock_a2); \
410
- } \
411
- mutable ::testing::FunctionMocker<__VA_ARGS__> GMOCK_MOCKER_(2, constness, \
412
- Method)
413
-
414
- // INTERNAL IMPLEMENTATION - DON'T USE IN USER CODE!!!
415
- #define GMOCK_METHOD3_(tn, constness, ct, Method, ...) \
416
- GMOCK_RESULT_(tn, __VA_ARGS__) ct Method( \
417
- GMOCK_ARG_(tn, 1, __VA_ARGS__) gmock_a1, \
418
- GMOCK_ARG_(tn, 2, __VA_ARGS__) gmock_a2, \
419
- GMOCK_ARG_(tn, 3, __VA_ARGS__) gmock_a3) constness { \
420
- GTEST_COMPILE_ASSERT_((::testing::tuple_size< \
421
- tn ::testing::internal::Function<__VA_ARGS__>::ArgumentTuple>::value \
422
- == 3), \
423
- this_method_does_not_take_3_arguments); \
424
- GMOCK_MOCKER_(3, constness, Method).SetOwnerAndName(this, #Method); \
425
- return GMOCK_MOCKER_(3, constness, Method).Invoke(gmock_a1, gmock_a2, \
426
- gmock_a3); \
427
- } \
428
- ::testing::MockSpec<__VA_ARGS__>& \
429
- gmock_##Method(GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1, \
430
- GMOCK_MATCHER_(tn, 2, __VA_ARGS__) gmock_a2, \
431
- GMOCK_MATCHER_(tn, 3, __VA_ARGS__) gmock_a3) constness { \
432
- GMOCK_MOCKER_(3, constness, Method).RegisterOwner(this); \
433
- return GMOCK_MOCKER_(3, constness, Method).With(gmock_a1, gmock_a2, \
434
- gmock_a3); \
435
- } \
436
- mutable ::testing::FunctionMocker<__VA_ARGS__> GMOCK_MOCKER_(3, constness, \
437
- Method)
438
-
439
- // INTERNAL IMPLEMENTATION - DON'T USE IN USER CODE!!!
440
- #define GMOCK_METHOD4_(tn, constness, ct, Method, ...) \
441
- GMOCK_RESULT_(tn, __VA_ARGS__) ct Method( \
442
- GMOCK_ARG_(tn, 1, __VA_ARGS__) gmock_a1, \
443
- GMOCK_ARG_(tn, 2, __VA_ARGS__) gmock_a2, \
444
- GMOCK_ARG_(tn, 3, __VA_ARGS__) gmock_a3, \
445
- GMOCK_ARG_(tn, 4, __VA_ARGS__) gmock_a4) constness { \
446
- GTEST_COMPILE_ASSERT_((::testing::tuple_size< \
447
- tn ::testing::internal::Function<__VA_ARGS__>::ArgumentTuple>::value \
448
- == 4), \
449
- this_method_does_not_take_4_arguments); \
450
- GMOCK_MOCKER_(4, constness, Method).SetOwnerAndName(this, #Method); \
451
- return GMOCK_MOCKER_(4, constness, Method).Invoke(gmock_a1, gmock_a2, \
452
- gmock_a3, gmock_a4); \
453
- } \
454
- ::testing::MockSpec<__VA_ARGS__>& \
455
- gmock_##Method(GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1, \
456
- GMOCK_MATCHER_(tn, 2, __VA_ARGS__) gmock_a2, \
457
- GMOCK_MATCHER_(tn, 3, __VA_ARGS__) gmock_a3, \
458
- GMOCK_MATCHER_(tn, 4, __VA_ARGS__) gmock_a4) constness { \
459
- GMOCK_MOCKER_(4, constness, Method).RegisterOwner(this); \
460
- return GMOCK_MOCKER_(4, constness, Method).With(gmock_a1, gmock_a2, \
461
- gmock_a3, gmock_a4); \
462
- } \
463
- mutable ::testing::FunctionMocker<__VA_ARGS__> GMOCK_MOCKER_(4, constness, \
464
- Method)
465
-
466
- // INTERNAL IMPLEMENTATION - DON'T USE IN USER CODE!!!
467
- #define GMOCK_METHOD5_(tn, constness, ct, Method, ...) \
468
- GMOCK_RESULT_(tn, __VA_ARGS__) ct Method( \
469
- GMOCK_ARG_(tn, 1, __VA_ARGS__) gmock_a1, \
470
- GMOCK_ARG_(tn, 2, __VA_ARGS__) gmock_a2, \
471
- GMOCK_ARG_(tn, 3, __VA_ARGS__) gmock_a3, \
472
- GMOCK_ARG_(tn, 4, __VA_ARGS__) gmock_a4, \
473
- GMOCK_ARG_(tn, 5, __VA_ARGS__) gmock_a5) constness { \
474
- GTEST_COMPILE_ASSERT_((::testing::tuple_size< \
475
- tn ::testing::internal::Function<__VA_ARGS__>::ArgumentTuple>::value \
476
- == 5), \
477
- this_method_does_not_take_5_arguments); \
478
- GMOCK_MOCKER_(5, constness, Method).SetOwnerAndName(this, #Method); \
479
- return GMOCK_MOCKER_(5, constness, Method).Invoke(gmock_a1, gmock_a2, \
480
- gmock_a3, gmock_a4, gmock_a5); \
481
- } \
482
- ::testing::MockSpec<__VA_ARGS__>& \
483
- gmock_##Method(GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1, \
484
- GMOCK_MATCHER_(tn, 2, __VA_ARGS__) gmock_a2, \
485
- GMOCK_MATCHER_(tn, 3, __VA_ARGS__) gmock_a3, \
486
- GMOCK_MATCHER_(tn, 4, __VA_ARGS__) gmock_a4, \
487
- GMOCK_MATCHER_(tn, 5, __VA_ARGS__) gmock_a5) constness { \
488
- GMOCK_MOCKER_(5, constness, Method).RegisterOwner(this); \
489
- return GMOCK_MOCKER_(5, constness, Method).With(gmock_a1, gmock_a2, \
490
- gmock_a3, gmock_a4, gmock_a5); \
491
- } \
492
- mutable ::testing::FunctionMocker<__VA_ARGS__> GMOCK_MOCKER_(5, constness, \
493
- Method)
494
-
495
- // INTERNAL IMPLEMENTATION - DON'T USE IN USER CODE!!!
496
- #define GMOCK_METHOD6_(tn, constness, ct, Method, ...) \
497
- GMOCK_RESULT_(tn, __VA_ARGS__) ct Method( \
498
- GMOCK_ARG_(tn, 1, __VA_ARGS__) gmock_a1, \
499
- GMOCK_ARG_(tn, 2, __VA_ARGS__) gmock_a2, \
500
- GMOCK_ARG_(tn, 3, __VA_ARGS__) gmock_a3, \
501
- GMOCK_ARG_(tn, 4, __VA_ARGS__) gmock_a4, \
502
- GMOCK_ARG_(tn, 5, __VA_ARGS__) gmock_a5, \
503
- GMOCK_ARG_(tn, 6, __VA_ARGS__) gmock_a6) constness { \
504
- GTEST_COMPILE_ASSERT_((::testing::tuple_size< \
505
- tn ::testing::internal::Function<__VA_ARGS__>::ArgumentTuple>::value \
506
- == 6), \
507
- this_method_does_not_take_6_arguments); \
508
- GMOCK_MOCKER_(6, constness, Method).SetOwnerAndName(this, #Method); \
509
- return GMOCK_MOCKER_(6, constness, Method).Invoke(gmock_a1, gmock_a2, \
510
- gmock_a3, gmock_a4, gmock_a5, gmock_a6); \
511
- } \
512
- ::testing::MockSpec<__VA_ARGS__>& \
513
- gmock_##Method(GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1, \
514
- GMOCK_MATCHER_(tn, 2, __VA_ARGS__) gmock_a2, \
515
- GMOCK_MATCHER_(tn, 3, __VA_ARGS__) gmock_a3, \
516
- GMOCK_MATCHER_(tn, 4, __VA_ARGS__) gmock_a4, \
517
- GMOCK_MATCHER_(tn, 5, __VA_ARGS__) gmock_a5, \
518
- GMOCK_MATCHER_(tn, 6, __VA_ARGS__) gmock_a6) constness { \
519
- GMOCK_MOCKER_(6, constness, Method).RegisterOwner(this); \
520
- return GMOCK_MOCKER_(6, constness, Method).With(gmock_a1, gmock_a2, \
521
- gmock_a3, gmock_a4, gmock_a5, gmock_a6); \
522
- } \
523
- mutable ::testing::FunctionMocker<__VA_ARGS__> GMOCK_MOCKER_(6, constness, \
524
- Method)
525
-
526
- // INTERNAL IMPLEMENTATION - DON'T USE IN USER CODE!!!
527
- #define GMOCK_METHOD7_(tn, constness, ct, Method, ...) \
528
- GMOCK_RESULT_(tn, __VA_ARGS__) ct Method( \
529
- GMOCK_ARG_(tn, 1, __VA_ARGS__) gmock_a1, \
530
- GMOCK_ARG_(tn, 2, __VA_ARGS__) gmock_a2, \
531
- GMOCK_ARG_(tn, 3, __VA_ARGS__) gmock_a3, \
532
- GMOCK_ARG_(tn, 4, __VA_ARGS__) gmock_a4, \
533
- GMOCK_ARG_(tn, 5, __VA_ARGS__) gmock_a5, \
534
- GMOCK_ARG_(tn, 6, __VA_ARGS__) gmock_a6, \
535
- GMOCK_ARG_(tn, 7, __VA_ARGS__) gmock_a7) constness { \
536
- GTEST_COMPILE_ASSERT_((::testing::tuple_size< \
537
- tn ::testing::internal::Function<__VA_ARGS__>::ArgumentTuple>::value \
538
- == 7), \
539
- this_method_does_not_take_7_arguments); \
540
- GMOCK_MOCKER_(7, constness, Method).SetOwnerAndName(this, #Method); \
541
- return GMOCK_MOCKER_(7, constness, Method).Invoke(gmock_a1, gmock_a2, \
542
- gmock_a3, gmock_a4, gmock_a5, gmock_a6, gmock_a7); \
543
- } \
544
- ::testing::MockSpec<__VA_ARGS__>& \
545
- gmock_##Method(GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1, \
546
- GMOCK_MATCHER_(tn, 2, __VA_ARGS__) gmock_a2, \
547
- GMOCK_MATCHER_(tn, 3, __VA_ARGS__) gmock_a3, \
548
- GMOCK_MATCHER_(tn, 4, __VA_ARGS__) gmock_a4, \
549
- GMOCK_MATCHER_(tn, 5, __VA_ARGS__) gmock_a5, \
550
- GMOCK_MATCHER_(tn, 6, __VA_ARGS__) gmock_a6, \
551
- GMOCK_MATCHER_(tn, 7, __VA_ARGS__) gmock_a7) constness { \
552
- GMOCK_MOCKER_(7, constness, Method).RegisterOwner(this); \
553
- return GMOCK_MOCKER_(7, constness, Method).With(gmock_a1, gmock_a2, \
554
- gmock_a3, gmock_a4, gmock_a5, gmock_a6, gmock_a7); \
555
- } \
556
- mutable ::testing::FunctionMocker<__VA_ARGS__> GMOCK_MOCKER_(7, constness, \
557
- Method)
558
-
559
- // INTERNAL IMPLEMENTATION - DON'T USE IN USER CODE!!!
560
- #define GMOCK_METHOD8_(tn, constness, ct, Method, ...) \
561
- GMOCK_RESULT_(tn, __VA_ARGS__) ct Method( \
562
- GMOCK_ARG_(tn, 1, __VA_ARGS__) gmock_a1, \
563
- GMOCK_ARG_(tn, 2, __VA_ARGS__) gmock_a2, \
564
- GMOCK_ARG_(tn, 3, __VA_ARGS__) gmock_a3, \
565
- GMOCK_ARG_(tn, 4, __VA_ARGS__) gmock_a4, \
566
- GMOCK_ARG_(tn, 5, __VA_ARGS__) gmock_a5, \
567
- GMOCK_ARG_(tn, 6, __VA_ARGS__) gmock_a6, \
568
- GMOCK_ARG_(tn, 7, __VA_ARGS__) gmock_a7, \
569
- GMOCK_ARG_(tn, 8, __VA_ARGS__) gmock_a8) constness { \
570
- GTEST_COMPILE_ASSERT_((::testing::tuple_size< \
571
- tn ::testing::internal::Function<__VA_ARGS__>::ArgumentTuple>::value \
572
- == 8), \
573
- this_method_does_not_take_8_arguments); \
574
- GMOCK_MOCKER_(8, constness, Method).SetOwnerAndName(this, #Method); \
575
- return GMOCK_MOCKER_(8, constness, Method).Invoke(gmock_a1, gmock_a2, \
576
- gmock_a3, gmock_a4, gmock_a5, gmock_a6, gmock_a7, gmock_a8); \
577
- } \
578
- ::testing::MockSpec<__VA_ARGS__>& \
579
- gmock_##Method(GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1, \
580
- GMOCK_MATCHER_(tn, 2, __VA_ARGS__) gmock_a2, \
581
- GMOCK_MATCHER_(tn, 3, __VA_ARGS__) gmock_a3, \
582
- GMOCK_MATCHER_(tn, 4, __VA_ARGS__) gmock_a4, \
583
- GMOCK_MATCHER_(tn, 5, __VA_ARGS__) gmock_a5, \
584
- GMOCK_MATCHER_(tn, 6, __VA_ARGS__) gmock_a6, \
585
- GMOCK_MATCHER_(tn, 7, __VA_ARGS__) gmock_a7, \
586
- GMOCK_MATCHER_(tn, 8, __VA_ARGS__) gmock_a8) constness { \
587
- GMOCK_MOCKER_(8, constness, Method).RegisterOwner(this); \
588
- return GMOCK_MOCKER_(8, constness, Method).With(gmock_a1, gmock_a2, \
589
- gmock_a3, gmock_a4, gmock_a5, gmock_a6, gmock_a7, gmock_a8); \
590
- } \
591
- mutable ::testing::FunctionMocker<__VA_ARGS__> GMOCK_MOCKER_(8, constness, \
592
- Method)
593
-
594
- // INTERNAL IMPLEMENTATION - DON'T USE IN USER CODE!!!
595
- #define GMOCK_METHOD9_(tn, constness, ct, Method, ...) \
596
- GMOCK_RESULT_(tn, __VA_ARGS__) ct Method( \
597
- GMOCK_ARG_(tn, 1, __VA_ARGS__) gmock_a1, \
598
- GMOCK_ARG_(tn, 2, __VA_ARGS__) gmock_a2, \
599
- GMOCK_ARG_(tn, 3, __VA_ARGS__) gmock_a3, \
600
- GMOCK_ARG_(tn, 4, __VA_ARGS__) gmock_a4, \
601
- GMOCK_ARG_(tn, 5, __VA_ARGS__) gmock_a5, \
602
- GMOCK_ARG_(tn, 6, __VA_ARGS__) gmock_a6, \
603
- GMOCK_ARG_(tn, 7, __VA_ARGS__) gmock_a7, \
604
- GMOCK_ARG_(tn, 8, __VA_ARGS__) gmock_a8, \
605
- GMOCK_ARG_(tn, 9, __VA_ARGS__) gmock_a9) constness { \
606
- GTEST_COMPILE_ASSERT_((::testing::tuple_size< \
607
- tn ::testing::internal::Function<__VA_ARGS__>::ArgumentTuple>::value \
608
- == 9), \
609
- this_method_does_not_take_9_arguments); \
610
- GMOCK_MOCKER_(9, constness, Method).SetOwnerAndName(this, #Method); \
611
- return GMOCK_MOCKER_(9, constness, Method).Invoke(gmock_a1, gmock_a2, \
612
- gmock_a3, gmock_a4, gmock_a5, gmock_a6, gmock_a7, gmock_a8, \
613
- gmock_a9); \
614
- } \
615
- ::testing::MockSpec<__VA_ARGS__>& \
616
- gmock_##Method(GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1, \
617
- GMOCK_MATCHER_(tn, 2, __VA_ARGS__) gmock_a2, \
618
- GMOCK_MATCHER_(tn, 3, __VA_ARGS__) gmock_a3, \
619
- GMOCK_MATCHER_(tn, 4, __VA_ARGS__) gmock_a4, \
620
- GMOCK_MATCHER_(tn, 5, __VA_ARGS__) gmock_a5, \
621
- GMOCK_MATCHER_(tn, 6, __VA_ARGS__) gmock_a6, \
622
- GMOCK_MATCHER_(tn, 7, __VA_ARGS__) gmock_a7, \
623
- GMOCK_MATCHER_(tn, 8, __VA_ARGS__) gmock_a8, \
624
- GMOCK_MATCHER_(tn, 9, __VA_ARGS__) gmock_a9) constness { \
625
- GMOCK_MOCKER_(9, constness, Method).RegisterOwner(this); \
626
- return GMOCK_MOCKER_(9, constness, Method).With(gmock_a1, gmock_a2, \
627
- gmock_a3, gmock_a4, gmock_a5, gmock_a6, gmock_a7, gmock_a8, \
628
- gmock_a9); \
629
- } \
630
- mutable ::testing::FunctionMocker<__VA_ARGS__> GMOCK_MOCKER_(9, constness, \
631
- Method)
632
-
633
- // INTERNAL IMPLEMENTATION - DON'T USE IN USER CODE!!!
634
- #define GMOCK_METHOD10_(tn, constness, ct, Method, ...) \
635
- GMOCK_RESULT_(tn, __VA_ARGS__) ct Method( \
636
- GMOCK_ARG_(tn, 1, __VA_ARGS__) gmock_a1, \
637
- GMOCK_ARG_(tn, 2, __VA_ARGS__) gmock_a2, \
638
- GMOCK_ARG_(tn, 3, __VA_ARGS__) gmock_a3, \
639
- GMOCK_ARG_(tn, 4, __VA_ARGS__) gmock_a4, \
640
- GMOCK_ARG_(tn, 5, __VA_ARGS__) gmock_a5, \
641
- GMOCK_ARG_(tn, 6, __VA_ARGS__) gmock_a6, \
642
- GMOCK_ARG_(tn, 7, __VA_ARGS__) gmock_a7, \
643
- GMOCK_ARG_(tn, 8, __VA_ARGS__) gmock_a8, \
644
- GMOCK_ARG_(tn, 9, __VA_ARGS__) gmock_a9, \
645
- GMOCK_ARG_(tn, 10, __VA_ARGS__) gmock_a10) constness { \
646
- GTEST_COMPILE_ASSERT_((::testing::tuple_size< \
647
- tn ::testing::internal::Function<__VA_ARGS__>::ArgumentTuple>::value \
648
- == 10), \
649
- this_method_does_not_take_10_arguments); \
650
- GMOCK_MOCKER_(10, constness, Method).SetOwnerAndName(this, #Method); \
651
- return GMOCK_MOCKER_(10, constness, Method).Invoke(gmock_a1, gmock_a2, \
652
- gmock_a3, gmock_a4, gmock_a5, gmock_a6, gmock_a7, gmock_a8, gmock_a9, \
653
- gmock_a10); \
654
- } \
655
- ::testing::MockSpec<__VA_ARGS__>& \
656
- gmock_##Method(GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1, \
657
- GMOCK_MATCHER_(tn, 2, __VA_ARGS__) gmock_a2, \
658
- GMOCK_MATCHER_(tn, 3, __VA_ARGS__) gmock_a3, \
659
- GMOCK_MATCHER_(tn, 4, __VA_ARGS__) gmock_a4, \
660
- GMOCK_MATCHER_(tn, 5, __VA_ARGS__) gmock_a5, \
661
- GMOCK_MATCHER_(tn, 6, __VA_ARGS__) gmock_a6, \
662
- GMOCK_MATCHER_(tn, 7, __VA_ARGS__) gmock_a7, \
663
- GMOCK_MATCHER_(tn, 8, __VA_ARGS__) gmock_a8, \
664
- GMOCK_MATCHER_(tn, 9, __VA_ARGS__) gmock_a9, \
665
- GMOCK_MATCHER_(tn, 10, \
666
- __VA_ARGS__) gmock_a10) constness { \
667
- GMOCK_MOCKER_(10, constness, Method).RegisterOwner(this); \
668
- return GMOCK_MOCKER_(10, constness, Method).With(gmock_a1, gmock_a2, \
669
- gmock_a3, gmock_a4, gmock_a5, gmock_a6, gmock_a7, gmock_a8, gmock_a9, \
670
- gmock_a10); \
671
- } \
672
- mutable ::testing::FunctionMocker<__VA_ARGS__> GMOCK_MOCKER_(10, constness, \
673
- Method)
674
-
675
- #define MOCK_METHOD0(m, ...) GMOCK_METHOD0_(, , , m, __VA_ARGS__)
676
- #define MOCK_METHOD1(m, ...) GMOCK_METHOD1_(, , , m, __VA_ARGS__)
677
- #define MOCK_METHOD2(m, ...) GMOCK_METHOD2_(, , , m, __VA_ARGS__)
678
- #define MOCK_METHOD3(m, ...) GMOCK_METHOD3_(, , , m, __VA_ARGS__)
679
- #define MOCK_METHOD4(m, ...) GMOCK_METHOD4_(, , , m, __VA_ARGS__)
680
- #define MOCK_METHOD5(m, ...) GMOCK_METHOD5_(, , , m, __VA_ARGS__)
681
- #define MOCK_METHOD6(m, ...) GMOCK_METHOD6_(, , , m, __VA_ARGS__)
682
- #define MOCK_METHOD7(m, ...) GMOCK_METHOD7_(, , , m, __VA_ARGS__)
683
- #define MOCK_METHOD8(m, ...) GMOCK_METHOD8_(, , , m, __VA_ARGS__)
684
- #define MOCK_METHOD9(m, ...) GMOCK_METHOD9_(, , , m, __VA_ARGS__)
685
- #define MOCK_METHOD10(m, ...) GMOCK_METHOD10_(, , , m, __VA_ARGS__)
686
-
687
- #define MOCK_CONST_METHOD0(m, ...) GMOCK_METHOD0_(, const, , m, __VA_ARGS__)
688
- #define MOCK_CONST_METHOD1(m, ...) GMOCK_METHOD1_(, const, , m, __VA_ARGS__)
689
- #define MOCK_CONST_METHOD2(m, ...) GMOCK_METHOD2_(, const, , m, __VA_ARGS__)
690
- #define MOCK_CONST_METHOD3(m, ...) GMOCK_METHOD3_(, const, , m, __VA_ARGS__)
691
- #define MOCK_CONST_METHOD4(m, ...) GMOCK_METHOD4_(, const, , m, __VA_ARGS__)
692
- #define MOCK_CONST_METHOD5(m, ...) GMOCK_METHOD5_(, const, , m, __VA_ARGS__)
693
- #define MOCK_CONST_METHOD6(m, ...) GMOCK_METHOD6_(, const, , m, __VA_ARGS__)
694
- #define MOCK_CONST_METHOD7(m, ...) GMOCK_METHOD7_(, const, , m, __VA_ARGS__)
695
- #define MOCK_CONST_METHOD8(m, ...) GMOCK_METHOD8_(, const, , m, __VA_ARGS__)
696
- #define MOCK_CONST_METHOD9(m, ...) GMOCK_METHOD9_(, const, , m, __VA_ARGS__)
697
- #define MOCK_CONST_METHOD10(m, ...) GMOCK_METHOD10_(, const, , m, __VA_ARGS__)
698
-
699
- #define MOCK_METHOD0_T(m, ...) GMOCK_METHOD0_(typename, , , m, __VA_ARGS__)
700
- #define MOCK_METHOD1_T(m, ...) GMOCK_METHOD1_(typename, , , m, __VA_ARGS__)
701
- #define MOCK_METHOD2_T(m, ...) GMOCK_METHOD2_(typename, , , m, __VA_ARGS__)
702
- #define MOCK_METHOD3_T(m, ...) GMOCK_METHOD3_(typename, , , m, __VA_ARGS__)
703
- #define MOCK_METHOD4_T(m, ...) GMOCK_METHOD4_(typename, , , m, __VA_ARGS__)
704
- #define MOCK_METHOD5_T(m, ...) GMOCK_METHOD5_(typename, , , m, __VA_ARGS__)
705
- #define MOCK_METHOD6_T(m, ...) GMOCK_METHOD6_(typename, , , m, __VA_ARGS__)
706
- #define MOCK_METHOD7_T(m, ...) GMOCK_METHOD7_(typename, , , m, __VA_ARGS__)
707
- #define MOCK_METHOD8_T(m, ...) GMOCK_METHOD8_(typename, , , m, __VA_ARGS__)
708
- #define MOCK_METHOD9_T(m, ...) GMOCK_METHOD9_(typename, , , m, __VA_ARGS__)
709
- #define MOCK_METHOD10_T(m, ...) GMOCK_METHOD10_(typename, , , m, __VA_ARGS__)
710
-
711
- #define MOCK_CONST_METHOD0_T(m, ...) \
712
- GMOCK_METHOD0_(typename, const, , m, __VA_ARGS__)
713
- #define MOCK_CONST_METHOD1_T(m, ...) \
714
- GMOCK_METHOD1_(typename, const, , m, __VA_ARGS__)
715
- #define MOCK_CONST_METHOD2_T(m, ...) \
716
- GMOCK_METHOD2_(typename, const, , m, __VA_ARGS__)
717
- #define MOCK_CONST_METHOD3_T(m, ...) \
718
- GMOCK_METHOD3_(typename, const, , m, __VA_ARGS__)
719
- #define MOCK_CONST_METHOD4_T(m, ...) \
720
- GMOCK_METHOD4_(typename, const, , m, __VA_ARGS__)
721
- #define MOCK_CONST_METHOD5_T(m, ...) \
722
- GMOCK_METHOD5_(typename, const, , m, __VA_ARGS__)
723
- #define MOCK_CONST_METHOD6_T(m, ...) \
724
- GMOCK_METHOD6_(typename, const, , m, __VA_ARGS__)
725
- #define MOCK_CONST_METHOD7_T(m, ...) \
726
- GMOCK_METHOD7_(typename, const, , m, __VA_ARGS__)
727
- #define MOCK_CONST_METHOD8_T(m, ...) \
728
- GMOCK_METHOD8_(typename, const, , m, __VA_ARGS__)
729
- #define MOCK_CONST_METHOD9_T(m, ...) \
730
- GMOCK_METHOD9_(typename, const, , m, __VA_ARGS__)
731
- #define MOCK_CONST_METHOD10_T(m, ...) \
732
- GMOCK_METHOD10_(typename, const, , m, __VA_ARGS__)
733
-
734
- #define MOCK_METHOD0_WITH_CALLTYPE(ct, m, ...) \
735
- GMOCK_METHOD0_(, , ct, m, __VA_ARGS__)
736
- #define MOCK_METHOD1_WITH_CALLTYPE(ct, m, ...) \
737
- GMOCK_METHOD1_(, , ct, m, __VA_ARGS__)
738
- #define MOCK_METHOD2_WITH_CALLTYPE(ct, m, ...) \
739
- GMOCK_METHOD2_(, , ct, m, __VA_ARGS__)
740
- #define MOCK_METHOD3_WITH_CALLTYPE(ct, m, ...) \
741
- GMOCK_METHOD3_(, , ct, m, __VA_ARGS__)
742
- #define MOCK_METHOD4_WITH_CALLTYPE(ct, m, ...) \
743
- GMOCK_METHOD4_(, , ct, m, __VA_ARGS__)
744
- #define MOCK_METHOD5_WITH_CALLTYPE(ct, m, ...) \
745
- GMOCK_METHOD5_(, , ct, m, __VA_ARGS__)
746
- #define MOCK_METHOD6_WITH_CALLTYPE(ct, m, ...) \
747
- GMOCK_METHOD6_(, , ct, m, __VA_ARGS__)
748
- #define MOCK_METHOD7_WITH_CALLTYPE(ct, m, ...) \
749
- GMOCK_METHOD7_(, , ct, m, __VA_ARGS__)
750
- #define MOCK_METHOD8_WITH_CALLTYPE(ct, m, ...) \
751
- GMOCK_METHOD8_(, , ct, m, __VA_ARGS__)
752
- #define MOCK_METHOD9_WITH_CALLTYPE(ct, m, ...) \
753
- GMOCK_METHOD9_(, , ct, m, __VA_ARGS__)
754
- #define MOCK_METHOD10_WITH_CALLTYPE(ct, m, ...) \
755
- GMOCK_METHOD10_(, , ct, m, __VA_ARGS__)
756
-
757
- #define MOCK_CONST_METHOD0_WITH_CALLTYPE(ct, m, ...) \
758
- GMOCK_METHOD0_(, const, ct, m, __VA_ARGS__)
759
- #define MOCK_CONST_METHOD1_WITH_CALLTYPE(ct, m, ...) \
760
- GMOCK_METHOD1_(, const, ct, m, __VA_ARGS__)
761
- #define MOCK_CONST_METHOD2_WITH_CALLTYPE(ct, m, ...) \
762
- GMOCK_METHOD2_(, const, ct, m, __VA_ARGS__)
763
- #define MOCK_CONST_METHOD3_WITH_CALLTYPE(ct, m, ...) \
764
- GMOCK_METHOD3_(, const, ct, m, __VA_ARGS__)
765
- #define MOCK_CONST_METHOD4_WITH_CALLTYPE(ct, m, ...) \
766
- GMOCK_METHOD4_(, const, ct, m, __VA_ARGS__)
767
- #define MOCK_CONST_METHOD5_WITH_CALLTYPE(ct, m, ...) \
768
- GMOCK_METHOD5_(, const, ct, m, __VA_ARGS__)
769
- #define MOCK_CONST_METHOD6_WITH_CALLTYPE(ct, m, ...) \
770
- GMOCK_METHOD6_(, const, ct, m, __VA_ARGS__)
771
- #define MOCK_CONST_METHOD7_WITH_CALLTYPE(ct, m, ...) \
772
- GMOCK_METHOD7_(, const, ct, m, __VA_ARGS__)
773
- #define MOCK_CONST_METHOD8_WITH_CALLTYPE(ct, m, ...) \
774
- GMOCK_METHOD8_(, const, ct, m, __VA_ARGS__)
775
- #define MOCK_CONST_METHOD9_WITH_CALLTYPE(ct, m, ...) \
776
- GMOCK_METHOD9_(, const, ct, m, __VA_ARGS__)
777
- #define MOCK_CONST_METHOD10_WITH_CALLTYPE(ct, m, ...) \
778
- GMOCK_METHOD10_(, const, ct, m, __VA_ARGS__)
779
-
780
- #define MOCK_METHOD0_T_WITH_CALLTYPE(ct, m, ...) \
781
- GMOCK_METHOD0_(typename, , ct, m, __VA_ARGS__)
782
- #define MOCK_METHOD1_T_WITH_CALLTYPE(ct, m, ...) \
783
- GMOCK_METHOD1_(typename, , ct, m, __VA_ARGS__)
784
- #define MOCK_METHOD2_T_WITH_CALLTYPE(ct, m, ...) \
785
- GMOCK_METHOD2_(typename, , ct, m, __VA_ARGS__)
786
- #define MOCK_METHOD3_T_WITH_CALLTYPE(ct, m, ...) \
787
- GMOCK_METHOD3_(typename, , ct, m, __VA_ARGS__)
788
- #define MOCK_METHOD4_T_WITH_CALLTYPE(ct, m, ...) \
789
- GMOCK_METHOD4_(typename, , ct, m, __VA_ARGS__)
790
- #define MOCK_METHOD5_T_WITH_CALLTYPE(ct, m, ...) \
791
- GMOCK_METHOD5_(typename, , ct, m, __VA_ARGS__)
792
- #define MOCK_METHOD6_T_WITH_CALLTYPE(ct, m, ...) \
793
- GMOCK_METHOD6_(typename, , ct, m, __VA_ARGS__)
794
- #define MOCK_METHOD7_T_WITH_CALLTYPE(ct, m, ...) \
795
- GMOCK_METHOD7_(typename, , ct, m, __VA_ARGS__)
796
- #define MOCK_METHOD8_T_WITH_CALLTYPE(ct, m, ...) \
797
- GMOCK_METHOD8_(typename, , ct, m, __VA_ARGS__)
798
- #define MOCK_METHOD9_T_WITH_CALLTYPE(ct, m, ...) \
799
- GMOCK_METHOD9_(typename, , ct, m, __VA_ARGS__)
800
- #define MOCK_METHOD10_T_WITH_CALLTYPE(ct, m, ...) \
801
- GMOCK_METHOD10_(typename, , ct, m, __VA_ARGS__)
802
-
803
- #define MOCK_CONST_METHOD0_T_WITH_CALLTYPE(ct, m, ...) \
804
- GMOCK_METHOD0_(typename, const, ct, m, __VA_ARGS__)
805
- #define MOCK_CONST_METHOD1_T_WITH_CALLTYPE(ct, m, ...) \
806
- GMOCK_METHOD1_(typename, const, ct, m, __VA_ARGS__)
807
- #define MOCK_CONST_METHOD2_T_WITH_CALLTYPE(ct, m, ...) \
808
- GMOCK_METHOD2_(typename, const, ct, m, __VA_ARGS__)
809
- #define MOCK_CONST_METHOD3_T_WITH_CALLTYPE(ct, m, ...) \
810
- GMOCK_METHOD3_(typename, const, ct, m, __VA_ARGS__)
811
- #define MOCK_CONST_METHOD4_T_WITH_CALLTYPE(ct, m, ...) \
812
- GMOCK_METHOD4_(typename, const, ct, m, __VA_ARGS__)
813
- #define MOCK_CONST_METHOD5_T_WITH_CALLTYPE(ct, m, ...) \
814
- GMOCK_METHOD5_(typename, const, ct, m, __VA_ARGS__)
815
- #define MOCK_CONST_METHOD6_T_WITH_CALLTYPE(ct, m, ...) \
816
- GMOCK_METHOD6_(typename, const, ct, m, __VA_ARGS__)
817
- #define MOCK_CONST_METHOD7_T_WITH_CALLTYPE(ct, m, ...) \
818
- GMOCK_METHOD7_(typename, const, ct, m, __VA_ARGS__)
819
- #define MOCK_CONST_METHOD8_T_WITH_CALLTYPE(ct, m, ...) \
820
- GMOCK_METHOD8_(typename, const, ct, m, __VA_ARGS__)
821
- #define MOCK_CONST_METHOD9_T_WITH_CALLTYPE(ct, m, ...) \
822
- GMOCK_METHOD9_(typename, const, ct, m, __VA_ARGS__)
823
- #define MOCK_CONST_METHOD10_T_WITH_CALLTYPE(ct, m, ...) \
824
- GMOCK_METHOD10_(typename, const, ct, m, __VA_ARGS__)
825
-
826
- // A MockFunction<F> class has one mock method whose type is F. It is
827
- // useful when you just want your test code to emit some messages and
828
- // have Google Mock verify the right messages are sent (and perhaps at
829
- // the right times). For example, if you are exercising code:
830
- //
831
- // Foo(1);
832
- // Foo(2);
833
- // Foo(3);
834
- //
835
- // and want to verify that Foo(1) and Foo(3) both invoke
836
- // mock.Bar("a"), but Foo(2) doesn't invoke anything, you can write:
837
- //
838
- // TEST(FooTest, InvokesBarCorrectly) {
839
- // MyMock mock;
840
- // MockFunction<void(string check_point_name)> check;
841
- // {
842
- // InSequence s;
843
- //
844
- // EXPECT_CALL(mock, Bar("a"));
845
- // EXPECT_CALL(check, Call("1"));
846
- // EXPECT_CALL(check, Call("2"));
847
- // EXPECT_CALL(mock, Bar("a"));
848
- // }
849
- // Foo(1);
850
- // check.Call("1");
851
- // Foo(2);
852
- // check.Call("2");
853
- // Foo(3);
854
- // }
855
- //
856
- // The expectation spec says that the first Bar("a") must happen
857
- // before check point "1", the second Bar("a") must happen after check
858
- // point "2", and nothing should happen between the two check
859
- // points. The explicit check points make it easy to tell which
860
- // Bar("a") is called by which call to Foo().
861
- //
862
- // MockFunction<F> can also be used to exercise code that accepts
863
- // std::function<F> callbacks. To do so, use AsStdFunction() method
864
- // to create std::function proxy forwarding to original object's Call.
865
- // Example:
866
- //
867
- // TEST(FooTest, RunsCallbackWithBarArgument) {
868
- // MockFunction<int(string)> callback;
869
- // EXPECT_CALL(callback, Call("bar")).WillOnce(Return(1));
870
- // Foo(callback.AsStdFunction());
871
- // }
872
- template <typename F>
873
- class MockFunction;
874
-
875
- template <typename R>
876
- class MockFunction<R()> {
877
- public:
878
- MockFunction() {}
879
-
880
- MOCK_METHOD0_T(Call, R());
881
-
882
- #if GTEST_HAS_STD_FUNCTION_
883
- std::function<R()> AsStdFunction() {
884
- return [this]() -> R {
885
- return this->Call();
886
- };
887
- }
888
- #endif // GTEST_HAS_STD_FUNCTION_
889
-
890
- private:
891
- GTEST_DISALLOW_COPY_AND_ASSIGN_(MockFunction);
892
- };
893
-
894
- template <typename R, typename A0>
895
- class MockFunction<R(A0)> {
896
- public:
897
- MockFunction() {}
898
-
899
- MOCK_METHOD1_T(Call, R(A0));
900
-
901
- #if GTEST_HAS_STD_FUNCTION_
902
- std::function<R(A0)> AsStdFunction() {
903
- return [this](A0 a0) -> R {
904
- return this->Call(a0);
905
- };
906
- }
907
- #endif // GTEST_HAS_STD_FUNCTION_
908
-
909
- private:
910
- GTEST_DISALLOW_COPY_AND_ASSIGN_(MockFunction);
911
- };
912
-
913
- template <typename R, typename A0, typename A1>
914
- class MockFunction<R(A0, A1)> {
915
- public:
916
- MockFunction() {}
917
-
918
- MOCK_METHOD2_T(Call, R(A0, A1));
919
-
920
- #if GTEST_HAS_STD_FUNCTION_
921
- std::function<R(A0, A1)> AsStdFunction() {
922
- return [this](A0 a0, A1 a1) -> R {
923
- return this->Call(a0, a1);
924
- };
925
- }
926
- #endif // GTEST_HAS_STD_FUNCTION_
927
-
928
- private:
929
- GTEST_DISALLOW_COPY_AND_ASSIGN_(MockFunction);
930
- };
931
-
932
- template <typename R, typename A0, typename A1, typename A2>
933
- class MockFunction<R(A0, A1, A2)> {
934
- public:
935
- MockFunction() {}
936
-
937
- MOCK_METHOD3_T(Call, R(A0, A1, A2));
938
-
939
- #if GTEST_HAS_STD_FUNCTION_
940
- std::function<R(A0, A1, A2)> AsStdFunction() {
941
- return [this](A0 a0, A1 a1, A2 a2) -> R {
942
- return this->Call(a0, a1, a2);
943
- };
944
- }
945
- #endif // GTEST_HAS_STD_FUNCTION_
946
-
947
- private:
948
- GTEST_DISALLOW_COPY_AND_ASSIGN_(MockFunction);
949
- };
950
-
951
- template <typename R, typename A0, typename A1, typename A2, typename A3>
952
- class MockFunction<R(A0, A1, A2, A3)> {
953
- public:
954
- MockFunction() {}
955
-
956
- MOCK_METHOD4_T(Call, R(A0, A1, A2, A3));
957
-
958
- #if GTEST_HAS_STD_FUNCTION_
959
- std::function<R(A0, A1, A2, A3)> AsStdFunction() {
960
- return [this](A0 a0, A1 a1, A2 a2, A3 a3) -> R {
961
- return this->Call(a0, a1, a2, a3);
962
- };
963
- }
964
- #endif // GTEST_HAS_STD_FUNCTION_
965
-
966
- private:
967
- GTEST_DISALLOW_COPY_AND_ASSIGN_(MockFunction);
968
- };
969
-
970
- template <typename R, typename A0, typename A1, typename A2, typename A3,
971
- typename A4>
972
- class MockFunction<R(A0, A1, A2, A3, A4)> {
973
- public:
974
- MockFunction() {}
975
-
976
- MOCK_METHOD5_T(Call, R(A0, A1, A2, A3, A4));
977
-
978
- #if GTEST_HAS_STD_FUNCTION_
979
- std::function<R(A0, A1, A2, A3, A4)> AsStdFunction() {
980
- return [this](A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) -> R {
981
- return this->Call(a0, a1, a2, a3, a4);
982
- };
983
- }
984
- #endif // GTEST_HAS_STD_FUNCTION_
985
-
986
- private:
987
- GTEST_DISALLOW_COPY_AND_ASSIGN_(MockFunction);
988
- };
989
-
990
- template <typename R, typename A0, typename A1, typename A2, typename A3,
991
- typename A4, typename A5>
992
- class MockFunction<R(A0, A1, A2, A3, A4, A5)> {
993
- public:
994
- MockFunction() {}
995
-
996
- MOCK_METHOD6_T(Call, R(A0, A1, A2, A3, A4, A5));
997
-
998
- #if GTEST_HAS_STD_FUNCTION_
999
- std::function<R(A0, A1, A2, A3, A4, A5)> AsStdFunction() {
1000
- return [this](A0 a0, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5) -> R {
1001
- return this->Call(a0, a1, a2, a3, a4, a5);
1002
- };
1003
- }
1004
- #endif // GTEST_HAS_STD_FUNCTION_
1005
-
1006
- private:
1007
- GTEST_DISALLOW_COPY_AND_ASSIGN_(MockFunction);
1008
- };
1009
-
1010
- template <typename R, typename A0, typename A1, typename A2, typename A3,
1011
- typename A4, typename A5, typename A6>
1012
- class MockFunction<R(A0, A1, A2, A3, A4, A5, A6)> {
1013
- public:
1014
- MockFunction() {}
1015
-
1016
- MOCK_METHOD7_T(Call, R(A0, A1, A2, A3, A4, A5, A6));
1017
-
1018
- #if GTEST_HAS_STD_FUNCTION_
1019
- std::function<R(A0, A1, A2, A3, A4, A5, A6)> AsStdFunction() {
1020
- return [this](A0 a0, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6) -> R {
1021
- return this->Call(a0, a1, a2, a3, a4, a5, a6);
1022
- };
1023
- }
1024
- #endif // GTEST_HAS_STD_FUNCTION_
1025
-
1026
- private:
1027
- GTEST_DISALLOW_COPY_AND_ASSIGN_(MockFunction);
1028
- };
1029
-
1030
- template <typename R, typename A0, typename A1, typename A2, typename A3,
1031
- typename A4, typename A5, typename A6, typename A7>
1032
- class MockFunction<R(A0, A1, A2, A3, A4, A5, A6, A7)> {
1033
- public:
1034
- MockFunction() {}
1035
-
1036
- MOCK_METHOD8_T(Call, R(A0, A1, A2, A3, A4, A5, A6, A7));
1037
-
1038
- #if GTEST_HAS_STD_FUNCTION_
1039
- std::function<R(A0, A1, A2, A3, A4, A5, A6, A7)> AsStdFunction() {
1040
- return [this](A0 a0, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7) -> R {
1041
- return this->Call(a0, a1, a2, a3, a4, a5, a6, a7);
1042
- };
1043
- }
1044
- #endif // GTEST_HAS_STD_FUNCTION_
1045
-
1046
- private:
1047
- GTEST_DISALLOW_COPY_AND_ASSIGN_(MockFunction);
1048
- };
1049
-
1050
- template <typename R, typename A0, typename A1, typename A2, typename A3,
1051
- typename A4, typename A5, typename A6, typename A7, typename A8>
1052
- class MockFunction<R(A0, A1, A2, A3, A4, A5, A6, A7, A8)> {
1053
- public:
1054
- MockFunction() {}
1055
-
1056
- MOCK_METHOD9_T(Call, R(A0, A1, A2, A3, A4, A5, A6, A7, A8));
1057
-
1058
- #if GTEST_HAS_STD_FUNCTION_
1059
- std::function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8)> AsStdFunction() {
1060
- return [this](A0 a0, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7,
1061
- A8 a8) -> R {
1062
- return this->Call(a0, a1, a2, a3, a4, a5, a6, a7, a8);
1063
- };
1064
- }
1065
- #endif // GTEST_HAS_STD_FUNCTION_
1066
-
1067
- private:
1068
- GTEST_DISALLOW_COPY_AND_ASSIGN_(MockFunction);
1069
- };
1070
-
1071
- template <typename R, typename A0, typename A1, typename A2, typename A3,
1072
- typename A4, typename A5, typename A6, typename A7, typename A8,
1073
- typename A9>
1074
- class MockFunction<R(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9)> {
1075
- public:
1076
- MockFunction() {}
1077
-
1078
- MOCK_METHOD10_T(Call, R(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9));
1079
-
1080
- #if GTEST_HAS_STD_FUNCTION_
1081
- std::function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9)> AsStdFunction() {
1082
- return [this](A0 a0, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7,
1083
- A8 a8, A9 a9) -> R {
1084
- return this->Call(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9);
1085
- };
1086
- }
1087
- #endif // GTEST_HAS_STD_FUNCTION_
1088
-
1089
- private:
1090
- GTEST_DISALLOW_COPY_AND_ASSIGN_(MockFunction);
1091
- };
1092
-
1093
- } // namespace testing
1094
-
1095
- #endif // GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_FUNCTION_MOCKERS_H_