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
@@ -26,14 +26,12 @@
26
26
  // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
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
- //
30
- // Authors: keith.ray@gmail.com (Keith Ray)
31
29
 
32
- #include "gtest/gtest-message.h"
33
30
  #include "gtest/internal/gtest-filepath.h"
34
- #include "gtest/internal/gtest-port.h"
35
31
 
36
32
  #include <stdlib.h>
33
+ #include "gtest/internal/gtest-port.h"
34
+ #include "gtest/gtest-message.h"
37
35
 
38
36
  #if GTEST_OS_WINDOWS_MOBILE
39
37
  # include <windows.h>
@@ -48,6 +46,8 @@
48
46
  # include <climits> // Some Linux distributions define PATH_MAX here.
49
47
  #endif // GTEST_OS_WINDOWS_MOBILE
50
48
 
49
+ #include "gtest/internal/gtest-string.h"
50
+
51
51
  #if GTEST_OS_WINDOWS
52
52
  # define GTEST_PATH_MAX_ _MAX_PATH
53
53
  #elif defined(PATH_MAX)
@@ -58,8 +58,6 @@
58
58
  # define GTEST_PATH_MAX_ _POSIX_PATH_MAX
59
59
  #endif // GTEST_OS_WINDOWS
60
60
 
61
- #include "gtest/internal/gtest-string.h"
62
-
63
61
  namespace testing {
64
62
  namespace internal {
65
63
 
@@ -130,7 +128,7 @@ FilePath FilePath::RemoveExtension(const char* extension) const {
130
128
  return *this;
131
129
  }
132
130
 
133
- // Returns a pointer to the last occurence of a valid path separator in
131
+ // Returns a pointer to the last occurrence of a valid path separator in
134
132
  // the FilePath. On Windows, for example, both '/' and '\' are valid path
135
133
  // separators. Returns NULL if no path separator was found.
136
134
  const char* FilePath::FindLastPathSeparator() const {
@@ -37,14 +37,6 @@
37
37
  #ifndef GTEST_SRC_GTEST_INTERNAL_INL_H_
38
38
  #define GTEST_SRC_GTEST_INTERNAL_INL_H_
39
39
 
40
- // GTEST_IMPLEMENTATION_ is defined to 1 iff the current translation unit is
41
- // part of Google Test's implementation; otherwise it's undefined.
42
- #if !GTEST_IMPLEMENTATION_
43
- // If this file is included from the user's code, just say no.
44
- # error "gtest-internal-inl.h is part of Google Test's internal implementation."
45
- # error "It must not be included except by Google Test itself."
46
- #endif // GTEST_IMPLEMENTATION_
47
-
48
40
  #ifndef _WIN32_WCE
49
41
  # include <errno.h>
50
42
  #endif // !_WIN32_WCE
@@ -67,7 +59,7 @@
67
59
  # include <windows.h> // NOLINT
68
60
  #endif // GTEST_OS_WINDOWS
69
61
 
70
- #include "gtest/gtest.h" // NOLINT
62
+ #include "gtest/gtest.h"
71
63
  #include "gtest/gtest-spi.h"
72
64
 
73
65
  namespace testing {
@@ -94,6 +86,7 @@ const char kFilterFlag[] = "filter";
94
86
  const char kListTestsFlag[] = "list_tests";
95
87
  const char kOutputFlag[] = "output";
96
88
  const char kPrintTimeFlag[] = "print_time";
89
+ const char kPrintUTF8Flag[] = "print_utf8";
97
90
  const char kRandomSeedFlag[] = "random_seed";
98
91
  const char kRepeatFlag[] = "repeat";
99
92
  const char kShuffleFlag[] = "shuffle";
@@ -174,6 +167,7 @@ class GTestFlagSaver {
174
167
  list_tests_ = GTEST_FLAG(list_tests);
175
168
  output_ = GTEST_FLAG(output);
176
169
  print_time_ = GTEST_FLAG(print_time);
170
+ print_utf8_ = GTEST_FLAG(print_utf8);
177
171
  random_seed_ = GTEST_FLAG(random_seed);
178
172
  repeat_ = GTEST_FLAG(repeat);
179
173
  shuffle_ = GTEST_FLAG(shuffle);
@@ -195,6 +189,7 @@ class GTestFlagSaver {
195
189
  GTEST_FLAG(list_tests) = list_tests_;
196
190
  GTEST_FLAG(output) = output_;
197
191
  GTEST_FLAG(print_time) = print_time_;
192
+ GTEST_FLAG(print_utf8) = print_utf8_;
198
193
  GTEST_FLAG(random_seed) = random_seed_;
199
194
  GTEST_FLAG(repeat) = repeat_;
200
195
  GTEST_FLAG(shuffle) = shuffle_;
@@ -216,6 +211,7 @@ class GTestFlagSaver {
216
211
  bool list_tests_;
217
212
  std::string output_;
218
213
  bool print_time_;
214
+ bool print_utf8_;
219
215
  internal::Int32 random_seed_;
220
216
  internal::Int32 repeat_;
221
217
  bool shuffle_;
@@ -426,7 +422,7 @@ class OsStackTraceGetterInterface {
426
422
  // in the trace.
427
423
  // skip_count - the number of top frames to be skipped; doesn't count
428
424
  // against max_depth.
429
- virtual string CurrentStackTrace(int max_depth, int skip_count) = 0;
425
+ virtual std::string CurrentStackTrace(int max_depth, int skip_count) = 0;
430
426
 
431
427
  // UponLeavingGTest() should be called immediately before Google Test calls
432
428
  // user code. It saves some information about the current stack that
@@ -446,7 +442,7 @@ class OsStackTraceGetter : public OsStackTraceGetterInterface {
446
442
  public:
447
443
  OsStackTraceGetter() {}
448
444
 
449
- virtual string CurrentStackTrace(int max_depth, int skip_count);
445
+ virtual std::string CurrentStackTrace(int max_depth, int skip_count);
450
446
  virtual void UponLeavingGTest();
451
447
 
452
448
  private:
@@ -664,13 +660,11 @@ class GTEST_API_ UnitTestImpl {
664
660
  tear_down_tc)->AddTestInfo(test_info);
665
661
  }
666
662
 
667
- #if GTEST_HAS_PARAM_TEST
668
663
  // Returns ParameterizedTestCaseRegistry object used to keep track of
669
664
  // value-parameterized tests and instantiate and register them.
670
665
  internal::ParameterizedTestCaseRegistry& parameterized_test_registry() {
671
666
  return parameterized_test_registry_;
672
667
  }
673
- #endif // GTEST_HAS_PARAM_TEST
674
668
 
675
669
  // Sets the TestCase object for the test that's currently running.
676
670
  void set_current_test_case(TestCase* a_current_test_case) {
@@ -845,14 +839,12 @@ class GTEST_API_ UnitTestImpl {
845
839
  // shuffled order.
846
840
  std::vector<int> test_case_indices_;
847
841
 
848
- #if GTEST_HAS_PARAM_TEST
849
842
  // ParameterizedTestRegistry object used to register value-parameterized
850
843
  // tests.
851
844
  internal::ParameterizedTestCaseRegistry parameterized_test_registry_;
852
845
 
853
846
  // Indicates whether RegisterParameterizedTests() has been called already.
854
847
  bool parameterized_tests_registered_;
855
- #endif // GTEST_HAS_PARAM_TEST
856
848
 
857
849
  // Index of the last death test case registered. Initially -1.
858
850
  int last_death_test_case_;
@@ -1032,7 +1024,7 @@ class TestResultAccessor {
1032
1024
  #if GTEST_CAN_STREAM_RESULTS_
1033
1025
 
1034
1026
  // Streams test results to the given port on the given host machine.
1035
- class GTEST_API_ StreamingListener : public EmptyTestEventListener {
1027
+ class StreamingListener : public EmptyTestEventListener {
1036
1028
  public:
1037
1029
  // Abstract base class for writing strings to a socket.
1038
1030
  class AbstractSocketWriter {
@@ -1040,21 +1032,19 @@ class GTEST_API_ StreamingListener : public EmptyTestEventListener {
1040
1032
  virtual ~AbstractSocketWriter() {}
1041
1033
 
1042
1034
  // Sends a string to the socket.
1043
- virtual void Send(const string& message) = 0;
1035
+ virtual void Send(const std::string& message) = 0;
1044
1036
 
1045
1037
  // Closes the socket.
1046
1038
  virtual void CloseConnection() {}
1047
1039
 
1048
1040
  // Sends a string and a newline to the socket.
1049
- void SendLn(const string& message) {
1050
- Send(message + "\n");
1051
- }
1041
+ void SendLn(const std::string& message) { Send(message + "\n"); }
1052
1042
  };
1053
1043
 
1054
1044
  // Concrete class for actually writing strings to a socket.
1055
1045
  class SocketWriter : public AbstractSocketWriter {
1056
1046
  public:
1057
- SocketWriter(const string& host, const string& port)
1047
+ SocketWriter(const std::string& host, const std::string& port)
1058
1048
  : sockfd_(-1), host_name_(host), port_num_(port) {
1059
1049
  MakeConnection();
1060
1050
  }
@@ -1065,7 +1055,7 @@ class GTEST_API_ StreamingListener : public EmptyTestEventListener {
1065
1055
  }
1066
1056
 
1067
1057
  // Sends a string to the socket.
1068
- virtual void Send(const string& message) {
1058
+ virtual void Send(const std::string& message) {
1069
1059
  GTEST_CHECK_(sockfd_ != -1)
1070
1060
  << "Send() can be called only when there is a connection.";
1071
1061
 
@@ -1091,17 +1081,19 @@ class GTEST_API_ StreamingListener : public EmptyTestEventListener {
1091
1081
  }
1092
1082
 
1093
1083
  int sockfd_; // socket file descriptor
1094
- const string host_name_;
1095
- const string port_num_;
1084
+ const std::string host_name_;
1085
+ const std::string port_num_;
1096
1086
 
1097
1087
  GTEST_DISALLOW_COPY_AND_ASSIGN_(SocketWriter);
1098
1088
  }; // class SocketWriter
1099
1089
 
1100
1090
  // Escapes '=', '&', '%', and '\n' characters in str as "%xx".
1101
- static string UrlEncode(const char* str);
1091
+ static std::string UrlEncode(const char* str);
1102
1092
 
1103
- StreamingListener(const string& host, const string& port)
1104
- : socket_writer_(new SocketWriter(host, port)) { Start(); }
1093
+ StreamingListener(const std::string& host, const std::string& port)
1094
+ : socket_writer_(new SocketWriter(host, port)) {
1095
+ Start();
1096
+ }
1105
1097
 
1106
1098
  explicit StreamingListener(AbstractSocketWriter* socket_writer)
1107
1099
  : socket_writer_(socket_writer) { Start(); }
@@ -1162,13 +1154,13 @@ class GTEST_API_ StreamingListener : public EmptyTestEventListener {
1162
1154
 
1163
1155
  private:
1164
1156
  // Sends the given message and a newline to the socket.
1165
- void SendLn(const string& message) { socket_writer_->SendLn(message); }
1157
+ void SendLn(const std::string& message) { socket_writer_->SendLn(message); }
1166
1158
 
1167
1159
  // Called at the start of streaming to notify the receiver what
1168
1160
  // protocol we are using.
1169
1161
  void Start() { SendLn("gtest_streaming_protocol_version=1.0"); }
1170
1162
 
1171
- string FormatBool(bool value) { return value ? "1" : "0"; }
1163
+ std::string FormatBool(bool value) { return value ? "1" : "0"; }
1172
1164
 
1173
1165
  const scoped_ptr<AbstractSocketWriter> socket_writer_;
1174
1166
 
@@ -63,19 +63,16 @@
63
63
  # include <sys/types.h>
64
64
  #endif // GTEST_OS_AIX
65
65
 
66
+ #if GTEST_OS_FUCHSIA
67
+ # include <zircon/process.h>
68
+ # include <zircon/syscalls.h>
69
+ #endif // GTEST_OS_FUCHSIA
70
+
66
71
  #include "gtest/gtest-spi.h"
67
72
  #include "gtest/gtest-message.h"
68
73
  #include "gtest/internal/gtest-internal.h"
69
74
  #include "gtest/internal/gtest-string.h"
70
-
71
- // Indicates that this translation unit is part of Google Test's
72
- // implementation. It must come before gtest-internal-inl.h is
73
- // included, or there will be a compiler error. This trick exists to
74
- // prevent the accidental inclusion of gtest-internal-inl.h in the
75
- // user's code.
76
- #define GTEST_IMPLEMENTATION_ 1
77
75
  #include "src/gtest-internal-inl.h"
78
- #undef GTEST_IMPLEMENTATION_
79
76
 
80
77
  namespace testing {
81
78
  namespace internal {
@@ -93,7 +90,7 @@ const int kStdErrFileno = STDERR_FILENO;
93
90
 
94
91
  namespace {
95
92
  template <typename T>
96
- T ReadProcFileField(const string& filename, int field) {
93
+ T ReadProcFileField(const std::string& filename, int field) {
97
94
  std::string dummy;
98
95
  std::ifstream file(filename.c_str());
99
96
  while (field-- > 0) {
@@ -107,7 +104,7 @@ T ReadProcFileField(const string& filename, int field) {
107
104
 
108
105
  // Returns the number of active threads, or 0 when there is an error.
109
106
  size_t GetThreadCount() {
110
- const string filename =
107
+ const std::string filename =
111
108
  (Message() << "/proc/" << getpid() << "/stat").GetString();
112
109
  return ReadProcFileField<int>(filename, 19);
113
110
  }
@@ -164,6 +161,25 @@ size_t GetThreadCount() {
164
161
  }
165
162
  }
166
163
 
164
+ #elif GTEST_OS_FUCHSIA
165
+
166
+ size_t GetThreadCount() {
167
+ int dummy_buffer;
168
+ size_t avail;
169
+ zx_status_t status = zx_object_get_info(
170
+ zx_process_self(),
171
+ ZX_INFO_PROCESS_THREADS,
172
+ &dummy_buffer,
173
+ 0,
174
+ nullptr,
175
+ &avail);
176
+ if (status == ZX_OK) {
177
+ return avail;
178
+ } else {
179
+ return 0;
180
+ }
181
+ }
182
+
167
183
  #else
168
184
 
169
185
  size_t GetThreadCount() {
@@ -496,7 +512,7 @@ class ThreadLocalRegistryImpl {
496
512
  FALSE,
497
513
  thread_id);
498
514
  GTEST_CHECK_(thread != NULL);
499
- // We need to to pass a valid thread ID pointer into CreateThread for it
515
+ // We need to pass a valid thread ID pointer into CreateThread for it
500
516
  // to work correctly under Win98.
501
517
  DWORD watcher_thread_id;
502
518
  HANDLE watcher_thread = ::CreateThread(
@@ -671,7 +687,7 @@ bool AtomMatchesChar(bool escaped, char pattern_char, char ch) {
671
687
  }
672
688
 
673
689
  // Helper function used by ValidateRegex() to format error messages.
674
- std::string FormatRegexSyntaxError(const char* regex, int index) {
690
+ static std::string FormatRegexSyntaxError(const char* regex, int index) {
675
691
  return (Message() << "Syntax error at index " << index
676
692
  << " in simple regular expression \"" << regex << "\": ").GetString();
677
693
  }
@@ -923,6 +939,7 @@ GTestLog::~GTestLog() {
923
939
  posix::Abort();
924
940
  }
925
941
  }
942
+
926
943
  // Disable Microsoft deprecation warnings for POSIX functions called from
927
944
  // this class (creat, dup, dup2, and close)
928
945
  GTEST_DISABLE_MSC_WARNINGS_PUSH_(4996)
@@ -1015,7 +1032,8 @@ static CapturedStream* g_captured_stderr = NULL;
1015
1032
  static CapturedStream* g_captured_stdout = NULL;
1016
1033
 
1017
1034
  // Starts capturing an output stream (stdout/stderr).
1018
- void CaptureStream(int fd, const char* stream_name, CapturedStream** stream) {
1035
+ static void CaptureStream(int fd, const char* stream_name,
1036
+ CapturedStream** stream) {
1019
1037
  if (*stream != NULL) {
1020
1038
  GTEST_LOG_(FATAL) << "Only one " << stream_name
1021
1039
  << " capturer can exist at a time.";
@@ -1024,7 +1042,7 @@ void CaptureStream(int fd, const char* stream_name, CapturedStream** stream) {
1024
1042
  }
1025
1043
 
1026
1044
  // Stops capturing the output stream and returns the captured string.
1027
- std::string GetCapturedStream(CapturedStream** captured_stream) {
1045
+ static std::string GetCapturedStream(CapturedStream** captured_stream) {
1028
1046
  const std::string content = (*captured_stream)->GetCapturedString();
1029
1047
 
1030
1048
  delete *captured_stream;
@@ -1055,23 +1073,9 @@ std::string GetCapturedStderr() {
1055
1073
 
1056
1074
  #endif // GTEST_HAS_STREAM_REDIRECTION
1057
1075
 
1058
- std::string TempDir() {
1059
- #if GTEST_OS_WINDOWS_MOBILE
1060
- return "\\temp\\";
1061
- #elif GTEST_OS_WINDOWS
1062
- const char* temp_dir = posix::GetEnv("TEMP");
1063
- if (temp_dir == NULL || temp_dir[0] == '\0')
1064
- return "\\temp\\";
1065
- else if (temp_dir[strlen(temp_dir) - 1] == '\\')
1066
- return temp_dir;
1067
- else
1068
- return std::string(temp_dir) + "\\";
1069
- #elif GTEST_OS_LINUX_ANDROID
1070
- return "/sdcard/";
1071
- #else
1072
- return "/tmp/";
1073
- #endif // GTEST_OS_WINDOWS_MOBILE
1074
- }
1076
+
1077
+
1078
+
1075
1079
 
1076
1080
  size_t GetFileSize(FILE* file) {
1077
1081
  fseek(file, 0, SEEK_END);
@@ -1101,22 +1105,36 @@ std::string ReadEntireFile(FILE* file) {
1101
1105
  }
1102
1106
 
1103
1107
  #if GTEST_HAS_DEATH_TEST
1108
+ static const std::vector<std::string>* g_injected_test_argvs = NULL; // Owned.
1104
1109
 
1105
- static const ::std::vector<testing::internal::string>* g_injected_test_argvs =
1106
- NULL; // Owned.
1107
-
1108
- void SetInjectableArgvs(const ::std::vector<testing::internal::string>* argvs) {
1109
- if (g_injected_test_argvs != argvs)
1110
- delete g_injected_test_argvs;
1111
- g_injected_test_argvs = argvs;
1112
- }
1113
-
1114
- const ::std::vector<testing::internal::string>& GetInjectableArgvs() {
1110
+ std::vector<std::string> GetInjectableArgvs() {
1115
1111
  if (g_injected_test_argvs != NULL) {
1116
1112
  return *g_injected_test_argvs;
1117
1113
  }
1118
1114
  return GetArgvs();
1119
1115
  }
1116
+
1117
+ void SetInjectableArgvs(const std::vector<std::string>* new_argvs) {
1118
+ if (g_injected_test_argvs != new_argvs) delete g_injected_test_argvs;
1119
+ g_injected_test_argvs = new_argvs;
1120
+ }
1121
+
1122
+ void SetInjectableArgvs(const std::vector<std::string>& new_argvs) {
1123
+ SetInjectableArgvs(
1124
+ new std::vector<std::string>(new_argvs.begin(), new_argvs.end()));
1125
+ }
1126
+
1127
+ #if GTEST_HAS_GLOBAL_STRING
1128
+ void SetInjectableArgvs(const std::vector< ::string>& new_argvs) {
1129
+ SetInjectableArgvs(
1130
+ new std::vector<std::string>(new_argvs.begin(), new_argvs.end()));
1131
+ }
1132
+ #endif // GTEST_HAS_GLOBAL_STRING
1133
+
1134
+ void ClearInjectableArgvs() {
1135
+ delete g_injected_test_argvs;
1136
+ g_injected_test_argvs = NULL;
1137
+ }
1120
1138
  #endif // GTEST_HAS_DEATH_TEST
1121
1139
 
1122
1140
  #if GTEST_OS_WINDOWS_MOBILE
@@ -1191,11 +1209,12 @@ bool ParseInt32(const Message& src_text, const char* str, Int32* value) {
1191
1209
  bool BoolFromGTestEnv(const char* flag, bool default_value) {
1192
1210
  #if defined(GTEST_GET_BOOL_FROM_ENV_)
1193
1211
  return GTEST_GET_BOOL_FROM_ENV_(flag, default_value);
1194
- #endif // defined(GTEST_GET_BOOL_FROM_ENV_)
1212
+ #else
1195
1213
  const std::string env_var = FlagToEnvVar(flag);
1196
1214
  const char* const string_value = posix::GetEnv(env_var.c_str());
1197
1215
  return string_value == NULL ?
1198
1216
  default_value : strcmp(string_value, "0") != 0;
1217
+ #endif // defined(GTEST_GET_BOOL_FROM_ENV_)
1199
1218
  }
1200
1219
 
1201
1220
  // Reads and returns a 32-bit integer stored in the environment
@@ -1204,7 +1223,7 @@ bool BoolFromGTestEnv(const char* flag, bool default_value) {
1204
1223
  Int32 Int32FromGTestEnv(const char* flag, Int32 default_value) {
1205
1224
  #if defined(GTEST_GET_INT32_FROM_ENV_)
1206
1225
  return GTEST_GET_INT32_FROM_ENV_(flag, default_value);
1207
- #endif // defined(GTEST_GET_INT32_FROM_ENV_)
1226
+ #else
1208
1227
  const std::string env_var = FlagToEnvVar(flag);
1209
1228
  const char* const string_value = posix::GetEnv(env_var.c_str());
1210
1229
  if (string_value == NULL) {
@@ -1222,37 +1241,36 @@ Int32 Int32FromGTestEnv(const char* flag, Int32 default_value) {
1222
1241
  }
1223
1242
 
1224
1243
  return result;
1244
+ #endif // defined(GTEST_GET_INT32_FROM_ENV_)
1245
+ }
1246
+
1247
+ // As a special case for the 'output' flag, if GTEST_OUTPUT is not
1248
+ // set, we look for XML_OUTPUT_FILE, which is set by the Bazel build
1249
+ // system. The value of XML_OUTPUT_FILE is a filename without the
1250
+ // "xml:" prefix of GTEST_OUTPUT.
1251
+ // Note that this is meant to be called at the call site so it does
1252
+ // not check that the flag is 'output'
1253
+ // In essence this checks an env variable called XML_OUTPUT_FILE
1254
+ // and if it is set we prepend "xml:" to its value, if it not set we return ""
1255
+ std::string OutputFlagAlsoCheckEnvVar(){
1256
+ std::string default_value_for_output_flag = "";
1257
+ const char* xml_output_file_env = posix::GetEnv("XML_OUTPUT_FILE");
1258
+ if (NULL != xml_output_file_env) {
1259
+ default_value_for_output_flag = std::string("xml:") + xml_output_file_env;
1260
+ }
1261
+ return default_value_for_output_flag;
1225
1262
  }
1226
1263
 
1227
1264
  // Reads and returns the string environment variable corresponding to
1228
1265
  // the given flag; if it's not set, returns default_value.
1229
- std::string StringFromGTestEnv(const char* flag, const char* default_value) {
1266
+ const char* StringFromGTestEnv(const char* flag, const char* default_value) {
1230
1267
  #if defined(GTEST_GET_STRING_FROM_ENV_)
1231
1268
  return GTEST_GET_STRING_FROM_ENV_(flag, default_value);
1232
- #endif // defined(GTEST_GET_STRING_FROM_ENV_)
1269
+ #else
1233
1270
  const std::string env_var = FlagToEnvVar(flag);
1234
- const char* value = posix::GetEnv(env_var.c_str());
1235
- if (value != NULL) {
1236
- return value;
1237
- }
1238
-
1239
- // As a special case for the 'output' flag, if GTEST_OUTPUT is not
1240
- // set, we look for XML_OUTPUT_FILE, which is set by the Bazel build
1241
- // system. The value of XML_OUTPUT_FILE is a filename without the
1242
- // "xml:" prefix of GTEST_OUTPUT.
1243
- //
1244
- // The net priority order after flag processing is thus:
1245
- // --gtest_output command line flag
1246
- // GTEST_OUTPUT environment variable
1247
- // XML_OUTPUT_FILE environment variable
1248
- // 'default_value'
1249
- if (strcmp(flag, "output") == 0) {
1250
- value = posix::GetEnv("XML_OUTPUT_FILE");
1251
- if (value != NULL) {
1252
- return std::string("xml:") + value;
1253
- }
1254
- }
1255
- return default_value;
1271
+ const char* const value = posix::GetEnv(env_var.c_str());
1272
+ return value == NULL ? default_value : value;
1273
+ #endif // defined(GTEST_GET_STRING_FROM_ENV_)
1256
1274
  }
1257
1275
 
1258
1276
  } // namespace internal