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.
- checksums.yaml +4 -4
- data/ext/rj_schema/rapidjson/CMakeLists.txt +9 -4
- data/ext/rj_schema/rapidjson/RapidJSONConfig.cmake.in +10 -0
- data/ext/rj_schema/rapidjson/appveyor.yml +22 -9
- data/ext/rj_schema/rapidjson/bin/data/abcde.txt +1 -0
- data/ext/rj_schema/rapidjson/bin/unittestschema/address.json +139 -0
- data/ext/rj_schema/rapidjson/bin/unittestschema/allOf_address.json +7 -0
- data/ext/rj_schema/rapidjson/bin/unittestschema/anyOf_address.json +7 -0
- data/ext/rj_schema/rapidjson/bin/unittestschema/oneOf_address.json +7 -0
- data/ext/rj_schema/rapidjson/contrib/natvis/rapidjson.natvis +2 -2
- data/ext/rj_schema/rapidjson/doc/dom.md +1 -0
- data/ext/rj_schema/rapidjson/doc/dom.zh-cn.md +1 -0
- data/ext/rj_schema/rapidjson/doc/faq.md +3 -3
- data/ext/rj_schema/rapidjson/doc/faq.zh-cn.md +8 -8
- data/ext/rj_schema/rapidjson/doc/internals.md +1 -1
- data/ext/rj_schema/rapidjson/doc/internals.zh-cn.md +2 -2
- data/ext/rj_schema/rapidjson/doc/pointer.zh-cn.md +1 -1
- data/ext/rj_schema/rapidjson/doc/sax.md +1 -1
- data/ext/rj_schema/rapidjson/doc/sax.zh-cn.md +2 -2
- data/ext/rj_schema/rapidjson/doc/stream.md +1 -1
- data/ext/rj_schema/rapidjson/doc/tutorial.md +1 -1
- data/ext/rj_schema/rapidjson/doc/tutorial.zh-cn.md +7 -6
- data/ext/rj_schema/rapidjson/example/CMakeLists.txt +1 -0
- data/ext/rj_schema/rapidjson/example/schemavalidator/schemavalidator.cpp +118 -0
- data/ext/rj_schema/rapidjson/example/sortkeys/sortkeys.cpp +62 -0
- data/ext/rj_schema/rapidjson/example/tutorial/tutorial.cpp +1 -1
- data/ext/rj_schema/rapidjson/include/rapidjson/allocators.h +6 -6
- data/ext/rj_schema/rapidjson/include/rapidjson/cursorstreamwrapper.h +1 -1
- data/ext/rj_schema/rapidjson/include/rapidjson/document.h +124 -35
- data/ext/rj_schema/rapidjson/include/rapidjson/encodedstream.h +1 -1
- data/ext/rj_schema/rapidjson/include/rapidjson/encodings.h +1 -1
- data/ext/rj_schema/rapidjson/include/rapidjson/error/en.h +49 -1
- data/ext/rj_schema/rapidjson/include/rapidjson/error/error.h +56 -1
- data/ext/rj_schema/rapidjson/include/rapidjson/filereadstream.h +2 -2
- data/ext/rj_schema/rapidjson/include/rapidjson/filewritestream.h +1 -1
- data/ext/rj_schema/rapidjson/include/rapidjson/fwd.h +2 -2
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/biginteger.h +2 -2
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/clzll.h +71 -0
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/diyfp.h +3 -17
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/dtoa.h +1 -1
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/ieee754.h +1 -1
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/itoa.h +1 -1
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/meta.h +1 -1
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/pow10.h +1 -1
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/regex.h +20 -13
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/stack.h +4 -3
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/strfunc.h +1 -1
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/strtod.h +1 -1
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/swap.h +1 -1
- data/ext/rj_schema/rapidjson/include/rapidjson/istreamwrapper.h +50 -35
- data/ext/rj_schema/rapidjson/include/rapidjson/memorybuffer.h +1 -1
- data/ext/rj_schema/rapidjson/include/rapidjson/memorystream.h +1 -1
- data/ext/rj_schema/rapidjson/include/rapidjson/ostreamwrapper.h +1 -1
- data/ext/rj_schema/rapidjson/include/rapidjson/pointer.h +63 -5
- data/ext/rj_schema/rapidjson/include/rapidjson/prettywriter.h +2 -2
- data/ext/rj_schema/rapidjson/include/rapidjson/rapidjson.h +63 -1
- data/ext/rj_schema/rapidjson/include/rapidjson/reader.h +67 -53
- data/ext/rj_schema/rapidjson/include/rapidjson/schema.h +318 -164
- data/ext/rj_schema/rapidjson/include/rapidjson/stream.h +1 -1
- data/ext/rj_schema/rapidjson/include/rapidjson/stringbuffer.h +1 -1
- data/ext/rj_schema/rapidjson/include/rapidjson/writer.h +10 -10
- data/ext/rj_schema/rapidjson/readme.md +51 -1
- data/ext/rj_schema/rapidjson/readme.zh-cn.md +2 -2
- data/ext/rj_schema/rapidjson/test/perftest/misctest.cpp +1 -1
- data/ext/rj_schema/rapidjson/test/perftest/perftest.cpp +1 -1
- data/ext/rj_schema/rapidjson/test/perftest/perftest.h +1 -1
- data/ext/rj_schema/rapidjson/test/perftest/platformtest.cpp +2 -2
- data/ext/rj_schema/rapidjson/test/perftest/rapidjsontest.cpp +75 -1
- data/ext/rj_schema/rapidjson/test/unittest/CMakeLists.txt +1 -0
- data/ext/rj_schema/rapidjson/test/unittest/allocatorstest.cpp +1 -1
- data/ext/rj_schema/rapidjson/test/unittest/bigintegertest.cpp +1 -1
- data/ext/rj_schema/rapidjson/test/unittest/clzlltest.cpp +34 -0
- data/ext/rj_schema/rapidjson/test/unittest/cursorstreamwrappertest.cpp +19 -19
- data/ext/rj_schema/rapidjson/test/unittest/documenttest.cpp +1 -1
- data/ext/rj_schema/rapidjson/test/unittest/dtoatest.cpp +1 -1
- data/ext/rj_schema/rapidjson/test/unittest/encodedstreamtest.cpp +1 -1
- data/ext/rj_schema/rapidjson/test/unittest/encodingstest.cpp +1 -1
- data/ext/rj_schema/rapidjson/test/unittest/filestreamtest.cpp +45 -2
- data/ext/rj_schema/rapidjson/test/unittest/fwdtest.cpp +1 -1
- data/ext/rj_schema/rapidjson/test/unittest/istreamwrappertest.cpp +10 -10
- data/ext/rj_schema/rapidjson/test/unittest/itoatest.cpp +8 -8
- data/ext/rj_schema/rapidjson/test/unittest/jsoncheckertest.cpp +1 -1
- data/ext/rj_schema/rapidjson/test/unittest/namespacetest.cpp +1 -1
- data/ext/rj_schema/rapidjson/test/unittest/ostreamwrappertest.cpp +1 -1
- data/ext/rj_schema/rapidjson/test/unittest/pointertest.cpp +157 -16
- data/ext/rj_schema/rapidjson/test/unittest/prettywritertest.cpp +1 -1
- data/ext/rj_schema/rapidjson/test/unittest/readertest.cpp +113 -75
- data/ext/rj_schema/rapidjson/test/unittest/regextest.cpp +2 -1
- data/ext/rj_schema/rapidjson/test/unittest/schematest.cpp +593 -78
- data/ext/rj_schema/rapidjson/test/unittest/simdtest.cpp +1 -1
- data/ext/rj_schema/rapidjson/test/unittest/strfunctest.cpp +1 -1
- data/ext/rj_schema/rapidjson/test/unittest/stringbuffertest.cpp +5 -5
- data/ext/rj_schema/rapidjson/test/unittest/strtodtest.cpp +1 -1
- data/ext/rj_schema/rapidjson/test/unittest/unittest.cpp +1 -1
- data/ext/rj_schema/rapidjson/test/unittest/unittest.h +4 -1
- data/ext/rj_schema/rapidjson/test/unittest/valuetest.cpp +12 -12
- data/ext/rj_schema/rapidjson/test/unittest/writertest.cpp +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/BUILD.bazel +175 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/CMakeLists.txt +18 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/CONTRIBUTING.md +160 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/LICENSE +28 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/Makefile.am +14 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/README.md +16 -35
- data/ext/rj_schema/rapidjson/thirdparty/gtest/WORKSPACE +8 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/appveyor.yml +104 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/ci/build-linux-autotools.sh +44 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/ci/build-linux-bazel.sh +36 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/ci/env-linux.sh +41 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/ci/env-osx.sh +40 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/ci/get-nprocessors.sh +48 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/ci/install-linux.sh +49 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/ci/install-osx.sh +39 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/ci/log-config.sh +51 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/ci/travis.sh +44 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/configure.ac +16 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/CHANGES +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/CMakeLists.txt +72 -32
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/README.md +53 -42
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/cmake/gmock.pc.in +9 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/cmake/gmock_main.pc.in +9 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/configure.ac +4 -4
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/CheatSheet.md +6 -4
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/CookBook.md +117 -132
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/Documentation.md +7 -4
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/ForDummies.md +20 -12
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/FrequentlyAskedQuestions.md +1 -2
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-actions.h +83 -26
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-actions.h +262 -68
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-actions.h.pump +45 -6
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-function-mockers.h +650 -366
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-function-mockers.h.pump +76 -20
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-matchers.h +308 -229
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-matchers.h.pump +18 -15
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-nice-strict.h +87 -26
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-nice-strict.h.pump +33 -16
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-matchers.h +1209 -353
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-more-matchers.h +33 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-spec-builders.h +159 -88
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock.h +2 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-generated-actions.h.pump +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-matchers.h +3 -4
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-generated-internal-utils.h +16 -9
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-internal-utils.h +71 -8
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-port.h +7 -11
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock.sln +14 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock.vcxproj +69 -6
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock_config.props +2 -2
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock_main.vcxproj +69 -6
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock_test.vcxproj +83 -8
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock.sln +14 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock.vcxproj +63 -2
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock_main.vcxproj +63 -2
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock_test.vcxproj +76 -3
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/fuse_gmock_files.py +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/generator/README +4 -5
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/ast.py +3 -3
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/src/gmock-cardinalities.cc +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/src/gmock-internal-utils.cc +36 -6
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/src/gmock-matchers.cc +210 -135
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/src/gmock-spec-builders.cc +108 -48
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/src/gmock.cc +23 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/BUILD.bazel +123 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-actions_test.cc +166 -2
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-cardinalities_test.cc +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-actions_test.cc +64 -62
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-function-mockers_test.cc +43 -18
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-internal-utils_test.cc +11 -9
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-matchers_test.cc +91 -36
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-internal-utils_test.cc +33 -14
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-matchers_test.cc +1286 -167
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-more-actions_test.cc +85 -83
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-nice-strict_test.cc +102 -15
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-spec-builders_test.cc +136 -9
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_link2_test.cc +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_link_test.cc +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_link_test.h +24 -2
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_output_test.py +8 -5
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_output_test_.cc +20 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_output_test_golden.txt +8 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_stress_test.cc +3 -2
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_test.cc +44 -2
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_test_utils.py +5 -7
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/CMakeLists.txt +40 -14
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/Makefile.am +60 -31
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/README.md +232 -171
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/cmake/gtest.pc.in +9 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/cmake/gtest_main.pc.in +10 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/cmake/internal_utils.cmake +54 -16
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/configure.ac +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/Pkgconfig.md +146 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/PumpManual.md +2 -2
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/XcodeGuide.md +6 -6
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/{AdvancedGuide.md → advanced.md} +260 -26
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/{FAQ.md → faq.md} +62 -57
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/{Primer.md → primer.md} +43 -9
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/{Samples.md → samples.md} +0 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-death-test.h +53 -5
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-message.h +1 -2
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-param-test.h +30 -36
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-param-test.h.pump +8 -17
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-printers.h +140 -51
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-spi.h +2 -3
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-typed-test.h +4 -3
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest.h +126 -30
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest_pred_impl.h +6 -7
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest_prod.h +8 -5
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/custom/gtest-port.h +6 -5
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/custom/gtest.h +4 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-death-test-internal.h +13 -57
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-filepath.h +1 -2
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-internal.h +98 -59
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-param-util-generated.h +34 -41
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-param-util-generated.h.pump +3 -10
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-param-util.h +9 -17
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-port-arch.h +8 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-port.h +232 -99
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-string.h +3 -3
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-type-util.h +17 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-type-util.h.pump +17 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest-md.sln +55 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest-md.vcxproj +149 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest-md.vcxproj.filters +18 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest.sln +55 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest.vcxproj +149 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest.vcxproj.filters +18 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_main-md.vcxproj +154 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_main-md.vcxproj.filters +18 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_main.vcxproj +162 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_main.vcxproj.filters +18 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_prod_test-md.vcxproj +199 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_prod_test-md.vcxproj.filters +26 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_prod_test.vcxproj +191 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_prod_test.vcxproj.filters +26 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_unittest-md.vcxproj +188 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_unittest-md.vcxproj.filters +18 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_unittest.vcxproj +180 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_unittest.vcxproj.filters +18 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/prime_tables.h +6 -2
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample1.cc +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample10_unittest.cc +0 -4
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample1_unittest.cc +2 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample2_unittest.cc +2 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample3_unittest.cc +7 -6
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample4_unittest.cc +5 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample5_unittest.cc +3 -3
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample6_unittest.cc +2 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample7_unittest.cc +10 -22
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample8_unittest.cc +2 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample9_unittest.cc +0 -3
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/scripts/fuse_gtest_files.py +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/scripts/gen_gtest_pred_impl.py +10 -10
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/scripts/upload.py +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-all.cc +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-death-test.cc +226 -32
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-filepath.cc +5 -7
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-internal-inl.h +21 -29
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-port.cc +85 -67
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-printers.cc +93 -8
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-test-part.cc +1 -9
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-typed-test.cc +1 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest.cc +622 -164
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest_main.cc +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/BUILD.bazel +396 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-death-test_test.cc +12 -15
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-filepath_test.cc +2 -12
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-listener_test.cc +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-options_test.cc +6 -8
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-param-test2_test.cc +1 -5
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-param-test_test.cc +84 -29
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-param-test_test.h +1 -5
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-port_test.cc +11 -12
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-printers_test.cc +165 -63
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-typed-test2_test.cc +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-typed-test_test.cc +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-unittest-api_test.cc +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_all_test.cc +13 -13
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_assert_by_exception_test.cc +119 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_break_on_failure_unittest.py +1 -3
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_break_on_failure_unittest_.cc +1 -2
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_catch_exceptions_test.py +0 -2
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_catch_exceptions_test_.cc +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_color_test.py +1 -2
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_color_test_.cc +0 -8
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_env_var_test.py +6 -4
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_env_var_test_.cc +0 -2
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_environment_test.cc +0 -3
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_filter_unittest.py +20 -18
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_filter_unittest_.cc +0 -2
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_help_test.py +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_json_outfiles_test.py +162 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_json_output_unittest.py +611 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_json_test_utils.py +60 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_list_tests_unittest.py +4 -4
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_main_unittest.cc +2 -2
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_output_test.py +11 -7
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_output_test_.cc +17 -12
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_output_test_golden_lin.txt +104 -66
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_pred_impl_unittest.cc +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_prod_test.cc +2 -2
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_repeat_test.cc +2 -19
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_stress_test.cc +0 -6
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_test_utils.py +12 -14
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_testbridge_test.py +65 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_testbridge_test_.cc +44 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_throw_on_failure_test.py +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_uninitialized_test.py +4 -5
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_uninitialized_test_.cc +2 -2
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_unittest.cc +240 -149
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_outfile1_test_.cc +0 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_outfile2_test_.cc +0 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_outfiles_test.py +15 -7
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_output_unittest.py +100 -30
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_output_unittest_.cc +0 -2
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_test_utils.py +25 -23
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/production.cc +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/production.h +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Scripts/versiongenerate.py +4 -4
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/gtest.xcodeproj/project.pbxproj +47 -0
- data/ext/rj_schema/rapidjson/travis-doxygen.sh +13 -6
- data/ext/rj_schema/rj_schema.cpp +161 -17
- data/lib/rj_schema.rb +1 -1
- metadata +63 -58
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/DevGuide.md +0 -132
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/CheatSheet.md +0 -525
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/CookBook.md +0 -3250
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/Documentation.md +0 -11
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/ForDummies.md +0 -439
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/FrequentlyAskedQuestions.md +0 -624
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/CheatSheet.md +0 -534
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/CookBook.md +0 -3342
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/Documentation.md +0 -12
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/ForDummies.md +0 -439
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/FrequentlyAskedQuestions.md +0 -628
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/CheatSheet.md +0 -556
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/CookBook.md +0 -3432
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/Documentation.md +0 -12
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/ForDummies.md +0 -439
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/FrequentlyAskedQuestions.md +0 -628
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/DevGuide.md +0 -126
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/Documentation.md +0 -14
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_5_AdvancedGuide.md +0 -2096
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_5_Documentation.md +0 -12
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_5_FAQ.md +0 -886
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_5_Primer.md +0 -497
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_5_PumpManual.md +0 -177
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_5_XcodeGuide.md +0 -93
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_6_AdvancedGuide.md +0 -2178
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_6_Documentation.md +0 -14
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_6_FAQ.md +0 -1038
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_6_Primer.md +0 -501
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_6_PumpManual.md +0 -177
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_6_Samples.md +0 -14
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_6_XcodeGuide.md +0 -93
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_7_AdvancedGuide.md +0 -2181
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_7_Documentation.md +0 -14
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_7_FAQ.md +0 -1082
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_7_Primer.md +0 -501
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_7_PumpManual.md +0 -177
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_7_Samples.md +0 -14
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_7_XcodeGuide.md +0 -93
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest-md.sln +0 -45
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest-md.vcproj +0 -126
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest.sln +0 -45
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest.vcproj +0 -126
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest_main-md.vcproj +0 -129
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest_main.vcproj +0 -129
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest_prod_test-md.vcproj +0 -164
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest_prod_test.vcproj +0 -164
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest_unittest-md.vcproj +0 -147
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest_unittest.vcproj +0 -147
- 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
|
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"
|
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
|
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)) {
|
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
|
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,
|
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
|
-
|
1059
|
-
|
1060
|
-
|
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
|
-
|
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
|
-
#
|
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
|
-
#
|
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
|
-
|
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
|
-
#
|
1269
|
+
#else
|
1233
1270
|
const std::string env_var = FlagToEnvVar(flag);
|
1234
|
-
const char* value = posix::GetEnv(env_var.c_str());
|
1235
|
-
|
1236
|
-
|
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
|