rj_schema 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- metadata +3 -615
- data/ext/rj_schema/rapidjson/CHANGELOG.md +0 -158
- data/ext/rj_schema/rapidjson/CMakeLists.txt +0 -221
- data/ext/rj_schema/rapidjson/CMakeModules/FindGTestSrc.cmake +0 -30
- data/ext/rj_schema/rapidjson/RapidJSON.pc.in +0 -7
- data/ext/rj_schema/rapidjson/RapidJSONConfig.cmake.in +0 -15
- data/ext/rj_schema/rapidjson/RapidJSONConfigVersion.cmake.in +0 -10
- data/ext/rj_schema/rapidjson/appveyor.yml +0 -41
- data/ext/rj_schema/rapidjson/bin/data/glossary.json +0 -22
- data/ext/rj_schema/rapidjson/bin/data/menu.json +0 -27
- data/ext/rj_schema/rapidjson/bin/data/readme.txt +0 -1
- data/ext/rj_schema/rapidjson/bin/data/sample.json +0 -3315
- data/ext/rj_schema/rapidjson/bin/data/webapp.json +0 -88
- data/ext/rj_schema/rapidjson/bin/data/widget.json +0 -26
- data/ext/rj_schema/rapidjson/bin/draft-04/schema +0 -150
- data/ext/rj_schema/rapidjson/bin/encodings/utf16be.json +0 -0
- data/ext/rj_schema/rapidjson/bin/encodings/utf16bebom.json +0 -0
- data/ext/rj_schema/rapidjson/bin/encodings/utf16le.json +0 -0
- data/ext/rj_schema/rapidjson/bin/encodings/utf16lebom.json +0 -0
- data/ext/rj_schema/rapidjson/bin/encodings/utf32be.json +0 -0
- data/ext/rj_schema/rapidjson/bin/encodings/utf32bebom.json +0 -0
- data/ext/rj_schema/rapidjson/bin/encodings/utf32le.json +0 -0
- data/ext/rj_schema/rapidjson/bin/encodings/utf32lebom.json +0 -0
- data/ext/rj_schema/rapidjson/bin/encodings/utf8.json +0 -7
- data/ext/rj_schema/rapidjson/bin/encodings/utf8bom.json +0 -7
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail1.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail10.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail11.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail12.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail13.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail14.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail15.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail16.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail17.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail18.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail19.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail2.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail20.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail21.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail22.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail23.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail24.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail25.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail26.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail27.json +0 -2
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail28.json +0 -2
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail29.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail3.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail30.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail31.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail32.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail33.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail4.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail5.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail6.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail7.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail8.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail9.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/pass1.json +0 -58
- data/ext/rj_schema/rapidjson/bin/jsonchecker/pass2.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/pass3.json +0 -6
- data/ext/rj_schema/rapidjson/bin/jsonchecker/readme.txt +0 -3
- data/ext/rj_schema/rapidjson/bin/jsonschema/LICENSE +0 -19
- data/ext/rj_schema/rapidjson/bin/jsonschema/README.md +0 -148
- data/ext/rj_schema/rapidjson/bin/jsonschema/bin/jsonschema_suite +0 -283
- data/ext/rj_schema/rapidjson/bin/jsonschema/remotes/folder/folderInteger.json +0 -3
- data/ext/rj_schema/rapidjson/bin/jsonschema/remotes/integer.json +0 -3
- data/ext/rj_schema/rapidjson/bin/jsonschema/remotes/subSchemas.json +0 -8
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/additionalItems.json +0 -82
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/additionalProperties.json +0 -88
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/default.json +0 -49
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/dependencies.json +0 -108
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/disallow.json +0 -80
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/divisibleBy.json +0 -60
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/enum.json +0 -71
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/extends.json +0 -94
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/items.json +0 -46
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/maxItems.json +0 -28
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/maxLength.json +0 -33
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/maximum.json +0 -42
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/minItems.json +0 -28
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/minLength.json +0 -33
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/minimum.json +0 -42
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/optional/bignum.json +0 -107
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/optional/format.json +0 -222
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/optional/jsregex.json +0 -18
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/optional/zeroTerminatedFloats.json +0 -15
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/pattern.json +0 -34
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/patternProperties.json +0 -110
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/properties.json +0 -92
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/ref.json +0 -159
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/refRemote.json +0 -74
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/required.json +0 -53
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/type.json +0 -474
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/uniqueItems.json +0 -79
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/additionalItems.json +0 -82
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/additionalProperties.json +0 -88
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/allOf.json +0 -112
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/anyOf.json +0 -68
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/default.json +0 -49
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/definitions.json +0 -32
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/dependencies.json +0 -113
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/enum.json +0 -72
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/items.json +0 -46
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/maxItems.json +0 -28
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/maxLength.json +0 -33
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/maxProperties.json +0 -28
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/maximum.json +0 -42
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/minItems.json +0 -28
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/minLength.json +0 -33
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/minProperties.json +0 -28
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/minimum.json +0 -42
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/multipleOf.json +0 -60
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/not.json +0 -96
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/oneOf.json +0 -68
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/optional/bignum.json +0 -107
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/optional/format.json +0 -148
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/optional/zeroTerminatedFloats.json +0 -15
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/pattern.json +0 -34
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/patternProperties.json +0 -110
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/properties.json +0 -92
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/ref.json +0 -159
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/refRemote.json +0 -74
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/required.json +0 -39
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/type.json +0 -330
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/uniqueItems.json +0 -79
- data/ext/rj_schema/rapidjson/bin/jsonschema/tox.ini +0 -8
- data/ext/rj_schema/rapidjson/bin/types/booleans.json +0 -102
- data/ext/rj_schema/rapidjson/bin/types/floats.json +0 -102
- data/ext/rj_schema/rapidjson/bin/types/guids.json +0 -102
- data/ext/rj_schema/rapidjson/bin/types/integers.json +0 -102
- data/ext/rj_schema/rapidjson/bin/types/mixed.json +0 -592
- data/ext/rj_schema/rapidjson/bin/types/nulls.json +0 -102
- data/ext/rj_schema/rapidjson/bin/types/paragraphs.json +0 -102
- data/ext/rj_schema/rapidjson/bin/types/readme.txt +0 -1
- data/ext/rj_schema/rapidjson/contrib/natvis/LICENSE +0 -45
- data/ext/rj_schema/rapidjson/contrib/natvis/README.md +0 -7
- data/ext/rj_schema/rapidjson/contrib/natvis/rapidjson.natvis +0 -38
- data/ext/rj_schema/rapidjson/doc/CMakeLists.txt +0 -27
- data/ext/rj_schema/rapidjson/doc/Doxyfile.in +0 -2369
- data/ext/rj_schema/rapidjson/doc/Doxyfile.zh-cn.in +0 -2369
- data/ext/rj_schema/rapidjson/doc/diagram/architecture.dot +0 -50
- data/ext/rj_schema/rapidjson/doc/diagram/architecture.png +0 -0
- data/ext/rj_schema/rapidjson/doc/diagram/insituparsing.dot +0 -65
- data/ext/rj_schema/rapidjson/doc/diagram/insituparsing.png +0 -0
- data/ext/rj_schema/rapidjson/doc/diagram/iterative-parser-states-diagram.dot +0 -62
- data/ext/rj_schema/rapidjson/doc/diagram/iterative-parser-states-diagram.png +0 -0
- data/ext/rj_schema/rapidjson/doc/diagram/makefile +0 -8
- data/ext/rj_schema/rapidjson/doc/diagram/move1.dot +0 -47
- data/ext/rj_schema/rapidjson/doc/diagram/move1.png +0 -0
- data/ext/rj_schema/rapidjson/doc/diagram/move2.dot +0 -62
- data/ext/rj_schema/rapidjson/doc/diagram/move2.png +0 -0
- data/ext/rj_schema/rapidjson/doc/diagram/move3.dot +0 -60
- data/ext/rj_schema/rapidjson/doc/diagram/move3.png +0 -0
- data/ext/rj_schema/rapidjson/doc/diagram/normalparsing.dot +0 -56
- data/ext/rj_schema/rapidjson/doc/diagram/normalparsing.png +0 -0
- data/ext/rj_schema/rapidjson/doc/diagram/simpledom.dot +0 -54
- data/ext/rj_schema/rapidjson/doc/diagram/simpledom.png +0 -0
- data/ext/rj_schema/rapidjson/doc/diagram/tutorial.dot +0 -58
- data/ext/rj_schema/rapidjson/doc/diagram/tutorial.png +0 -0
- data/ext/rj_schema/rapidjson/doc/diagram/utilityclass.dot +0 -73
- data/ext/rj_schema/rapidjson/doc/diagram/utilityclass.png +0 -0
- data/ext/rj_schema/rapidjson/doc/dom.md +0 -280
- data/ext/rj_schema/rapidjson/doc/dom.zh-cn.md +0 -284
- data/ext/rj_schema/rapidjson/doc/encoding.md +0 -146
- data/ext/rj_schema/rapidjson/doc/encoding.zh-cn.md +0 -152
- data/ext/rj_schema/rapidjson/doc/faq.md +0 -289
- data/ext/rj_schema/rapidjson/doc/faq.zh-cn.md +0 -290
- data/ext/rj_schema/rapidjson/doc/features.md +0 -104
- data/ext/rj_schema/rapidjson/doc/features.zh-cn.md +0 -103
- data/ext/rj_schema/rapidjson/doc/internals.md +0 -368
- data/ext/rj_schema/rapidjson/doc/internals.zh-cn.md +0 -363
- data/ext/rj_schema/rapidjson/doc/logo/rapidjson.png +0 -0
- data/ext/rj_schema/rapidjson/doc/logo/rapidjson.svg +0 -119
- data/ext/rj_schema/rapidjson/doc/misc/DoxygenLayout.xml +0 -194
- data/ext/rj_schema/rapidjson/doc/misc/doxygenextra.css +0 -274
- data/ext/rj_schema/rapidjson/doc/misc/footer.html +0 -11
- data/ext/rj_schema/rapidjson/doc/misc/header.html +0 -24
- data/ext/rj_schema/rapidjson/doc/npm.md +0 -31
- data/ext/rj_schema/rapidjson/doc/performance.md +0 -26
- data/ext/rj_schema/rapidjson/doc/performance.zh-cn.md +0 -26
- data/ext/rj_schema/rapidjson/doc/pointer.md +0 -234
- data/ext/rj_schema/rapidjson/doc/pointer.zh-cn.md +0 -234
- data/ext/rj_schema/rapidjson/doc/sax.md +0 -509
- data/ext/rj_schema/rapidjson/doc/sax.zh-cn.md +0 -487
- data/ext/rj_schema/rapidjson/doc/schema.md +0 -505
- data/ext/rj_schema/rapidjson/doc/schema.zh-cn.md +0 -237
- data/ext/rj_schema/rapidjson/doc/stream.md +0 -429
- data/ext/rj_schema/rapidjson/doc/stream.zh-cn.md +0 -429
- data/ext/rj_schema/rapidjson/doc/tutorial.md +0 -536
- data/ext/rj_schema/rapidjson/doc/tutorial.zh-cn.md +0 -534
- data/ext/rj_schema/rapidjson/docker/debian/Dockerfile +0 -8
- data/ext/rj_schema/rapidjson/example/CMakeLists.txt +0 -45
- data/ext/rj_schema/rapidjson/example/archiver/archiver.cpp +0 -292
- data/ext/rj_schema/rapidjson/example/archiver/archiver.h +0 -145
- data/ext/rj_schema/rapidjson/example/archiver/archivertest.cpp +0 -287
- data/ext/rj_schema/rapidjson/example/capitalize/capitalize.cpp +0 -67
- data/ext/rj_schema/rapidjson/example/condense/condense.cpp +0 -32
- data/ext/rj_schema/rapidjson/example/filterkey/filterkey.cpp +0 -135
- data/ext/rj_schema/rapidjson/example/filterkeydom/filterkeydom.cpp +0 -170
- data/ext/rj_schema/rapidjson/example/jsonx/jsonx.cpp +0 -207
- data/ext/rj_schema/rapidjson/example/lookaheadparser/lookaheadparser.cpp +0 -350
- data/ext/rj_schema/rapidjson/example/messagereader/messagereader.cpp +0 -105
- data/ext/rj_schema/rapidjson/example/parsebyparts/parsebyparts.cpp +0 -176
- data/ext/rj_schema/rapidjson/example/pretty/pretty.cpp +0 -30
- data/ext/rj_schema/rapidjson/example/prettyauto/prettyauto.cpp +0 -56
- data/ext/rj_schema/rapidjson/example/schemavalidator/schemavalidator.cpp +0 -78
- data/ext/rj_schema/rapidjson/example/serialize/serialize.cpp +0 -173
- data/ext/rj_schema/rapidjson/example/simpledom/simpledom.cpp +0 -29
- data/ext/rj_schema/rapidjson/example/simplepullreader/simplepullreader.cpp +0 -53
- data/ext/rj_schema/rapidjson/example/simplereader/simplereader.cpp +0 -42
- data/ext/rj_schema/rapidjson/example/simplewriter/simplewriter.cpp +0 -36
- data/ext/rj_schema/rapidjson/example/tutorial/tutorial.cpp +0 -151
- data/ext/rj_schema/rapidjson/include/rapidjson/allocators.h +0 -284
- data/ext/rj_schema/rapidjson/include/rapidjson/cursorstreamwrapper.h +0 -78
- data/ext/rj_schema/rapidjson/include/rapidjson/document.h +0 -2648
- data/ext/rj_schema/rapidjson/include/rapidjson/encodedstream.h +0 -299
- data/ext/rj_schema/rapidjson/include/rapidjson/encodings.h +0 -716
- data/ext/rj_schema/rapidjson/include/rapidjson/error/en.h +0 -74
- data/ext/rj_schema/rapidjson/include/rapidjson/error/error.h +0 -161
- data/ext/rj_schema/rapidjson/include/rapidjson/filereadstream.h +0 -99
- data/ext/rj_schema/rapidjson/include/rapidjson/filewritestream.h +0 -104
- data/ext/rj_schema/rapidjson/include/rapidjson/fwd.h +0 -151
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/biginteger.h +0 -290
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/diyfp.h +0 -271
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/dtoa.h +0 -245
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/ieee754.h +0 -78
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/itoa.h +0 -308
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/meta.h +0 -186
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/pow10.h +0 -55
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/regex.h +0 -732
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/stack.h +0 -231
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/strfunc.h +0 -69
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/strtod.h +0 -290
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/swap.h +0 -46
- data/ext/rj_schema/rapidjson/include/rapidjson/istreamwrapper.h +0 -113
- data/ext/rj_schema/rapidjson/include/rapidjson/memorybuffer.h +0 -70
- data/ext/rj_schema/rapidjson/include/rapidjson/memorystream.h +0 -71
- data/ext/rj_schema/rapidjson/include/rapidjson/msinttypes/inttypes.h +0 -316
- data/ext/rj_schema/rapidjson/include/rapidjson/msinttypes/stdint.h +0 -300
- data/ext/rj_schema/rapidjson/include/rapidjson/ostreamwrapper.h +0 -81
- data/ext/rj_schema/rapidjson/include/rapidjson/pointer.h +0 -1357
- data/ext/rj_schema/rapidjson/include/rapidjson/prettywriter.h +0 -277
- data/ext/rj_schema/rapidjson/include/rapidjson/rapidjson.h +0 -630
- data/ext/rj_schema/rapidjson/include/rapidjson/reader.h +0 -2230
- data/ext/rj_schema/rapidjson/include/rapidjson/schema.h +0 -2494
- data/ext/rj_schema/rapidjson/include/rapidjson/stream.h +0 -223
- data/ext/rj_schema/rapidjson/include/rapidjson/stringbuffer.h +0 -121
- data/ext/rj_schema/rapidjson/include/rapidjson/writer.h +0 -710
- data/ext/rj_schema/rapidjson/include_dirs.js +0 -2
- data/ext/rj_schema/rapidjson/library.json +0 -15
- data/ext/rj_schema/rapidjson/license.txt +0 -57
- data/ext/rj_schema/rapidjson/package.json +0 -24
- data/ext/rj_schema/rapidjson/rapidjson.autopkg +0 -77
- data/ext/rj_schema/rapidjson/readme.md +0 -160
- data/ext/rj_schema/rapidjson/readme.zh-cn.md +0 -152
- data/ext/rj_schema/rapidjson/test/CMakeLists.txt +0 -20
- data/ext/rj_schema/rapidjson/test/perftest/CMakeLists.txt +0 -28
- data/ext/rj_schema/rapidjson/test/perftest/misctest.cpp +0 -974
- data/ext/rj_schema/rapidjson/test/perftest/perftest.cpp +0 -24
- data/ext/rj_schema/rapidjson/test/perftest/perftest.h +0 -185
- data/ext/rj_schema/rapidjson/test/perftest/platformtest.cpp +0 -166
- data/ext/rj_schema/rapidjson/test/perftest/rapidjsontest.cpp +0 -472
- data/ext/rj_schema/rapidjson/test/perftest/schematest.cpp +0 -223
- data/ext/rj_schema/rapidjson/test/unittest/CMakeLists.txt +0 -92
- data/ext/rj_schema/rapidjson/test/unittest/allocatorstest.cpp +0 -100
- data/ext/rj_schema/rapidjson/test/unittest/bigintegertest.cpp +0 -138
- data/ext/rj_schema/rapidjson/test/unittest/cursorstreamwrappertest.cpp +0 -115
- data/ext/rj_schema/rapidjson/test/unittest/documenttest.cpp +0 -672
- data/ext/rj_schema/rapidjson/test/unittest/dtoatest.cpp +0 -98
- data/ext/rj_schema/rapidjson/test/unittest/encodedstreamtest.cpp +0 -313
- data/ext/rj_schema/rapidjson/test/unittest/encodingstest.cpp +0 -451
- data/ext/rj_schema/rapidjson/test/unittest/filestreamtest.cpp +0 -112
- data/ext/rj_schema/rapidjson/test/unittest/fwdtest.cpp +0 -230
- data/ext/rj_schema/rapidjson/test/unittest/istreamwrappertest.cpp +0 -181
- data/ext/rj_schema/rapidjson/test/unittest/itoatest.cpp +0 -160
- data/ext/rj_schema/rapidjson/test/unittest/jsoncheckertest.cpp +0 -143
- data/ext/rj_schema/rapidjson/test/unittest/namespacetest.cpp +0 -70
- data/ext/rj_schema/rapidjson/test/unittest/ostreamwrappertest.cpp +0 -92
- data/ext/rj_schema/rapidjson/test/unittest/pointertest.cpp +0 -1529
- data/ext/rj_schema/rapidjson/test/unittest/prettywritertest.cpp +0 -373
- data/ext/rj_schema/rapidjson/test/unittest/readertest.cpp +0 -2190
- data/ext/rj_schema/rapidjson/test/unittest/regextest.cpp +0 -638
- data/ext/rj_schema/rapidjson/test/unittest/schematest.cpp +0 -2072
- data/ext/rj_schema/rapidjson/test/unittest/simdtest.cpp +0 -219
- data/ext/rj_schema/rapidjson/test/unittest/strfunctest.cpp +0 -30
- data/ext/rj_schema/rapidjson/test/unittest/stringbuffertest.cpp +0 -192
- data/ext/rj_schema/rapidjson/test/unittest/strtodtest.cpp +0 -132
- data/ext/rj_schema/rapidjson/test/unittest/unittest.cpp +0 -51
- data/ext/rj_schema/rapidjson/test/unittest/unittest.h +0 -140
- data/ext/rj_schema/rapidjson/test/unittest/valuetest.cpp +0 -1851
- data/ext/rj_schema/rapidjson/test/unittest/writertest.cpp +0 -598
- data/ext/rj_schema/rapidjson/test/valgrind.supp +0 -17
- data/ext/rj_schema/rapidjson/thirdparty/gtest/CMakeLists.txt +0 -16
- data/ext/rj_schema/rapidjson/thirdparty/gtest/README.md +0 -141
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/CHANGES +0 -126
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/CMakeLists.txt +0 -202
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/CONTRIBUTORS +0 -40
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/LICENSE +0 -28
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/Makefile.am +0 -224
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/README.md +0 -333
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/configure.ac +0 -146
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/CheatSheet.md +0 -562
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/CookBook.md +0 -3675
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/DesignDoc.md +0 -280
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/DevGuide.md +0 -132
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/Documentation.md +0 -12
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/ForDummies.md +0 -439
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/FrequentlyAskedQuestions.md +0 -628
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/KnownIssues.md +0 -19
- 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/googlemock/include/gmock/gmock-actions.h +0 -1205
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-cardinalities.h +0 -147
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-actions.h +0 -2377
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-actions.h.pump +0 -794
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-function-mockers.h +0 -1095
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-function-mockers.h.pump +0 -291
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-matchers.h +0 -2179
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-matchers.h.pump +0 -672
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-nice-strict.h +0 -397
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-nice-strict.h.pump +0 -161
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-matchers.h +0 -4399
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-more-actions.h +0 -246
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-more-matchers.h +0 -58
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-spec-builders.h +0 -1847
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock.h +0 -94
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-generated-actions.h +0 -8
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-generated-actions.h.pump +0 -10
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-matchers.h +0 -39
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-port.h +0 -46
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-generated-internal-utils.h +0 -279
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-generated-internal-utils.h.pump +0 -136
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-internal-utils.h +0 -511
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-port.h +0 -91
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/make/Makefile +0 -101
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock.sln +0 -32
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock.vcproj +0 -191
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock_config.vsprops +0 -15
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock_main.vcproj +0 -187
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock_test.vcproj +0 -201
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock.sln +0 -32
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock.vcxproj +0 -82
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock_config.props +0 -19
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock_main.vcxproj +0 -88
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock_test.vcxproj +0 -101
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock.sln +0 -32
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock.vcxproj +0 -84
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock_config.props +0 -19
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock_main.vcxproj +0 -90
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock_test.vcxproj +0 -103
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/fuse_gmock_files.py +0 -240
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/generator/LICENSE +0 -203
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/generator/README +0 -35
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/generator/README.cppclean +0 -115
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/__init__.py +0 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/ast.py +0 -1733
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/gmock_class.py +0 -227
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/gmock_class_test.py +0 -448
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/keywords.py +0 -59
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/tokenize.py +0 -287
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/utils.py +0 -41
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/generator/gmock_gen.py +0 -31
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/gmock-config.in +0 -303
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/gmock_doctor.py +0 -640
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/upload.py +0 -1387
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/upload_gmock.py +0 -78
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/src/gmock-all.cc +0 -47
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/src/gmock-cardinalities.cc +0 -156
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/src/gmock-internal-utils.cc +0 -174
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/src/gmock-matchers.cc +0 -498
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/src/gmock-spec-builders.cc +0 -823
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/src/gmock.cc +0 -183
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/src/gmock_main.cc +0 -54
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-actions_test.cc +0 -1411
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-cardinalities_test.cc +0 -428
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-actions_test.cc +0 -1228
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-function-mockers_test.cc +0 -622
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-internal-utils_test.cc +0 -127
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-matchers_test.cc +0 -1286
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-internal-utils_test.cc +0 -699
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-matchers_test.cc +0 -5648
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-more-actions_test.cc +0 -708
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-nice-strict_test.cc +0 -424
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-port_test.cc +0 -43
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-spec-builders_test.cc +0 -2644
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_all_test.cc +0 -51
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_ex_test.cc +0 -81
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_leak_test.py +0 -108
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_leak_test_.cc +0 -100
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_link2_test.cc +0 -40
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_link_test.cc +0 -40
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_link_test.h +0 -669
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_output_test.py +0 -180
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_output_test_.cc +0 -291
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_output_test_golden.txt +0 -310
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_stress_test.cc +0 -322
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_test.cc +0 -220
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_test_utils.py +0 -112
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/CHANGES +0 -157
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/CMakeLists.txt +0 -286
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/CONTRIBUTORS +0 -37
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/LICENSE +0 -28
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/Makefile.am +0 -310
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/README.md +0 -280
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/cmake/internal_utils.cmake +0 -242
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/codegear/gtest.cbproj +0 -138
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/codegear/gtest.groupproj +0 -54
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/codegear/gtest_all.cc +0 -38
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/codegear/gtest_link.cc +0 -40
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/codegear/gtest_main.cbproj +0 -82
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/codegear/gtest_unittest.cbproj +0 -88
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/configure.ac +0 -68
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/AdvancedGuide.md +0 -2182
- 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/FAQ.md +0 -1087
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/Primer.md +0 -502
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/PumpManual.md +0 -177
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/Samples.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/docs/XcodeGuide.md +0 -93
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-death-test.h +0 -294
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-message.h +0 -250
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-param-test.h +0 -1444
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-param-test.h.pump +0 -510
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-printers.h +0 -993
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-spi.h +0 -232
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-test-part.h +0 -179
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-typed-test.h +0 -263
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest.h +0 -2236
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest_pred_impl.h +0 -358
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest_prod.h +0 -58
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/custom/gtest-port.h +0 -69
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/custom/gtest-printers.h +0 -42
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/custom/gtest.h +0 -41
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-death-test-internal.h +0 -319
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-filepath.h +0 -206
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-internal.h +0 -1238
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-linked_ptr.h +0 -243
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-param-util-generated.h +0 -5146
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-param-util-generated.h.pump +0 -286
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-param-util.h +0 -731
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-port-arch.h +0 -93
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-port.h +0 -2554
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-string.h +0 -167
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-tuple.h +0 -1020
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-tuple.h.pump +0 -347
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-type-util.h +0 -3331
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-type-util.h.pump +0 -297
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/m4/acx_pthread.m4 +0 -363
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/m4/gtest.m4 +0 -74
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/make/Makefile +0 -82
- 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/googletest/samples/prime_tables.h +0 -123
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample1.cc +0 -68
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample1.h +0 -43
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample10_unittest.cc +0 -144
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample1_unittest.cc +0 -153
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample2.cc +0 -56
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample2.h +0 -85
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample2_unittest.cc +0 -109
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample3-inl.h +0 -172
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample3_unittest.cc +0 -151
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample4.cc +0 -46
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample4.h +0 -53
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample4_unittest.cc +0 -45
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample5_unittest.cc +0 -199
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample6_unittest.cc +0 -224
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample7_unittest.cc +0 -130
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample8_unittest.cc +0 -173
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample9_unittest.cc +0 -160
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/scripts/common.py +0 -83
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/scripts/fuse_gtest_files.py +0 -253
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/scripts/gen_gtest_pred_impl.py +0 -730
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/scripts/gtest-config.in +0 -274
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/scripts/pump.py +0 -855
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/scripts/release_docs.py +0 -158
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/scripts/test/Makefile +0 -59
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/scripts/upload.py +0 -1387
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/scripts/upload_gtest.py +0 -78
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-all.cc +0 -48
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-death-test.cc +0 -1342
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-filepath.cc +0 -387
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-internal-inl.h +0 -1183
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-port.cc +0 -1259
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-printers.cc +0 -373
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-test-part.cc +0 -110
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-typed-test.cc +0 -118
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest.cc +0 -5388
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest_main.cc +0 -38
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-death-test_ex_test.cc +0 -93
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-death-test_test.cc +0 -1427
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-filepath_test.cc +0 -662
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-linked_ptr_test.cc +0 -154
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-listener_test.cc +0 -311
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-message_test.cc +0 -159
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-options_test.cc +0 -215
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-param-test2_test.cc +0 -65
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-param-test_test.cc +0 -1055
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-param-test_test.h +0 -57
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-port_test.cc +0 -1304
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-printers_test.cc +0 -1635
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-test-part_test.cc +0 -208
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-tuple_test.cc +0 -320
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-typed-test2_test.cc +0 -45
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-typed-test_test.cc +0 -380
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-typed-test_test.h +0 -66
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-unittest-api_test.cc +0 -341
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_all_test.cc +0 -47
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_break_on_failure_unittest.py +0 -212
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_break_on_failure_unittest_.cc +0 -88
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_catch_exceptions_test.py +0 -237
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_catch_exceptions_test_.cc +0 -311
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_color_test.py +0 -130
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_color_test_.cc +0 -71
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_env_var_test.py +0 -117
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_env_var_test_.cc +0 -126
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_environment_test.cc +0 -192
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_filter_unittest.py +0 -636
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_filter_unittest_.cc +0 -140
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_help_test.py +0 -172
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_help_test_.cc +0 -46
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_list_tests_unittest.py +0 -207
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_list_tests_unittest_.cc +0 -157
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_main_unittest.cc +0 -45
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_no_test_unittest.cc +0 -56
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_output_test.py +0 -340
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_output_test_.cc +0 -1062
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_output_test_golden_lin.txt +0 -743
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_pred_impl_unittest.cc +0 -2427
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_premature_exit_test.cc +0 -127
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_prod_test.cc +0 -57
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_repeat_test.cc +0 -253
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_shuffle_test.py +0 -325
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_shuffle_test_.cc +0 -103
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_sole_header_test.cc +0 -57
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_stress_test.cc +0 -256
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_test_utils.py +0 -320
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_throw_on_failure_ex_test.cc +0 -92
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_throw_on_failure_test.py +0 -171
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_throw_on_failure_test_.cc +0 -72
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_uninitialized_test.py +0 -70
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_uninitialized_test_.cc +0 -43
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_unittest.cc +0 -7706
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_outfile1_test_.cc +0 -49
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_outfile2_test_.cc +0 -49
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_outfiles_test.py +0 -132
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_output_unittest.py +0 -308
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_output_unittest_.cc +0 -181
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_test_utils.py +0 -194
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/production.cc +0 -36
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/production.h +0 -55
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Config/DebugProject.xcconfig +0 -30
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Config/FrameworkTarget.xcconfig +0 -17
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Config/General.xcconfig +0 -41
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Config/ReleaseProject.xcconfig +0 -32
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Config/StaticLibraryTarget.xcconfig +0 -18
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Config/TestTarget.xcconfig +0 -8
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Resources/Info.plist +0 -30
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/Info.plist +0 -28
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/WidgetFramework.xcodeproj/project.pbxproj +0 -457
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/runtests.sh +0 -62
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/widget.cc +0 -63
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/widget.h +0 -59
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/widget_test.cc +0 -68
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Scripts/runtests.sh +0 -65
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Scripts/versiongenerate.py +0 -100
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/gtest.xcodeproj/project.pbxproj +0 -1135
- data/ext/rj_schema/rapidjson/thirdparty/gtest/travis.sh +0 -15
- data/ext/rj_schema/rapidjson/travis-doxygen.sh +0 -121
@@ -1,136 +0,0 @@
|
|
1
|
-
$$ -*- mode: c++; -*-
|
2
|
-
$$ This is a Pump source file. Please use Pump to convert it to
|
3
|
-
$$ gmock-generated-function-mockers.h.
|
4
|
-
$$
|
5
|
-
$var n = 10 $$ The maximum arity we support.
|
6
|
-
// Copyright 2007, Google Inc.
|
7
|
-
// All rights reserved.
|
8
|
-
//
|
9
|
-
// Redistribution and use in source and binary forms, with or without
|
10
|
-
// modification, are permitted provided that the following conditions are
|
11
|
-
// met:
|
12
|
-
//
|
13
|
-
// * Redistributions of source code must retain the above copyright
|
14
|
-
// notice, this list of conditions and the following disclaimer.
|
15
|
-
// * Redistributions in binary form must reproduce the above
|
16
|
-
// copyright notice, this list of conditions and the following disclaimer
|
17
|
-
// in the documentation and/or other materials provided with the
|
18
|
-
// distribution.
|
19
|
-
// * Neither the name of Google Inc. nor the names of its
|
20
|
-
// contributors may be used to endorse or promote products derived from
|
21
|
-
// this software without specific prior written permission.
|
22
|
-
//
|
23
|
-
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
24
|
-
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
25
|
-
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
26
|
-
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
27
|
-
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
28
|
-
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
29
|
-
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
30
|
-
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
31
|
-
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
32
|
-
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
33
|
-
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
34
|
-
//
|
35
|
-
// Author: wan@google.com (Zhanyong Wan)
|
36
|
-
|
37
|
-
// Google Mock - a framework for writing C++ mock classes.
|
38
|
-
//
|
39
|
-
// This file contains template meta-programming utility classes needed
|
40
|
-
// for implementing Google Mock.
|
41
|
-
|
42
|
-
#ifndef GMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_GENERATED_INTERNAL_UTILS_H_
|
43
|
-
#define GMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_GENERATED_INTERNAL_UTILS_H_
|
44
|
-
|
45
|
-
#include "gmock/internal/gmock-port.h"
|
46
|
-
|
47
|
-
namespace testing {
|
48
|
-
|
49
|
-
template <typename T>
|
50
|
-
class Matcher;
|
51
|
-
|
52
|
-
namespace internal {
|
53
|
-
|
54
|
-
// An IgnoredValue object can be implicitly constructed from ANY value.
|
55
|
-
// This is used in implementing the IgnoreResult(a) action.
|
56
|
-
class IgnoredValue {
|
57
|
-
public:
|
58
|
-
// This constructor template allows any value to be implicitly
|
59
|
-
// converted to IgnoredValue. The object has no data member and
|
60
|
-
// doesn't try to remember anything about the argument. We
|
61
|
-
// deliberately omit the 'explicit' keyword in order to allow the
|
62
|
-
// conversion to be implicit.
|
63
|
-
template <typename T>
|
64
|
-
IgnoredValue(const T& /* ignored */) {} // NOLINT(runtime/explicit)
|
65
|
-
};
|
66
|
-
|
67
|
-
// MatcherTuple<T>::type is a tuple type where each field is a Matcher
|
68
|
-
// for the corresponding field in tuple type T.
|
69
|
-
template <typename Tuple>
|
70
|
-
struct MatcherTuple;
|
71
|
-
|
72
|
-
|
73
|
-
$range i 0..n
|
74
|
-
$for i [[
|
75
|
-
$range j 1..i
|
76
|
-
$var typename_As = [[$for j, [[typename A$j]]]]
|
77
|
-
$var As = [[$for j, [[A$j]]]]
|
78
|
-
$var matcher_As = [[$for j, [[Matcher<A$j>]]]]
|
79
|
-
template <$typename_As>
|
80
|
-
struct MatcherTuple< ::testing::tuple<$As> > {
|
81
|
-
typedef ::testing::tuple<$matcher_As > type;
|
82
|
-
};
|
83
|
-
|
84
|
-
|
85
|
-
]]
|
86
|
-
// Template struct Function<F>, where F must be a function type, contains
|
87
|
-
// the following typedefs:
|
88
|
-
//
|
89
|
-
// Result: the function's return type.
|
90
|
-
// ArgumentN: the type of the N-th argument, where N starts with 1.
|
91
|
-
// ArgumentTuple: the tuple type consisting of all parameters of F.
|
92
|
-
// ArgumentMatcherTuple: the tuple type consisting of Matchers for all
|
93
|
-
// parameters of F.
|
94
|
-
// MakeResultVoid: the function type obtained by substituting void
|
95
|
-
// for the return type of F.
|
96
|
-
// MakeResultIgnoredValue:
|
97
|
-
// the function type obtained by substituting Something
|
98
|
-
// for the return type of F.
|
99
|
-
template <typename F>
|
100
|
-
struct Function;
|
101
|
-
|
102
|
-
template <typename R>
|
103
|
-
struct Function<R()> {
|
104
|
-
typedef R Result;
|
105
|
-
typedef ::testing::tuple<> ArgumentTuple;
|
106
|
-
typedef typename MatcherTuple<ArgumentTuple>::type ArgumentMatcherTuple;
|
107
|
-
typedef void MakeResultVoid();
|
108
|
-
typedef IgnoredValue MakeResultIgnoredValue();
|
109
|
-
};
|
110
|
-
|
111
|
-
|
112
|
-
$range i 1..n
|
113
|
-
$for i [[
|
114
|
-
$range j 1..i
|
115
|
-
$var typename_As = [[$for j [[, typename A$j]]]]
|
116
|
-
$var As = [[$for j, [[A$j]]]]
|
117
|
-
$var matcher_As = [[$for j, [[Matcher<A$j>]]]]
|
118
|
-
$range k 1..i-1
|
119
|
-
$var prev_As = [[$for k, [[A$k]]]]
|
120
|
-
template <typename R$typename_As>
|
121
|
-
struct Function<R($As)>
|
122
|
-
: Function<R($prev_As)> {
|
123
|
-
typedef A$i Argument$i;
|
124
|
-
typedef ::testing::tuple<$As> ArgumentTuple;
|
125
|
-
typedef typename MatcherTuple<ArgumentTuple>::type ArgumentMatcherTuple;
|
126
|
-
typedef void MakeResultVoid($As);
|
127
|
-
typedef IgnoredValue MakeResultIgnoredValue($As);
|
128
|
-
};
|
129
|
-
|
130
|
-
|
131
|
-
]]
|
132
|
-
} // namespace internal
|
133
|
-
|
134
|
-
} // namespace testing
|
135
|
-
|
136
|
-
#endif // GMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_GENERATED_INTERNAL_UTILS_H_
|
@@ -1,511 +0,0 @@
|
|
1
|
-
// Copyright 2007, Google Inc.
|
2
|
-
// All rights reserved.
|
3
|
-
//
|
4
|
-
// Redistribution and use in source and binary forms, with or without
|
5
|
-
// modification, are permitted provided that the following conditions are
|
6
|
-
// met:
|
7
|
-
//
|
8
|
-
// * Redistributions of source code must retain the above copyright
|
9
|
-
// notice, this list of conditions and the following disclaimer.
|
10
|
-
// * Redistributions in binary form must reproduce the above
|
11
|
-
// copyright notice, this list of conditions and the following disclaimer
|
12
|
-
// in the documentation and/or other materials provided with the
|
13
|
-
// distribution.
|
14
|
-
// * Neither the name of Google Inc. nor the names of its
|
15
|
-
// contributors may be used to endorse or promote products derived from
|
16
|
-
// this software without specific prior written permission.
|
17
|
-
//
|
18
|
-
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
19
|
-
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
20
|
-
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
21
|
-
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
22
|
-
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
23
|
-
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
24
|
-
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
25
|
-
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
26
|
-
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
27
|
-
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
28
|
-
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
29
|
-
//
|
30
|
-
// Author: wan@google.com (Zhanyong Wan)
|
31
|
-
|
32
|
-
// Google Mock - a framework for writing C++ mock classes.
|
33
|
-
//
|
34
|
-
// This file defines some utilities useful for implementing Google
|
35
|
-
// Mock. They are subject to change without notice, so please DO NOT
|
36
|
-
// USE THEM IN USER CODE.
|
37
|
-
|
38
|
-
#ifndef GMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_INTERNAL_UTILS_H_
|
39
|
-
#define GMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_INTERNAL_UTILS_H_
|
40
|
-
|
41
|
-
#include <stdio.h>
|
42
|
-
#include <ostream> // NOLINT
|
43
|
-
#include <string>
|
44
|
-
|
45
|
-
#include "gmock/internal/gmock-generated-internal-utils.h"
|
46
|
-
#include "gmock/internal/gmock-port.h"
|
47
|
-
#include "gtest/gtest.h"
|
48
|
-
|
49
|
-
namespace testing {
|
50
|
-
namespace internal {
|
51
|
-
|
52
|
-
// Converts an identifier name to a space-separated list of lower-case
|
53
|
-
// words. Each maximum substring of the form [A-Za-z][a-z]*|\d+ is
|
54
|
-
// treated as one word. For example, both "FooBar123" and
|
55
|
-
// "foo_bar_123" are converted to "foo bar 123".
|
56
|
-
GTEST_API_ string ConvertIdentifierNameToWords(const char* id_name);
|
57
|
-
|
58
|
-
// PointeeOf<Pointer>::type is the type of a value pointed to by a
|
59
|
-
// Pointer, which can be either a smart pointer or a raw pointer. The
|
60
|
-
// following default implementation is for the case where Pointer is a
|
61
|
-
// smart pointer.
|
62
|
-
template <typename Pointer>
|
63
|
-
struct PointeeOf {
|
64
|
-
// Smart pointer classes define type element_type as the type of
|
65
|
-
// their pointees.
|
66
|
-
typedef typename Pointer::element_type type;
|
67
|
-
};
|
68
|
-
// This specialization is for the raw pointer case.
|
69
|
-
template <typename T>
|
70
|
-
struct PointeeOf<T*> { typedef T type; }; // NOLINT
|
71
|
-
|
72
|
-
// GetRawPointer(p) returns the raw pointer underlying p when p is a
|
73
|
-
// smart pointer, or returns p itself when p is already a raw pointer.
|
74
|
-
// The following default implementation is for the smart pointer case.
|
75
|
-
template <typename Pointer>
|
76
|
-
inline const typename Pointer::element_type* GetRawPointer(const Pointer& p) {
|
77
|
-
return p.get();
|
78
|
-
}
|
79
|
-
// This overloaded version is for the raw pointer case.
|
80
|
-
template <typename Element>
|
81
|
-
inline Element* GetRawPointer(Element* p) { return p; }
|
82
|
-
|
83
|
-
// This comparator allows linked_ptr to be stored in sets.
|
84
|
-
template <typename T>
|
85
|
-
struct LinkedPtrLessThan {
|
86
|
-
bool operator()(const ::testing::internal::linked_ptr<T>& lhs,
|
87
|
-
const ::testing::internal::linked_ptr<T>& rhs) const {
|
88
|
-
return lhs.get() < rhs.get();
|
89
|
-
}
|
90
|
-
};
|
91
|
-
|
92
|
-
// Symbian compilation can be done with wchar_t being either a native
|
93
|
-
// type or a typedef. Using Google Mock with OpenC without wchar_t
|
94
|
-
// should require the definition of _STLP_NO_WCHAR_T.
|
95
|
-
//
|
96
|
-
// MSVC treats wchar_t as a native type usually, but treats it as the
|
97
|
-
// same as unsigned short when the compiler option /Zc:wchar_t- is
|
98
|
-
// specified. It defines _NATIVE_WCHAR_T_DEFINED symbol when wchar_t
|
99
|
-
// is a native type.
|
100
|
-
#if (GTEST_OS_SYMBIAN && defined(_STLP_NO_WCHAR_T)) || \
|
101
|
-
(defined(_MSC_VER) && !defined(_NATIVE_WCHAR_T_DEFINED))
|
102
|
-
// wchar_t is a typedef.
|
103
|
-
#else
|
104
|
-
# define GMOCK_WCHAR_T_IS_NATIVE_ 1
|
105
|
-
#endif
|
106
|
-
|
107
|
-
// signed wchar_t and unsigned wchar_t are NOT in the C++ standard.
|
108
|
-
// Using them is a bad practice and not portable. So DON'T use them.
|
109
|
-
//
|
110
|
-
// Still, Google Mock is designed to work even if the user uses signed
|
111
|
-
// wchar_t or unsigned wchar_t (obviously, assuming the compiler
|
112
|
-
// supports them).
|
113
|
-
//
|
114
|
-
// To gcc,
|
115
|
-
// wchar_t == signed wchar_t != unsigned wchar_t == unsigned int
|
116
|
-
#ifdef __GNUC__
|
117
|
-
// signed/unsigned wchar_t are valid types.
|
118
|
-
# define GMOCK_HAS_SIGNED_WCHAR_T_ 1
|
119
|
-
#endif
|
120
|
-
|
121
|
-
// In what follows, we use the term "kind" to indicate whether a type
|
122
|
-
// is bool, an integer type (excluding bool), a floating-point type,
|
123
|
-
// or none of them. This categorization is useful for determining
|
124
|
-
// when a matcher argument type can be safely converted to another
|
125
|
-
// type in the implementation of SafeMatcherCast.
|
126
|
-
enum TypeKind {
|
127
|
-
kBool, kInteger, kFloatingPoint, kOther
|
128
|
-
};
|
129
|
-
|
130
|
-
// KindOf<T>::value is the kind of type T.
|
131
|
-
template <typename T> struct KindOf {
|
132
|
-
enum { value = kOther }; // The default kind.
|
133
|
-
};
|
134
|
-
|
135
|
-
// This macro declares that the kind of 'type' is 'kind'.
|
136
|
-
#define GMOCK_DECLARE_KIND_(type, kind) \
|
137
|
-
template <> struct KindOf<type> { enum { value = kind }; }
|
138
|
-
|
139
|
-
GMOCK_DECLARE_KIND_(bool, kBool);
|
140
|
-
|
141
|
-
// All standard integer types.
|
142
|
-
GMOCK_DECLARE_KIND_(char, kInteger);
|
143
|
-
GMOCK_DECLARE_KIND_(signed char, kInteger);
|
144
|
-
GMOCK_DECLARE_KIND_(unsigned char, kInteger);
|
145
|
-
GMOCK_DECLARE_KIND_(short, kInteger); // NOLINT
|
146
|
-
GMOCK_DECLARE_KIND_(unsigned short, kInteger); // NOLINT
|
147
|
-
GMOCK_DECLARE_KIND_(int, kInteger);
|
148
|
-
GMOCK_DECLARE_KIND_(unsigned int, kInteger);
|
149
|
-
GMOCK_DECLARE_KIND_(long, kInteger); // NOLINT
|
150
|
-
GMOCK_DECLARE_KIND_(unsigned long, kInteger); // NOLINT
|
151
|
-
|
152
|
-
#if GMOCK_WCHAR_T_IS_NATIVE_
|
153
|
-
GMOCK_DECLARE_KIND_(wchar_t, kInteger);
|
154
|
-
#endif
|
155
|
-
|
156
|
-
// Non-standard integer types.
|
157
|
-
GMOCK_DECLARE_KIND_(Int64, kInteger);
|
158
|
-
GMOCK_DECLARE_KIND_(UInt64, kInteger);
|
159
|
-
|
160
|
-
// All standard floating-point types.
|
161
|
-
GMOCK_DECLARE_KIND_(float, kFloatingPoint);
|
162
|
-
GMOCK_DECLARE_KIND_(double, kFloatingPoint);
|
163
|
-
GMOCK_DECLARE_KIND_(long double, kFloatingPoint);
|
164
|
-
|
165
|
-
#undef GMOCK_DECLARE_KIND_
|
166
|
-
|
167
|
-
// Evaluates to the kind of 'type'.
|
168
|
-
#define GMOCK_KIND_OF_(type) \
|
169
|
-
static_cast< ::testing::internal::TypeKind>( \
|
170
|
-
::testing::internal::KindOf<type>::value)
|
171
|
-
|
172
|
-
// Evaluates to true iff integer type T is signed.
|
173
|
-
#define GMOCK_IS_SIGNED_(T) (static_cast<T>(-1) < 0)
|
174
|
-
|
175
|
-
// LosslessArithmeticConvertibleImpl<kFromKind, From, kToKind, To>::value
|
176
|
-
// is true iff arithmetic type From can be losslessly converted to
|
177
|
-
// arithmetic type To.
|
178
|
-
//
|
179
|
-
// It's the user's responsibility to ensure that both From and To are
|
180
|
-
// raw (i.e. has no CV modifier, is not a pointer, and is not a
|
181
|
-
// reference) built-in arithmetic types, kFromKind is the kind of
|
182
|
-
// From, and kToKind is the kind of To; the value is
|
183
|
-
// implementation-defined when the above pre-condition is violated.
|
184
|
-
template <TypeKind kFromKind, typename From, TypeKind kToKind, typename To>
|
185
|
-
struct LosslessArithmeticConvertibleImpl : public false_type {};
|
186
|
-
|
187
|
-
// Converting bool to bool is lossless.
|
188
|
-
template <>
|
189
|
-
struct LosslessArithmeticConvertibleImpl<kBool, bool, kBool, bool>
|
190
|
-
: public true_type {}; // NOLINT
|
191
|
-
|
192
|
-
// Converting bool to any integer type is lossless.
|
193
|
-
template <typename To>
|
194
|
-
struct LosslessArithmeticConvertibleImpl<kBool, bool, kInteger, To>
|
195
|
-
: public true_type {}; // NOLINT
|
196
|
-
|
197
|
-
// Converting bool to any floating-point type is lossless.
|
198
|
-
template <typename To>
|
199
|
-
struct LosslessArithmeticConvertibleImpl<kBool, bool, kFloatingPoint, To>
|
200
|
-
: public true_type {}; // NOLINT
|
201
|
-
|
202
|
-
// Converting an integer to bool is lossy.
|
203
|
-
template <typename From>
|
204
|
-
struct LosslessArithmeticConvertibleImpl<kInteger, From, kBool, bool>
|
205
|
-
: public false_type {}; // NOLINT
|
206
|
-
|
207
|
-
// Converting an integer to another non-bool integer is lossless iff
|
208
|
-
// the target type's range encloses the source type's range.
|
209
|
-
template <typename From, typename To>
|
210
|
-
struct LosslessArithmeticConvertibleImpl<kInteger, From, kInteger, To>
|
211
|
-
: public bool_constant<
|
212
|
-
// When converting from a smaller size to a larger size, we are
|
213
|
-
// fine as long as we are not converting from signed to unsigned.
|
214
|
-
((sizeof(From) < sizeof(To)) &&
|
215
|
-
(!GMOCK_IS_SIGNED_(From) || GMOCK_IS_SIGNED_(To))) ||
|
216
|
-
// When converting between the same size, the signedness must match.
|
217
|
-
((sizeof(From) == sizeof(To)) &&
|
218
|
-
(GMOCK_IS_SIGNED_(From) == GMOCK_IS_SIGNED_(To)))> {}; // NOLINT
|
219
|
-
|
220
|
-
#undef GMOCK_IS_SIGNED_
|
221
|
-
|
222
|
-
// Converting an integer to a floating-point type may be lossy, since
|
223
|
-
// the format of a floating-point number is implementation-defined.
|
224
|
-
template <typename From, typename To>
|
225
|
-
struct LosslessArithmeticConvertibleImpl<kInteger, From, kFloatingPoint, To>
|
226
|
-
: public false_type {}; // NOLINT
|
227
|
-
|
228
|
-
// Converting a floating-point to bool is lossy.
|
229
|
-
template <typename From>
|
230
|
-
struct LosslessArithmeticConvertibleImpl<kFloatingPoint, From, kBool, bool>
|
231
|
-
: public false_type {}; // NOLINT
|
232
|
-
|
233
|
-
// Converting a floating-point to an integer is lossy.
|
234
|
-
template <typename From, typename To>
|
235
|
-
struct LosslessArithmeticConvertibleImpl<kFloatingPoint, From, kInteger, To>
|
236
|
-
: public false_type {}; // NOLINT
|
237
|
-
|
238
|
-
// Converting a floating-point to another floating-point is lossless
|
239
|
-
// iff the target type is at least as big as the source type.
|
240
|
-
template <typename From, typename To>
|
241
|
-
struct LosslessArithmeticConvertibleImpl<
|
242
|
-
kFloatingPoint, From, kFloatingPoint, To>
|
243
|
-
: public bool_constant<sizeof(From) <= sizeof(To)> {}; // NOLINT
|
244
|
-
|
245
|
-
// LosslessArithmeticConvertible<From, To>::value is true iff arithmetic
|
246
|
-
// type From can be losslessly converted to arithmetic type To.
|
247
|
-
//
|
248
|
-
// It's the user's responsibility to ensure that both From and To are
|
249
|
-
// raw (i.e. has no CV modifier, is not a pointer, and is not a
|
250
|
-
// reference) built-in arithmetic types; the value is
|
251
|
-
// implementation-defined when the above pre-condition is violated.
|
252
|
-
template <typename From, typename To>
|
253
|
-
struct LosslessArithmeticConvertible
|
254
|
-
: public LosslessArithmeticConvertibleImpl<
|
255
|
-
GMOCK_KIND_OF_(From), From, GMOCK_KIND_OF_(To), To> {}; // NOLINT
|
256
|
-
|
257
|
-
// This interface knows how to report a Google Mock failure (either
|
258
|
-
// non-fatal or fatal).
|
259
|
-
class FailureReporterInterface {
|
260
|
-
public:
|
261
|
-
// The type of a failure (either non-fatal or fatal).
|
262
|
-
enum FailureType {
|
263
|
-
kNonfatal, kFatal
|
264
|
-
};
|
265
|
-
|
266
|
-
virtual ~FailureReporterInterface() {}
|
267
|
-
|
268
|
-
// Reports a failure that occurred at the given source file location.
|
269
|
-
virtual void ReportFailure(FailureType type, const char* file, int line,
|
270
|
-
const string& message) = 0;
|
271
|
-
};
|
272
|
-
|
273
|
-
// Returns the failure reporter used by Google Mock.
|
274
|
-
GTEST_API_ FailureReporterInterface* GetFailureReporter();
|
275
|
-
|
276
|
-
// Asserts that condition is true; aborts the process with the given
|
277
|
-
// message if condition is false. We cannot use LOG(FATAL) or CHECK()
|
278
|
-
// as Google Mock might be used to mock the log sink itself. We
|
279
|
-
// inline this function to prevent it from showing up in the stack
|
280
|
-
// trace.
|
281
|
-
inline void Assert(bool condition, const char* file, int line,
|
282
|
-
const string& msg) {
|
283
|
-
if (!condition) {
|
284
|
-
GetFailureReporter()->ReportFailure(FailureReporterInterface::kFatal,
|
285
|
-
file, line, msg);
|
286
|
-
}
|
287
|
-
}
|
288
|
-
inline void Assert(bool condition, const char* file, int line) {
|
289
|
-
Assert(condition, file, line, "Assertion failed.");
|
290
|
-
}
|
291
|
-
|
292
|
-
// Verifies that condition is true; generates a non-fatal failure if
|
293
|
-
// condition is false.
|
294
|
-
inline void Expect(bool condition, const char* file, int line,
|
295
|
-
const string& msg) {
|
296
|
-
if (!condition) {
|
297
|
-
GetFailureReporter()->ReportFailure(FailureReporterInterface::kNonfatal,
|
298
|
-
file, line, msg);
|
299
|
-
}
|
300
|
-
}
|
301
|
-
inline void Expect(bool condition, const char* file, int line) {
|
302
|
-
Expect(condition, file, line, "Expectation failed.");
|
303
|
-
}
|
304
|
-
|
305
|
-
// Severity level of a log.
|
306
|
-
enum LogSeverity {
|
307
|
-
kInfo = 0,
|
308
|
-
kWarning = 1
|
309
|
-
};
|
310
|
-
|
311
|
-
// Valid values for the --gmock_verbose flag.
|
312
|
-
|
313
|
-
// All logs (informational and warnings) are printed.
|
314
|
-
const char kInfoVerbosity[] = "info";
|
315
|
-
// Only warnings are printed.
|
316
|
-
const char kWarningVerbosity[] = "warning";
|
317
|
-
// No logs are printed.
|
318
|
-
const char kErrorVerbosity[] = "error";
|
319
|
-
|
320
|
-
// Returns true iff a log with the given severity is visible according
|
321
|
-
// to the --gmock_verbose flag.
|
322
|
-
GTEST_API_ bool LogIsVisible(LogSeverity severity);
|
323
|
-
|
324
|
-
// Prints the given message to stdout iff 'severity' >= the level
|
325
|
-
// specified by the --gmock_verbose flag. If stack_frames_to_skip >=
|
326
|
-
// 0, also prints the stack trace excluding the top
|
327
|
-
// stack_frames_to_skip frames. In opt mode, any positive
|
328
|
-
// stack_frames_to_skip is treated as 0, since we don't know which
|
329
|
-
// function calls will be inlined by the compiler and need to be
|
330
|
-
// conservative.
|
331
|
-
GTEST_API_ void Log(LogSeverity severity,
|
332
|
-
const string& message,
|
333
|
-
int stack_frames_to_skip);
|
334
|
-
|
335
|
-
// TODO(wan@google.com): group all type utilities together.
|
336
|
-
|
337
|
-
// Type traits.
|
338
|
-
|
339
|
-
// is_reference<T>::value is non-zero iff T is a reference type.
|
340
|
-
template <typename T> struct is_reference : public false_type {};
|
341
|
-
template <typename T> struct is_reference<T&> : public true_type {};
|
342
|
-
|
343
|
-
// type_equals<T1, T2>::value is non-zero iff T1 and T2 are the same type.
|
344
|
-
template <typename T1, typename T2> struct type_equals : public false_type {};
|
345
|
-
template <typename T> struct type_equals<T, T> : public true_type {};
|
346
|
-
|
347
|
-
// remove_reference<T>::type removes the reference from type T, if any.
|
348
|
-
template <typename T> struct remove_reference { typedef T type; }; // NOLINT
|
349
|
-
template <typename T> struct remove_reference<T&> { typedef T type; }; // NOLINT
|
350
|
-
|
351
|
-
// DecayArray<T>::type turns an array type U[N] to const U* and preserves
|
352
|
-
// other types. Useful for saving a copy of a function argument.
|
353
|
-
template <typename T> struct DecayArray { typedef T type; }; // NOLINT
|
354
|
-
template <typename T, size_t N> struct DecayArray<T[N]> {
|
355
|
-
typedef const T* type;
|
356
|
-
};
|
357
|
-
// Sometimes people use arrays whose size is not available at the use site
|
358
|
-
// (e.g. extern const char kNamePrefix[]). This specialization covers that
|
359
|
-
// case.
|
360
|
-
template <typename T> struct DecayArray<T[]> {
|
361
|
-
typedef const T* type;
|
362
|
-
};
|
363
|
-
|
364
|
-
// Disable MSVC warnings for infinite recursion, since in this case the
|
365
|
-
// the recursion is unreachable.
|
366
|
-
#ifdef _MSC_VER
|
367
|
-
# pragma warning(push)
|
368
|
-
# pragma warning(disable:4717)
|
369
|
-
#endif
|
370
|
-
|
371
|
-
// Invalid<T>() is usable as an expression of type T, but will terminate
|
372
|
-
// the program with an assertion failure if actually run. This is useful
|
373
|
-
// when a value of type T is needed for compilation, but the statement
|
374
|
-
// will not really be executed (or we don't care if the statement
|
375
|
-
// crashes).
|
376
|
-
template <typename T>
|
377
|
-
inline T Invalid() {
|
378
|
-
Assert(false, "", -1, "Internal error: attempt to return invalid value");
|
379
|
-
// This statement is unreachable, and would never terminate even if it
|
380
|
-
// could be reached. It is provided only to placate compiler warnings
|
381
|
-
// about missing return statements.
|
382
|
-
return Invalid<T>();
|
383
|
-
}
|
384
|
-
|
385
|
-
#ifdef _MSC_VER
|
386
|
-
# pragma warning(pop)
|
387
|
-
#endif
|
388
|
-
|
389
|
-
// Given a raw type (i.e. having no top-level reference or const
|
390
|
-
// modifier) RawContainer that's either an STL-style container or a
|
391
|
-
// native array, class StlContainerView<RawContainer> has the
|
392
|
-
// following members:
|
393
|
-
//
|
394
|
-
// - type is a type that provides an STL-style container view to
|
395
|
-
// (i.e. implements the STL container concept for) RawContainer;
|
396
|
-
// - const_reference is a type that provides a reference to a const
|
397
|
-
// RawContainer;
|
398
|
-
// - ConstReference(raw_container) returns a const reference to an STL-style
|
399
|
-
// container view to raw_container, which is a RawContainer.
|
400
|
-
// - Copy(raw_container) returns an STL-style container view of a
|
401
|
-
// copy of raw_container, which is a RawContainer.
|
402
|
-
//
|
403
|
-
// This generic version is used when RawContainer itself is already an
|
404
|
-
// STL-style container.
|
405
|
-
template <class RawContainer>
|
406
|
-
class StlContainerView {
|
407
|
-
public:
|
408
|
-
typedef RawContainer type;
|
409
|
-
typedef const type& const_reference;
|
410
|
-
|
411
|
-
static const_reference ConstReference(const RawContainer& container) {
|
412
|
-
// Ensures that RawContainer is not a const type.
|
413
|
-
testing::StaticAssertTypeEq<RawContainer,
|
414
|
-
GTEST_REMOVE_CONST_(RawContainer)>();
|
415
|
-
return container;
|
416
|
-
}
|
417
|
-
static type Copy(const RawContainer& container) { return container; }
|
418
|
-
};
|
419
|
-
|
420
|
-
// This specialization is used when RawContainer is a native array type.
|
421
|
-
template <typename Element, size_t N>
|
422
|
-
class StlContainerView<Element[N]> {
|
423
|
-
public:
|
424
|
-
typedef GTEST_REMOVE_CONST_(Element) RawElement;
|
425
|
-
typedef internal::NativeArray<RawElement> type;
|
426
|
-
// NativeArray<T> can represent a native array either by value or by
|
427
|
-
// reference (selected by a constructor argument), so 'const type'
|
428
|
-
// can be used to reference a const native array. We cannot
|
429
|
-
// 'typedef const type& const_reference' here, as that would mean
|
430
|
-
// ConstReference() has to return a reference to a local variable.
|
431
|
-
typedef const type const_reference;
|
432
|
-
|
433
|
-
static const_reference ConstReference(const Element (&array)[N]) {
|
434
|
-
// Ensures that Element is not a const type.
|
435
|
-
testing::StaticAssertTypeEq<Element, RawElement>();
|
436
|
-
#if GTEST_OS_SYMBIAN
|
437
|
-
// The Nokia Symbian compiler confuses itself in template instantiation
|
438
|
-
// for this call without the cast to Element*:
|
439
|
-
// function call '[testing::internal::NativeArray<char *>].NativeArray(
|
440
|
-
// {lval} const char *[4], long, testing::internal::RelationToSource)'
|
441
|
-
// does not match
|
442
|
-
// 'testing::internal::NativeArray<char *>::NativeArray(
|
443
|
-
// char *const *, unsigned int, testing::internal::RelationToSource)'
|
444
|
-
// (instantiating: 'testing::internal::ContainsMatcherImpl
|
445
|
-
// <const char * (&)[4]>::Matches(const char * (&)[4]) const')
|
446
|
-
// (instantiating: 'testing::internal::StlContainerView<char *[4]>::
|
447
|
-
// ConstReference(const char * (&)[4])')
|
448
|
-
// (and though the N parameter type is mismatched in the above explicit
|
449
|
-
// conversion of it doesn't help - only the conversion of the array).
|
450
|
-
return type(const_cast<Element*>(&array[0]), N,
|
451
|
-
RelationToSourceReference());
|
452
|
-
#else
|
453
|
-
return type(array, N, RelationToSourceReference());
|
454
|
-
#endif // GTEST_OS_SYMBIAN
|
455
|
-
}
|
456
|
-
static type Copy(const Element (&array)[N]) {
|
457
|
-
#if GTEST_OS_SYMBIAN
|
458
|
-
return type(const_cast<Element*>(&array[0]), N, RelationToSourceCopy());
|
459
|
-
#else
|
460
|
-
return type(array, N, RelationToSourceCopy());
|
461
|
-
#endif // GTEST_OS_SYMBIAN
|
462
|
-
}
|
463
|
-
};
|
464
|
-
|
465
|
-
// This specialization is used when RawContainer is a native array
|
466
|
-
// represented as a (pointer, size) tuple.
|
467
|
-
template <typename ElementPointer, typename Size>
|
468
|
-
class StlContainerView< ::testing::tuple<ElementPointer, Size> > {
|
469
|
-
public:
|
470
|
-
typedef GTEST_REMOVE_CONST_(
|
471
|
-
typename internal::PointeeOf<ElementPointer>::type) RawElement;
|
472
|
-
typedef internal::NativeArray<RawElement> type;
|
473
|
-
typedef const type const_reference;
|
474
|
-
|
475
|
-
static const_reference ConstReference(
|
476
|
-
const ::testing::tuple<ElementPointer, Size>& array) {
|
477
|
-
return type(get<0>(array), get<1>(array), RelationToSourceReference());
|
478
|
-
}
|
479
|
-
static type Copy(const ::testing::tuple<ElementPointer, Size>& array) {
|
480
|
-
return type(get<0>(array), get<1>(array), RelationToSourceCopy());
|
481
|
-
}
|
482
|
-
};
|
483
|
-
|
484
|
-
// The following specialization prevents the user from instantiating
|
485
|
-
// StlContainer with a reference type.
|
486
|
-
template <typename T> class StlContainerView<T&>;
|
487
|
-
|
488
|
-
// A type transform to remove constness from the first part of a pair.
|
489
|
-
// Pairs like that are used as the value_type of associative containers,
|
490
|
-
// and this transform produces a similar but assignable pair.
|
491
|
-
template <typename T>
|
492
|
-
struct RemoveConstFromKey {
|
493
|
-
typedef T type;
|
494
|
-
};
|
495
|
-
|
496
|
-
// Partially specialized to remove constness from std::pair<const K, V>.
|
497
|
-
template <typename K, typename V>
|
498
|
-
struct RemoveConstFromKey<std::pair<const K, V> > {
|
499
|
-
typedef std::pair<K, V> type;
|
500
|
-
};
|
501
|
-
|
502
|
-
// Mapping from booleans to types. Similar to boost::bool_<kValue> and
|
503
|
-
// std::integral_constant<bool, kValue>.
|
504
|
-
template <bool kValue>
|
505
|
-
struct BooleanConstant {};
|
506
|
-
|
507
|
-
} // namespace internal
|
508
|
-
} // namespace testing
|
509
|
-
|
510
|
-
#endif // GMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_INTERNAL_UTILS_H_
|
511
|
-
|