rj_schema 0.2.2 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (371) hide show
  1. checksums.yaml +4 -4
  2. data/ext/rj_schema/rapidjson/CMakeLists.txt +9 -4
  3. data/ext/rj_schema/rapidjson/RapidJSONConfig.cmake.in +10 -0
  4. data/ext/rj_schema/rapidjson/appveyor.yml +22 -9
  5. data/ext/rj_schema/rapidjson/bin/data/abcde.txt +1 -0
  6. data/ext/rj_schema/rapidjson/bin/unittestschema/address.json +139 -0
  7. data/ext/rj_schema/rapidjson/bin/unittestschema/allOf_address.json +7 -0
  8. data/ext/rj_schema/rapidjson/bin/unittestschema/anyOf_address.json +7 -0
  9. data/ext/rj_schema/rapidjson/bin/unittestschema/oneOf_address.json +7 -0
  10. data/ext/rj_schema/rapidjson/contrib/natvis/rapidjson.natvis +2 -2
  11. data/ext/rj_schema/rapidjson/doc/dom.md +1 -0
  12. data/ext/rj_schema/rapidjson/doc/dom.zh-cn.md +1 -0
  13. data/ext/rj_schema/rapidjson/doc/faq.md +3 -3
  14. data/ext/rj_schema/rapidjson/doc/faq.zh-cn.md +8 -8
  15. data/ext/rj_schema/rapidjson/doc/internals.md +1 -1
  16. data/ext/rj_schema/rapidjson/doc/internals.zh-cn.md +2 -2
  17. data/ext/rj_schema/rapidjson/doc/pointer.zh-cn.md +1 -1
  18. data/ext/rj_schema/rapidjson/doc/sax.md +1 -1
  19. data/ext/rj_schema/rapidjson/doc/sax.zh-cn.md +2 -2
  20. data/ext/rj_schema/rapidjson/doc/stream.md +1 -1
  21. data/ext/rj_schema/rapidjson/doc/tutorial.md +1 -1
  22. data/ext/rj_schema/rapidjson/doc/tutorial.zh-cn.md +7 -6
  23. data/ext/rj_schema/rapidjson/example/CMakeLists.txt +1 -0
  24. data/ext/rj_schema/rapidjson/example/schemavalidator/schemavalidator.cpp +118 -0
  25. data/ext/rj_schema/rapidjson/example/sortkeys/sortkeys.cpp +62 -0
  26. data/ext/rj_schema/rapidjson/example/tutorial/tutorial.cpp +1 -1
  27. data/ext/rj_schema/rapidjson/include/rapidjson/allocators.h +6 -6
  28. data/ext/rj_schema/rapidjson/include/rapidjson/cursorstreamwrapper.h +1 -1
  29. data/ext/rj_schema/rapidjson/include/rapidjson/document.h +124 -35
  30. data/ext/rj_schema/rapidjson/include/rapidjson/encodedstream.h +1 -1
  31. data/ext/rj_schema/rapidjson/include/rapidjson/encodings.h +1 -1
  32. data/ext/rj_schema/rapidjson/include/rapidjson/error/en.h +49 -1
  33. data/ext/rj_schema/rapidjson/include/rapidjson/error/error.h +56 -1
  34. data/ext/rj_schema/rapidjson/include/rapidjson/filereadstream.h +2 -2
  35. data/ext/rj_schema/rapidjson/include/rapidjson/filewritestream.h +1 -1
  36. data/ext/rj_schema/rapidjson/include/rapidjson/fwd.h +2 -2
  37. data/ext/rj_schema/rapidjson/include/rapidjson/internal/biginteger.h +2 -2
  38. data/ext/rj_schema/rapidjson/include/rapidjson/internal/clzll.h +71 -0
  39. data/ext/rj_schema/rapidjson/include/rapidjson/internal/diyfp.h +3 -17
  40. data/ext/rj_schema/rapidjson/include/rapidjson/internal/dtoa.h +1 -1
  41. data/ext/rj_schema/rapidjson/include/rapidjson/internal/ieee754.h +1 -1
  42. data/ext/rj_schema/rapidjson/include/rapidjson/internal/itoa.h +1 -1
  43. data/ext/rj_schema/rapidjson/include/rapidjson/internal/meta.h +1 -1
  44. data/ext/rj_schema/rapidjson/include/rapidjson/internal/pow10.h +1 -1
  45. data/ext/rj_schema/rapidjson/include/rapidjson/internal/regex.h +20 -13
  46. data/ext/rj_schema/rapidjson/include/rapidjson/internal/stack.h +4 -3
  47. data/ext/rj_schema/rapidjson/include/rapidjson/internal/strfunc.h +1 -1
  48. data/ext/rj_schema/rapidjson/include/rapidjson/internal/strtod.h +1 -1
  49. data/ext/rj_schema/rapidjson/include/rapidjson/internal/swap.h +1 -1
  50. data/ext/rj_schema/rapidjson/include/rapidjson/istreamwrapper.h +50 -35
  51. data/ext/rj_schema/rapidjson/include/rapidjson/memorybuffer.h +1 -1
  52. data/ext/rj_schema/rapidjson/include/rapidjson/memorystream.h +1 -1
  53. data/ext/rj_schema/rapidjson/include/rapidjson/ostreamwrapper.h +1 -1
  54. data/ext/rj_schema/rapidjson/include/rapidjson/pointer.h +63 -5
  55. data/ext/rj_schema/rapidjson/include/rapidjson/prettywriter.h +2 -2
  56. data/ext/rj_schema/rapidjson/include/rapidjson/rapidjson.h +63 -1
  57. data/ext/rj_schema/rapidjson/include/rapidjson/reader.h +67 -53
  58. data/ext/rj_schema/rapidjson/include/rapidjson/schema.h +318 -164
  59. data/ext/rj_schema/rapidjson/include/rapidjson/stream.h +1 -1
  60. data/ext/rj_schema/rapidjson/include/rapidjson/stringbuffer.h +1 -1
  61. data/ext/rj_schema/rapidjson/include/rapidjson/writer.h +10 -10
  62. data/ext/rj_schema/rapidjson/readme.md +51 -1
  63. data/ext/rj_schema/rapidjson/readme.zh-cn.md +2 -2
  64. data/ext/rj_schema/rapidjson/test/perftest/misctest.cpp +1 -1
  65. data/ext/rj_schema/rapidjson/test/perftest/perftest.cpp +1 -1
  66. data/ext/rj_schema/rapidjson/test/perftest/perftest.h +1 -1
  67. data/ext/rj_schema/rapidjson/test/perftest/platformtest.cpp +2 -2
  68. data/ext/rj_schema/rapidjson/test/perftest/rapidjsontest.cpp +75 -1
  69. data/ext/rj_schema/rapidjson/test/unittest/CMakeLists.txt +1 -0
  70. data/ext/rj_schema/rapidjson/test/unittest/allocatorstest.cpp +1 -1
  71. data/ext/rj_schema/rapidjson/test/unittest/bigintegertest.cpp +1 -1
  72. data/ext/rj_schema/rapidjson/test/unittest/clzlltest.cpp +34 -0
  73. data/ext/rj_schema/rapidjson/test/unittest/cursorstreamwrappertest.cpp +19 -19
  74. data/ext/rj_schema/rapidjson/test/unittest/documenttest.cpp +1 -1
  75. data/ext/rj_schema/rapidjson/test/unittest/dtoatest.cpp +1 -1
  76. data/ext/rj_schema/rapidjson/test/unittest/encodedstreamtest.cpp +1 -1
  77. data/ext/rj_schema/rapidjson/test/unittest/encodingstest.cpp +1 -1
  78. data/ext/rj_schema/rapidjson/test/unittest/filestreamtest.cpp +45 -2
  79. data/ext/rj_schema/rapidjson/test/unittest/fwdtest.cpp +1 -1
  80. data/ext/rj_schema/rapidjson/test/unittest/istreamwrappertest.cpp +10 -10
  81. data/ext/rj_schema/rapidjson/test/unittest/itoatest.cpp +8 -8
  82. data/ext/rj_schema/rapidjson/test/unittest/jsoncheckertest.cpp +1 -1
  83. data/ext/rj_schema/rapidjson/test/unittest/namespacetest.cpp +1 -1
  84. data/ext/rj_schema/rapidjson/test/unittest/ostreamwrappertest.cpp +1 -1
  85. data/ext/rj_schema/rapidjson/test/unittest/pointertest.cpp +157 -16
  86. data/ext/rj_schema/rapidjson/test/unittest/prettywritertest.cpp +1 -1
  87. data/ext/rj_schema/rapidjson/test/unittest/readertest.cpp +113 -75
  88. data/ext/rj_schema/rapidjson/test/unittest/regextest.cpp +2 -1
  89. data/ext/rj_schema/rapidjson/test/unittest/schematest.cpp +593 -78
  90. data/ext/rj_schema/rapidjson/test/unittest/simdtest.cpp +1 -1
  91. data/ext/rj_schema/rapidjson/test/unittest/strfunctest.cpp +1 -1
  92. data/ext/rj_schema/rapidjson/test/unittest/stringbuffertest.cpp +5 -5
  93. data/ext/rj_schema/rapidjson/test/unittest/strtodtest.cpp +1 -1
  94. data/ext/rj_schema/rapidjson/test/unittest/unittest.cpp +1 -1
  95. data/ext/rj_schema/rapidjson/test/unittest/unittest.h +4 -1
  96. data/ext/rj_schema/rapidjson/test/unittest/valuetest.cpp +12 -12
  97. data/ext/rj_schema/rapidjson/test/unittest/writertest.cpp +1 -1
  98. data/ext/rj_schema/rapidjson/thirdparty/gtest/BUILD.bazel +175 -0
  99. data/ext/rj_schema/rapidjson/thirdparty/gtest/CMakeLists.txt +18 -1
  100. data/ext/rj_schema/rapidjson/thirdparty/gtest/CONTRIBUTING.md +160 -0
  101. data/ext/rj_schema/rapidjson/thirdparty/gtest/LICENSE +28 -0
  102. data/ext/rj_schema/rapidjson/thirdparty/gtest/Makefile.am +14 -0
  103. data/ext/rj_schema/rapidjson/thirdparty/gtest/README.md +16 -35
  104. data/ext/rj_schema/rapidjson/thirdparty/gtest/WORKSPACE +8 -0
  105. data/ext/rj_schema/rapidjson/thirdparty/gtest/appveyor.yml +104 -0
  106. data/ext/rj_schema/rapidjson/thirdparty/gtest/ci/build-linux-autotools.sh +44 -0
  107. data/ext/rj_schema/rapidjson/thirdparty/gtest/ci/build-linux-bazel.sh +36 -0
  108. data/ext/rj_schema/rapidjson/thirdparty/gtest/ci/env-linux.sh +41 -0
  109. data/ext/rj_schema/rapidjson/thirdparty/gtest/ci/env-osx.sh +40 -0
  110. data/ext/rj_schema/rapidjson/thirdparty/gtest/ci/get-nprocessors.sh +48 -0
  111. data/ext/rj_schema/rapidjson/thirdparty/gtest/ci/install-linux.sh +49 -0
  112. data/ext/rj_schema/rapidjson/thirdparty/gtest/ci/install-osx.sh +39 -0
  113. data/ext/rj_schema/rapidjson/thirdparty/gtest/ci/log-config.sh +51 -0
  114. data/ext/rj_schema/rapidjson/thirdparty/gtest/ci/travis.sh +44 -0
  115. data/ext/rj_schema/rapidjson/thirdparty/gtest/configure.ac +16 -0
  116. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/CHANGES +1 -1
  117. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/CMakeLists.txt +72 -32
  118. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/README.md +53 -42
  119. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/cmake/gmock.pc.in +9 -0
  120. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/cmake/gmock_main.pc.in +9 -0
  121. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/configure.ac +4 -4
  122. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/CheatSheet.md +6 -4
  123. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/CookBook.md +117 -132
  124. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/Documentation.md +7 -4
  125. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/ForDummies.md +20 -12
  126. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/FrequentlyAskedQuestions.md +1 -2
  127. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-actions.h +83 -26
  128. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-actions.h +262 -68
  129. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-actions.h.pump +45 -6
  130. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-function-mockers.h +650 -366
  131. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-function-mockers.h.pump +76 -20
  132. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-matchers.h +308 -229
  133. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-matchers.h.pump +18 -15
  134. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-nice-strict.h +87 -26
  135. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-nice-strict.h.pump +33 -16
  136. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-matchers.h +1209 -353
  137. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-more-matchers.h +33 -0
  138. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-spec-builders.h +159 -88
  139. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock.h +2 -1
  140. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-generated-actions.h.pump +1 -1
  141. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-matchers.h +3 -4
  142. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-generated-internal-utils.h +16 -9
  143. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-internal-utils.h +71 -8
  144. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-port.h +7 -11
  145. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock.sln +14 -0
  146. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock.vcxproj +69 -6
  147. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock_config.props +2 -2
  148. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock_main.vcxproj +69 -6
  149. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock_test.vcxproj +83 -8
  150. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock.sln +14 -0
  151. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock.vcxproj +63 -2
  152. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock_main.vcxproj +63 -2
  153. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock_test.vcxproj +76 -3
  154. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/fuse_gmock_files.py +1 -1
  155. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/generator/README +4 -5
  156. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/ast.py +3 -3
  157. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/src/gmock-cardinalities.cc +1 -1
  158. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/src/gmock-internal-utils.cc +36 -6
  159. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/src/gmock-matchers.cc +210 -135
  160. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/src/gmock-spec-builders.cc +108 -48
  161. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/src/gmock.cc +23 -1
  162. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/BUILD.bazel +123 -0
  163. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-actions_test.cc +166 -2
  164. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-cardinalities_test.cc +1 -1
  165. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-actions_test.cc +64 -62
  166. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-function-mockers_test.cc +43 -18
  167. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-internal-utils_test.cc +11 -9
  168. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-matchers_test.cc +91 -36
  169. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-internal-utils_test.cc +33 -14
  170. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-matchers_test.cc +1286 -167
  171. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-more-actions_test.cc +85 -83
  172. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-nice-strict_test.cc +102 -15
  173. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-spec-builders_test.cc +136 -9
  174. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_link2_test.cc +1 -1
  175. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_link_test.cc +1 -1
  176. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_link_test.h +24 -2
  177. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_output_test.py +8 -5
  178. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_output_test_.cc +20 -1
  179. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_output_test_golden.txt +8 -1
  180. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_stress_test.cc +3 -2
  181. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_test.cc +44 -2
  182. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_test_utils.py +5 -7
  183. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/CMakeLists.txt +40 -14
  184. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/Makefile.am +60 -31
  185. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/README.md +232 -171
  186. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/cmake/gtest.pc.in +9 -0
  187. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/cmake/gtest_main.pc.in +10 -0
  188. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/cmake/internal_utils.cmake +54 -16
  189. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/configure.ac +1 -1
  190. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/Pkgconfig.md +146 -0
  191. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/PumpManual.md +2 -2
  192. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/XcodeGuide.md +6 -6
  193. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/{AdvancedGuide.md → advanced.md} +260 -26
  194. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/{FAQ.md → faq.md} +62 -57
  195. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/{Primer.md → primer.md} +43 -9
  196. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/{Samples.md → samples.md} +0 -0
  197. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-death-test.h +53 -5
  198. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-message.h +1 -2
  199. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-param-test.h +30 -36
  200. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-param-test.h.pump +8 -17
  201. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-printers.h +140 -51
  202. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-spi.h +2 -3
  203. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-typed-test.h +4 -3
  204. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest.h +126 -30
  205. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest_pred_impl.h +6 -7
  206. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest_prod.h +8 -5
  207. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/custom/gtest-port.h +6 -5
  208. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/custom/gtest.h +4 -0
  209. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-death-test-internal.h +13 -57
  210. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-filepath.h +1 -2
  211. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-internal.h +98 -59
  212. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-param-util-generated.h +34 -41
  213. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-param-util-generated.h.pump +3 -10
  214. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-param-util.h +9 -17
  215. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-port-arch.h +8 -1
  216. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-port.h +232 -99
  217. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-string.h +3 -3
  218. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-type-util.h +17 -1
  219. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-type-util.h.pump +17 -1
  220. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest-md.sln +55 -0
  221. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest-md.vcxproj +149 -0
  222. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest-md.vcxproj.filters +18 -0
  223. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest.sln +55 -0
  224. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest.vcxproj +149 -0
  225. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest.vcxproj.filters +18 -0
  226. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_main-md.vcxproj +154 -0
  227. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_main-md.vcxproj.filters +18 -0
  228. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_main.vcxproj +162 -0
  229. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_main.vcxproj.filters +18 -0
  230. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_prod_test-md.vcxproj +199 -0
  231. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_prod_test-md.vcxproj.filters +26 -0
  232. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_prod_test.vcxproj +191 -0
  233. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_prod_test.vcxproj.filters +26 -0
  234. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_unittest-md.vcxproj +188 -0
  235. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_unittest-md.vcxproj.filters +18 -0
  236. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_unittest.vcxproj +180 -0
  237. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_unittest.vcxproj.filters +18 -0
  238. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/prime_tables.h +6 -2
  239. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample1.cc +1 -1
  240. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample10_unittest.cc +0 -4
  241. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample1_unittest.cc +2 -1
  242. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample2_unittest.cc +2 -1
  243. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample3_unittest.cc +7 -6
  244. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample4_unittest.cc +5 -1
  245. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample5_unittest.cc +3 -3
  246. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample6_unittest.cc +2 -1
  247. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample7_unittest.cc +10 -22
  248. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample8_unittest.cc +2 -1
  249. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample9_unittest.cc +0 -3
  250. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/scripts/fuse_gtest_files.py +1 -1
  251. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/scripts/gen_gtest_pred_impl.py +10 -10
  252. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/scripts/upload.py +1 -1
  253. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-all.cc +1 -1
  254. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-death-test.cc +226 -32
  255. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-filepath.cc +5 -7
  256. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-internal-inl.h +21 -29
  257. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-port.cc +85 -67
  258. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-printers.cc +93 -8
  259. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-test-part.cc +1 -9
  260. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-typed-test.cc +1 -0
  261. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest.cc +622 -164
  262. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest_main.cc +1 -1
  263. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/BUILD.bazel +396 -0
  264. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-death-test_test.cc +12 -15
  265. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-filepath_test.cc +2 -12
  266. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-listener_test.cc +1 -1
  267. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-options_test.cc +6 -8
  268. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-param-test2_test.cc +1 -5
  269. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-param-test_test.cc +84 -29
  270. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-param-test_test.h +1 -5
  271. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-port_test.cc +11 -12
  272. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-printers_test.cc +165 -63
  273. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-typed-test2_test.cc +1 -1
  274. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-typed-test_test.cc +1 -1
  275. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-unittest-api_test.cc +1 -1
  276. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_all_test.cc +13 -13
  277. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_assert_by_exception_test.cc +119 -0
  278. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_break_on_failure_unittest.py +1 -3
  279. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_break_on_failure_unittest_.cc +1 -2
  280. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_catch_exceptions_test.py +0 -2
  281. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_catch_exceptions_test_.cc +1 -1
  282. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_color_test.py +1 -2
  283. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_color_test_.cc +0 -8
  284. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_env_var_test.py +6 -4
  285. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_env_var_test_.cc +0 -2
  286. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_environment_test.cc +0 -3
  287. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_filter_unittest.py +20 -18
  288. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_filter_unittest_.cc +0 -2
  289. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_help_test.py +1 -1
  290. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_json_outfiles_test.py +162 -0
  291. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_json_output_unittest.py +611 -0
  292. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_json_test_utils.py +60 -0
  293. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_list_tests_unittest.py +4 -4
  294. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_main_unittest.cc +2 -2
  295. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_output_test.py +11 -7
  296. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_output_test_.cc +17 -12
  297. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_output_test_golden_lin.txt +104 -66
  298. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_pred_impl_unittest.cc +1 -1
  299. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_prod_test.cc +2 -2
  300. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_repeat_test.cc +2 -19
  301. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_stress_test.cc +0 -6
  302. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_test_utils.py +12 -14
  303. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_testbridge_test.py +65 -0
  304. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_testbridge_test_.cc +44 -0
  305. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_throw_on_failure_test.py +1 -1
  306. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_uninitialized_test.py +4 -5
  307. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_uninitialized_test_.cc +2 -2
  308. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_unittest.cc +240 -149
  309. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_outfile1_test_.cc +0 -1
  310. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_outfile2_test_.cc +0 -1
  311. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_outfiles_test.py +15 -7
  312. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_output_unittest.py +100 -30
  313. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_output_unittest_.cc +0 -2
  314. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_test_utils.py +25 -23
  315. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/production.cc +1 -1
  316. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/production.h +1 -1
  317. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Scripts/versiongenerate.py +4 -4
  318. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/gtest.xcodeproj/project.pbxproj +47 -0
  319. data/ext/rj_schema/rapidjson/travis-doxygen.sh +13 -6
  320. data/ext/rj_schema/rj_schema.cpp +161 -17
  321. data/lib/rj_schema.rb +1 -1
  322. metadata +63 -58
  323. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/DevGuide.md +0 -132
  324. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/CheatSheet.md +0 -525
  325. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/CookBook.md +0 -3250
  326. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/Documentation.md +0 -11
  327. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/ForDummies.md +0 -439
  328. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/FrequentlyAskedQuestions.md +0 -624
  329. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/CheatSheet.md +0 -534
  330. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/CookBook.md +0 -3342
  331. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/Documentation.md +0 -12
  332. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/ForDummies.md +0 -439
  333. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/FrequentlyAskedQuestions.md +0 -628
  334. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/CheatSheet.md +0 -556
  335. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/CookBook.md +0 -3432
  336. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/Documentation.md +0 -12
  337. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/ForDummies.md +0 -439
  338. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/FrequentlyAskedQuestions.md +0 -628
  339. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/DevGuide.md +0 -126
  340. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/Documentation.md +0 -14
  341. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_5_AdvancedGuide.md +0 -2096
  342. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_5_Documentation.md +0 -12
  343. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_5_FAQ.md +0 -886
  344. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_5_Primer.md +0 -497
  345. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_5_PumpManual.md +0 -177
  346. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_5_XcodeGuide.md +0 -93
  347. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_6_AdvancedGuide.md +0 -2178
  348. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_6_Documentation.md +0 -14
  349. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_6_FAQ.md +0 -1038
  350. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_6_Primer.md +0 -501
  351. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_6_PumpManual.md +0 -177
  352. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_6_Samples.md +0 -14
  353. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_6_XcodeGuide.md +0 -93
  354. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_7_AdvancedGuide.md +0 -2181
  355. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_7_Documentation.md +0 -14
  356. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_7_FAQ.md +0 -1082
  357. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_7_Primer.md +0 -501
  358. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_7_PumpManual.md +0 -177
  359. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_7_Samples.md +0 -14
  360. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_7_XcodeGuide.md +0 -93
  361. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest-md.sln +0 -45
  362. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest-md.vcproj +0 -126
  363. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest.sln +0 -45
  364. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest.vcproj +0 -126
  365. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest_main-md.vcproj +0 -129
  366. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest_main.vcproj +0 -129
  367. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest_prod_test-md.vcproj +0 -164
  368. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest_prod_test.vcproj +0 -164
  369. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest_unittest-md.vcproj +0 -147
  370. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest_unittest.vcproj +0 -147
  371. data/ext/rj_schema/rapidjson/thirdparty/gtest/travis.sh +0 -15
@@ -97,13 +97,12 @@ class GTEST_API_ SingleFailureChecker {
97
97
  public:
98
98
  // The constructor remembers the arguments.
99
99
  SingleFailureChecker(const TestPartResultArray* results,
100
- TestPartResult::Type type,
101
- const string& substr);
100
+ TestPartResult::Type type, const std::string& substr);
102
101
  ~SingleFailureChecker();
103
102
  private:
104
103
  const TestPartResultArray* const results_;
105
104
  const TestPartResult::Type type_;
106
- const string substr_;
105
+ const std::string substr_;
107
106
 
108
107
  GTEST_DISALLOW_COPY_AND_ASSIGN_(SingleFailureChecker);
109
108
  };
@@ -241,9 +241,10 @@ INSTANTIATE_TYPED_TEST_CASE_P(My, FooTest, MyTypes);
241
241
  namespace GTEST_CASE_NAMESPACE_(CaseName) { \
242
242
  typedef ::testing::internal::Templates<__VA_ARGS__>::type gtest_AllTests_; \
243
243
  } \
244
- static const char* const GTEST_REGISTERED_TEST_NAMES_(CaseName) = \
245
- GTEST_TYPED_TEST_CASE_P_STATE_(CaseName).VerifyRegisteredTestNames(\
246
- __FILE__, __LINE__, #__VA_ARGS__)
244
+ static const char* const GTEST_REGISTERED_TEST_NAMES_(CaseName) \
245
+ GTEST_ATTRIBUTE_UNUSED_ = \
246
+ GTEST_TYPED_TEST_CASE_P_STATE_(CaseName).VerifyRegisteredTestNames( \
247
+ __FILE__, __LINE__, #__VA_ARGS__)
247
248
 
248
249
  // The 'Types' template argument below must have spaces around it
249
250
  // since some compilers may choke on '>>' when passing a template
@@ -29,7 +29,7 @@
29
29
  //
30
30
  // Author: wan@google.com (Zhanyong Wan)
31
31
  //
32
- // The Google C++ Testing Framework (Google Test)
32
+ // The Google C++ Testing and Mocking Framework (Google Test)
33
33
  //
34
34
  // This header file defines the public API for Google Test. It should be
35
35
  // included by any test program that uses Google Test.
@@ -82,6 +82,15 @@
82
82
 
83
83
  namespace testing {
84
84
 
85
+ // Silence C4100 (unreferenced formal parameter) and 4805
86
+ // unsafe mix of type 'const int' and type 'const bool'
87
+ #ifdef _MSC_VER
88
+ # pragma warning(push)
89
+ # pragma warning(disable:4805)
90
+ # pragma warning(disable:4100)
91
+ #endif
92
+
93
+
85
94
  // Declares the flags.
86
95
 
87
96
  // This flag temporary enables the disabled tests.
@@ -115,6 +124,9 @@ GTEST_DECLARE_string_(output);
115
124
  // test.
116
125
  GTEST_DECLARE_bool_(print_time);
117
126
 
127
+ // This flags control whether Google Test prints UTF8 characters as text.
128
+ GTEST_DECLARE_bool_(print_utf8);
129
+
118
130
  // This flag specifies the random number seed.
119
131
  GTEST_DECLARE_int32_(random_seed);
120
132
 
@@ -135,7 +147,7 @@ GTEST_DECLARE_int32_(stack_trace_depth);
135
147
 
136
148
  // When this flag is specified, a failed assertion will throw an
137
149
  // exception if exceptions are enabled, or exit the program with a
138
- // non-zero code otherwise.
150
+ // non-zero code otherwise. For use with an external test framework.
139
151
  GTEST_DECLARE_bool_(throw_on_failure);
140
152
 
141
153
  // When this flag is set with a "host:port" string, on supported
@@ -160,6 +172,7 @@ class TestEventListenersAccessor;
160
172
  class TestEventRepeater;
161
173
  class UnitTestRecordPropertyTestHelper;
162
174
  class WindowsDeathTest;
175
+ class FuchsiaDeathTest;
163
176
  class UnitTestImpl* GetUnitTestImpl();
164
177
  void ReportFailureInUnknownLocation(TestPartResult::Type result_type,
165
178
  const std::string& message);
@@ -259,7 +272,9 @@ class GTEST_API_ AssertionResult {
259
272
  // Used in EXPECT_TRUE/FALSE(assertion_result).
260
273
  AssertionResult(const AssertionResult& other);
261
274
 
275
+ #if defined(_MSC_VER) && _MSC_VER < 1910
262
276
  GTEST_DISABLE_MSC_WARNINGS_PUSH_(4800 /* forcing value to bool */)
277
+ #endif
263
278
 
264
279
  // Used in the EXPECT_TRUE/FALSE(bool_expression).
265
280
  //
@@ -276,7 +291,9 @@ class GTEST_API_ AssertionResult {
276
291
  /*enabler*/ = NULL)
277
292
  : success_(success) {}
278
293
 
294
+ #if defined(_MSC_VER) && _MSC_VER < 1910
279
295
  GTEST_DISABLE_MSC_WARNINGS_POP_()
296
+ #endif
280
297
 
281
298
  // Assignment operator.
282
299
  AssertionResult& operator=(AssertionResult other) {
@@ -345,6 +362,15 @@ GTEST_API_ AssertionResult AssertionFailure();
345
362
  // Deprecated; use AssertionFailure() << msg.
346
363
  GTEST_API_ AssertionResult AssertionFailure(const Message& msg);
347
364
 
365
+ } // namespace testing
366
+
367
+ // Includes the auto-generated header that implements a family of generic
368
+ // predicate assertion macros. This include comes late because it relies on
369
+ // APIs declared above.
370
+ #include "gtest/gtest_pred_impl.h"
371
+
372
+ namespace testing {
373
+
348
374
  // The abstract class that all tests inherit from.
349
375
  //
350
376
  // In Google Test, a unit test program contains one or many TestCases, and
@@ -355,7 +381,7 @@ GTEST_API_ AssertionResult AssertionFailure(const Message& msg);
355
381
  // this for you.
356
382
  //
357
383
  // The only time you derive from Test is when defining a test fixture
358
- // to be used a TEST_F. For example:
384
+ // to be used in a TEST_F. For example:
359
385
  //
360
386
  // class FooTest : public testing::Test {
361
387
  // protected:
@@ -550,9 +576,8 @@ class GTEST_API_ TestResult {
550
576
  // Returns the elapsed time, in milliseconds.
551
577
  TimeInMillis elapsed_time() const { return elapsed_time_; }
552
578
 
553
- // Returns the i-th test part result among all the results. i can range
554
- // from 0 to test_property_count() - 1. If i is not in that range, aborts
555
- // the program.
579
+ // Returns the i-th test part result among all the results. i can range from 0
580
+ // to total_part_count() - 1. If i is not in that range, aborts the program.
556
581
  const TestPartResult& GetTestPartResult(int i) const;
557
582
 
558
583
  // Returns the i-th test property. i can range from 0 to
@@ -569,6 +594,7 @@ class GTEST_API_ TestResult {
569
594
  friend class internal::TestResultAccessor;
570
595
  friend class internal::UnitTestImpl;
571
596
  friend class internal::WindowsDeathTest;
597
+ friend class internal::FuchsiaDeathTest;
572
598
 
573
599
  // Gets the vector of TestPartResults.
574
600
  const std::vector<TestPartResult>& test_part_results() const {
@@ -675,6 +701,9 @@ class GTEST_API_ TestInfo {
675
701
  // Returns the line where this test is defined.
676
702
  int line() const { return location_.line; }
677
703
 
704
+ // Return true if this test should not be run because it's in another shard.
705
+ bool is_in_another_shard() const { return is_in_another_shard_; }
706
+
678
707
  // Returns true if this test should run, that is if the test is not
679
708
  // disabled (or it is disabled but the also_run_disabled_tests flag has
680
709
  // been specified) and its full name matches the user-specified filter.
@@ -695,10 +724,9 @@ class GTEST_API_ TestInfo {
695
724
 
696
725
  // Returns true iff this test will appear in the XML report.
697
726
  bool is_reportable() const {
698
- // For now, the XML report includes all tests matching the filter.
699
- // In the future, we may trim tests that are excluded because of
700
- // sharding.
701
- return matches_filter_;
727
+ // The XML report includes tests matching the filter, excluding those
728
+ // run in other shards.
729
+ return matches_filter_ && !is_in_another_shard_;
702
730
  }
703
731
 
704
732
  // Returns the result of the test.
@@ -762,6 +790,7 @@ class GTEST_API_ TestInfo {
762
790
  bool is_disabled_; // True iff this test is disabled
763
791
  bool matches_filter_; // True if this test matches the
764
792
  // user-specified filter.
793
+ bool is_in_another_shard_; // Will be run in another shard.
765
794
  internal::TestFactoryBase* const factory_; // The factory that creates
766
795
  // the test object
767
796
 
@@ -986,6 +1015,18 @@ class Environment {
986
1015
  virtual Setup_should_be_spelled_SetUp* Setup() { return NULL; }
987
1016
  };
988
1017
 
1018
+ #if GTEST_HAS_EXCEPTIONS
1019
+
1020
+ // Exception which can be thrown from TestEventListener::OnTestPartResult.
1021
+ class GTEST_API_ AssertionException
1022
+ : public internal::GoogleTestFailureException {
1023
+ public:
1024
+ explicit AssertionException(const TestPartResult& result)
1025
+ : GoogleTestFailureException(result) {}
1026
+ };
1027
+
1028
+ #endif // GTEST_HAS_EXCEPTIONS
1029
+
989
1030
  // The interface for tracing execution of tests. The methods are organized in
990
1031
  // the order the corresponding events are fired.
991
1032
  class TestEventListener {
@@ -1014,6 +1055,8 @@ class TestEventListener {
1014
1055
  virtual void OnTestStart(const TestInfo& test_info) = 0;
1015
1056
 
1016
1057
  // Fired after a failed assertion or a SUCCEED() invocation.
1058
+ // If you want to throw an exception from this function to skip to the next
1059
+ // TEST, it must be AssertionException defined above, or inherited from it.
1017
1060
  virtual void OnTestPartResult(const TestPartResult& test_part_result) = 0;
1018
1061
 
1019
1062
  // Fired after the test ends.
@@ -1180,14 +1223,12 @@ class GTEST_API_ UnitTest {
1180
1223
  // Returns the random seed used at the start of the current test run.
1181
1224
  int random_seed() const;
1182
1225
 
1183
- #if GTEST_HAS_PARAM_TEST
1184
1226
  // Returns the ParameterizedTestCaseRegistry object used to keep track of
1185
1227
  // value-parameterized tests and instantiate and register them.
1186
1228
  //
1187
1229
  // INTERNAL IMPLEMENTATION - DO NOT USE IN A USER PROGRAM.
1188
1230
  internal::ParameterizedTestCaseRegistry& parameterized_test_registry()
1189
1231
  GTEST_LOCK_EXCLUDED_(mutex_);
1190
- #endif // GTEST_HAS_PARAM_TEST
1191
1232
 
1192
1233
  // Gets the number of successful test cases.
1193
1234
  int successful_test_case_count() const;
@@ -1287,11 +1328,11 @@ class GTEST_API_ UnitTest {
1287
1328
  internal::UnitTestImpl* impl() { return impl_; }
1288
1329
  const internal::UnitTestImpl* impl() const { return impl_; }
1289
1330
 
1290
- // These classes and funcions are friends as they need to access private
1331
+ // These classes and functions are friends as they need to access private
1291
1332
  // members of UnitTest.
1333
+ friend class ScopedTrace;
1292
1334
  friend class Test;
1293
1335
  friend class internal::AssertHelper;
1294
- friend class internal::ScopedTrace;
1295
1336
  friend class internal::StreamingListenerTest;
1296
1337
  friend class internal::UnitTestRecordPropertyTestHelper;
1297
1338
  friend Environment* AddGlobalTestEnvironment(Environment* env);
@@ -1388,11 +1429,9 @@ AssertionResult CmpHelperEQ(const char* lhs_expression,
1388
1429
  const char* rhs_expression,
1389
1430
  const T1& lhs,
1390
1431
  const T2& rhs) {
1391
- GTEST_DISABLE_MSC_WARNINGS_PUSH_(4389 /* signed/unsigned mismatch */)
1392
1432
  if (lhs == rhs) {
1393
1433
  return AssertionSuccess();
1394
1434
  }
1395
- GTEST_DISABLE_MSC_WARNINGS_POP_()
1396
1435
 
1397
1436
  return CmpHelperEQFailure(lhs_expression, rhs_expression, lhs, rhs);
1398
1437
  }
@@ -1706,7 +1745,6 @@ class GTEST_API_ AssertHelper {
1706
1745
 
1707
1746
  } // namespace internal
1708
1747
 
1709
- #if GTEST_HAS_PARAM_TEST
1710
1748
  // The pure interface class that all value-parameterized tests inherit from.
1711
1749
  // A value-parameterized class must inherit from both ::testing::Test and
1712
1750
  // ::testing::WithParamInterface. In most cases that just means inheriting
@@ -1783,8 +1821,6 @@ template <typename T>
1783
1821
  class TestWithParam : public Test, public WithParamInterface<T> {
1784
1822
  };
1785
1823
 
1786
- #endif // GTEST_HAS_PARAM_TEST
1787
-
1788
1824
  // Macros for indicating success/failure in test code.
1789
1825
 
1790
1826
  // ADD_FAILURE unconditionally adds a failure to the current test.
@@ -1869,10 +1905,6 @@ class TestWithParam : public Test, public WithParamInterface<T> {
1869
1905
  GTEST_TEST_BOOLEAN_(!(condition), #condition, true, false, \
1870
1906
  GTEST_FATAL_FAILURE_)
1871
1907
 
1872
- // Includes the auto-generated header that implements a family of
1873
- // generic predicate assertion macros.
1874
- #include "gtest/gtest_pred_impl.h"
1875
-
1876
1908
  // Macros for testing equalities and inequalities.
1877
1909
  //
1878
1910
  // * {ASSERT|EXPECT}_EQ(v1, v2): Tests that v1 == v2
@@ -1914,8 +1946,8 @@ class TestWithParam : public Test, public WithParamInterface<T> {
1914
1946
  //
1915
1947
  // Examples:
1916
1948
  //
1917
- // EXPECT_NE(5, Foo());
1918
- // EXPECT_EQ(NULL, a_pointer);
1949
+ // EXPECT_NE(Foo(), 5);
1950
+ // EXPECT_EQ(a_pointer, NULL);
1919
1951
  // ASSERT_LT(i, array_size);
1920
1952
  // ASSERT_GT(records.size(), 0) << "There is no record left.";
1921
1953
 
@@ -2101,6 +2133,57 @@ GTEST_API_ AssertionResult DoubleLE(const char* expr1, const char* expr2,
2101
2133
  #define EXPECT_NO_FATAL_FAILURE(statement) \
2102
2134
  GTEST_TEST_NO_FATAL_FAILURE_(statement, GTEST_NONFATAL_FAILURE_)
2103
2135
 
2136
+ // Causes a trace (including the given source file path and line number,
2137
+ // and the given message) to be included in every test failure message generated
2138
+ // by code in the scope of the lifetime of an instance of this class. The effect
2139
+ // is undone with the destruction of the instance.
2140
+ //
2141
+ // The message argument can be anything streamable to std::ostream.
2142
+ //
2143
+ // Example:
2144
+ // testing::ScopedTrace trace("file.cc", 123, "message");
2145
+ //
2146
+ class GTEST_API_ ScopedTrace {
2147
+ public:
2148
+ // The c'tor pushes the given source file location and message onto
2149
+ // a trace stack maintained by Google Test.
2150
+
2151
+ // Template version. Uses Message() to convert the values into strings.
2152
+ // Slow, but flexible.
2153
+ template <typename T>
2154
+ ScopedTrace(const char* file, int line, const T& message) {
2155
+ PushTrace(file, line, (Message() << message).GetString());
2156
+ }
2157
+
2158
+ // Optimize for some known types.
2159
+ ScopedTrace(const char* file, int line, const char* message) {
2160
+ PushTrace(file, line, message ? message : "(null)");
2161
+ }
2162
+
2163
+ #if GTEST_HAS_GLOBAL_STRING
2164
+ ScopedTrace(const char* file, int line, const ::string& message) {
2165
+ PushTrace(file, line, message);
2166
+ }
2167
+ #endif
2168
+
2169
+ ScopedTrace(const char* file, int line, const std::string& message) {
2170
+ PushTrace(file, line, message);
2171
+ }
2172
+
2173
+ // The d'tor pops the info pushed by the c'tor.
2174
+ //
2175
+ // Note that the d'tor is not virtual in order to be efficient.
2176
+ // Don't inherit from ScopedTrace!
2177
+ ~ScopedTrace();
2178
+
2179
+ private:
2180
+ void PushTrace(const char* file, int line, std::string message);
2181
+
2182
+ GTEST_DISALLOW_COPY_AND_ASSIGN_(ScopedTrace);
2183
+ } GTEST_ATTRIBUTE_UNUSED_; // A ScopedTrace object does its job in its
2184
+ // c'tor and d'tor. Therefore it doesn't
2185
+ // need to be used otherwise.
2186
+
2104
2187
  // Causes a trace (including the source file path, the current line
2105
2188
  // number, and the given message) to be included in every test failure
2106
2189
  // message generated by code in the current scope. The effect is
@@ -2112,9 +2195,14 @@ GTEST_API_ AssertionResult DoubleLE(const char* expr1, const char* expr2,
2112
2195
  // of the dummy variable name, thus allowing multiple SCOPED_TRACE()s
2113
2196
  // to appear in the same block - as long as they are on different
2114
2197
  // lines.
2198
+ //
2199
+ // Assuming that each thread maintains its own stack of traces.
2200
+ // Therefore, a SCOPED_TRACE() would (correctly) only affect the
2201
+ // assertions in its own thread.
2115
2202
  #define SCOPED_TRACE(message) \
2116
- ::testing::internal::ScopedTrace GTEST_CONCAT_TOKEN_(gtest_trace_, __LINE__)(\
2117
- __FILE__, __LINE__, ::testing::Message() << (message))
2203
+ ::testing::ScopedTrace GTEST_CONCAT_TOKEN_(gtest_trace_, __LINE__)(\
2204
+ __FILE__, __LINE__, (message))
2205
+
2118
2206
 
2119
2207
  // Compile-time assertion for type equality.
2120
2208
  // StaticAssertTypeEq<type1, type2>() compiles iff type1 and type2 are
@@ -2194,7 +2282,7 @@ bool StaticAssertTypeEq() {
2194
2282
  // name of the test within the test case.
2195
2283
  //
2196
2284
  // A test fixture class must be declared earlier. The user should put
2197
- // his test code between braces after using this macro. Example:
2285
+ // the test code between braces after using this macro. Example:
2198
2286
  //
2199
2287
  // class FooTest : public testing::Test {
2200
2288
  // protected:
@@ -2209,14 +2297,22 @@ bool StaticAssertTypeEq() {
2209
2297
  // }
2210
2298
  //
2211
2299
  // TEST_F(FooTest, ReturnsElementCountCorrectly) {
2212
- // EXPECT_EQ(0, a_.size());
2213
- // EXPECT_EQ(1, b_.size());
2300
+ // EXPECT_EQ(a_.size(), 0);
2301
+ // EXPECT_EQ(b_.size(), 1);
2214
2302
  // }
2215
2303
 
2216
2304
  #define TEST_F(test_fixture, test_name)\
2217
2305
  GTEST_TEST_(test_fixture, test_name, test_fixture, \
2218
2306
  ::testing::internal::GetTypeId<test_fixture>())
2219
2307
 
2308
+ // Returns a path to temporary directory.
2309
+ // Tries to determine an appropriate directory for the platform.
2310
+ GTEST_API_ std::string TempDir();
2311
+
2312
+ #ifdef _MSC_VER
2313
+ # pragma warning(pop)
2314
+ #endif
2315
+
2220
2316
  } // namespace testing
2221
2317
 
2222
2318
  // Use this function in main() to run all tests. It returns 0 if all
@@ -27,7 +27,7 @@
27
27
  // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
28
  // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
29
 
30
- // This file is AUTOMATICALLY GENERATED on 10/31/2011 by command
30
+ // This file is AUTOMATICALLY GENERATED on 01/02/2018 by command
31
31
  // 'gen_gtest_pred_impl.py 5'. DO NOT EDIT BY HAND!
32
32
  //
33
33
  // Implements a family of generic predicate assertion macros.
@@ -35,10 +35,9 @@
35
35
  #ifndef GTEST_INCLUDE_GTEST_GTEST_PRED_IMPL_H_
36
36
  #define GTEST_INCLUDE_GTEST_GTEST_PRED_IMPL_H_
37
37
 
38
- // Makes sure this header is not included before gtest.h.
39
- #ifndef GTEST_INCLUDE_GTEST_GTEST_H_
40
- # error Do not include gtest_pred_impl.h directly. Include gtest.h instead.
41
- #endif // GTEST_INCLUDE_GTEST_GTEST_H_
38
+ #include "gtest/gtest.h"
39
+
40
+ namespace testing {
42
41
 
43
42
  // This header implements a family of generic predicate assertion
44
43
  // macros:
@@ -66,8 +65,6 @@
66
65
  // We also define the EXPECT_* variations.
67
66
  //
68
67
  // For now we only support predicates whose arity is at most 5.
69
- // Please email googletestframework@googlegroups.com if you need
70
- // support for higher arities.
71
68
 
72
69
  // GTEST_ASSERT_ is the basic statement to which all of the assertions
73
70
  // in this file reduce. Don't use this in your code.
@@ -355,4 +352,6 @@ AssertionResult AssertPred5Helper(const char* pred_text,
355
352
 
356
353
 
357
354
 
355
+ } // namespace testing
356
+
358
357
  #endif // GTEST_INCLUDE_GTEST_GTEST_PRED_IMPL_H_
@@ -29,7 +29,7 @@
29
29
  //
30
30
  // Author: wan@google.com (Zhanyong Wan)
31
31
  //
32
- // Google C++ Testing Framework definitions useful in production code.
32
+ // Google C++ Testing and Mocking Framework definitions useful in production code.
33
33
 
34
34
  #ifndef GTEST_INCLUDE_GTEST_GTEST_PROD_H_
35
35
  #define GTEST_INCLUDE_GTEST_GTEST_PROD_H_
@@ -40,17 +40,20 @@
40
40
  //
41
41
  // class MyClass {
42
42
  // private:
43
- // void MyMethod();
44
- // FRIEND_TEST(MyClassTest, MyMethod);
43
+ // void PrivateMethod();
44
+ // FRIEND_TEST(MyClassTest, PrivateMethodWorks);
45
45
  // };
46
46
  //
47
47
  // class MyClassTest : public testing::Test {
48
48
  // // ...
49
49
  // };
50
50
  //
51
- // TEST_F(MyClassTest, MyMethod) {
52
- // // Can call MyClass::MyMethod() here.
51
+ // TEST_F(MyClassTest, PrivateMethodWorks) {
52
+ // // Can call MyClass::PrivateMethod() here.
53
53
  // }
54
+ //
55
+ // Note: The test class must be in the same namespace as the class being tested.
56
+ // For example, putting MyClassTest in an anonymous namespace will not work.
54
57
 
55
58
  #define FRIEND_TEST(test_case_name, test_name)\
56
59
  friend class test_case_name##_##test_name##_Test