@eosrio/node-abieos 2.1.0-beta.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -1
- package/dist/abieos.node +0 -0
- package/lib/abieos.d.ts +19 -0
- package/lib/abieos.d.ts.map +1 -0
- package/lib/abieos.js +100 -0
- package/lib/abieos.ts +107 -0
- package/package.json +13 -8
- package/.gitmodules +0 -6
- package/.idea/misc.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/node-abieos.iml +0 -12
- package/.idea/vcs.xml +0 -9
- package/.idea/workspace.xml +0 -266
- package/CMakeLists.txt +0 -35
- package/abieos.d.ts +0 -21
- package/abieos.js +0 -59
- package/eosio.json +0 -1596
- package/external/date/CMakeLists.txt +0 -175
- package/external/date/LICENSE.txt +0 -31
- package/external/date/README.md +0 -61
- package/external/date/compile_fail.sh +0 -16
- package/external/date/include/date/chrono_io.h +0 -34
- package/external/date/include/date/date.h +0 -8335
- package/external/date/include/date/ios.h +0 -50
- package/external/date/include/date/islamic.h +0 -3031
- package/external/date/include/date/iso_week.h +0 -1745
- package/external/date/include/date/julian.h +0 -3046
- package/external/date/include/date/ptz.h +0 -592
- package/external/date/include/date/tz.h +0 -2760
- package/external/date/include/date/tz_private.h +0 -318
- package/external/date/src/ios.mm +0 -337
- package/external/date/src/tz.cpp +0 -3801
- package/external/date/test/clock_cast_test/custom_clock.pass.cpp +0 -213
- package/external/date/test/clock_cast_test/deprecated.pass.cpp +0 -90
- package/external/date/test/clock_cast_test/local_t.pass.cpp +0 -132
- package/external/date/test/clock_cast_test/noncastable.pass.cpp +0 -251
- package/external/date/test/clock_cast_test/normal_clocks.pass.cpp +0 -102
- package/external/date/test/clock_cast_test/to_sys_return_int.fail.cpp +0 -49
- package/external/date/test/clock_cast_test/to_sys_return_reference.fail.cpp +0 -51
- package/external/date/test/clock_cast_test/to_sys_return_utc_time.fail.cpp +0 -49
- package/external/date/test/date_test/day.pass.cpp +0 -143
- package/external/date/test/date_test/daypday.fail.cpp +0 -32
- package/external/date/test/date_test/daysmday.fail.cpp +0 -32
- package/external/date/test/date_test/daysmweekday.fail.cpp +0 -32
- package/external/date/test/date_test/detail/decimal_format_seconds.pass.cpp +0 -145
- package/external/date/test/date_test/detail/make_precision.pass.cpp +0 -63
- package/external/date/test/date_test/detail/static_pow10.pass.cpp +0 -50
- package/external/date/test/date_test/detail/width.pass.cpp +0 -64
- package/external/date/test/date_test/durations.pass.cpp +0 -62
- package/external/date/test/date_test/durations_output.pass.cpp +0 -328
- package/external/date/test/date_test/format/century.pass.cpp +0 -117
- package/external/date/test/date_test/format/misc.pass.cpp +0 -52
- package/external/date/test/date_test/format/range.pass.cpp +0 -78
- package/external/date/test/date_test/format/two_dight_year.pass.cpp +0 -121
- package/external/date/test/date_test/last.pass.cpp +0 -34
- package/external/date/test/date_test/make_time.pass.cpp +0 -164
- package/external/date/test/date_test/month.pass.cpp +0 -181
- package/external/date/test/date_test/month_day.pass.cpp +0 -82
- package/external/date/test/date_test/month_day_last.pass.cpp +0 -75
- package/external/date/test/date_test/month_weekday.pass.cpp +0 -77
- package/external/date/test/date_test/month_weekday_last.pass.cpp +0 -77
- package/external/date/test/date_test/month_weekday_last_less.fail.cpp +0 -34
- package/external/date/test/date_test/month_weekday_less.fail.cpp +0 -34
- package/external/date/test/date_test/monthpmonth.fail.cpp +0 -32
- package/external/date/test/date_test/months_m_year_month.fail.cpp +0 -33
- package/external/date/test/date_test/months_m_year_month_day.fail.cpp +0 -33
- package/external/date/test/date_test/monthsmmonth.fail.cpp +0 -32
- package/external/date/test/date_test/multi_year_duration_addition.pass.cpp +0 -297
- package/external/date/test/date_test/op_div_day_day.fail.cpp +0 -33
- package/external/date/test/date_test/op_div_int_month.fail.cpp +0 -33
- package/external/date/test/date_test/op_div_int_year.fail.cpp +0 -33
- package/external/date/test/date_test/op_div_last_last.fail.cpp +0 -33
- package/external/date/test/date_test/op_div_month_day.pass.cpp +0 -41
- package/external/date/test/date_test/op_div_month_day_last.pass.cpp +0 -39
- package/external/date/test/date_test/op_div_month_day_month_day.fail.cpp +0 -33
- package/external/date/test/date_test/op_div_month_month.fail.cpp +0 -33
- package/external/date/test/date_test/op_div_month_weekday.pass.cpp +0 -39
- package/external/date/test/date_test/op_div_month_weekday_last.pass.cpp +0 -39
- package/external/date/test/date_test/op_div_month_year.fail.cpp +0 -33
- package/external/date/test/date_test/op_div_survey.pass.cpp +0 -437
- package/external/date/test/date_test/op_div_weekday_indexed_weekday_indexed.fail.cpp +0 -33
- package/external/date/test/date_test/op_div_weekday_last_weekday_last.fail.cpp +0 -33
- package/external/date/test/date_test/op_div_year_month.pass.cpp +0 -35
- package/external/date/test/date_test/op_div_year_month_day.pass.cpp +0 -43
- package/external/date/test/date_test/op_div_year_month_day_last.pass.cpp +0 -41
- package/external/date/test/date_test/op_div_year_month_weekday.pass.cpp +0 -41
- package/external/date/test/date_test/op_div_year_month_weekday_last.pass.cpp +0 -41
- package/external/date/test/date_test/op_div_year_month_year_month.fail.cpp +0 -33
- package/external/date/test/date_test/op_div_year_year.fail.cpp +0 -33
- package/external/date/test/date_test/parse.pass.cpp +0 -904
- package/external/date/test/date_test/sizeof.pass.cpp +0 -62
- package/external/date/test/date_test/time_of_day_hours.pass.cpp +0 -104
- package/external/date/test/date_test/time_of_day_microfortnights.pass.cpp +0 -119
- package/external/date/test/date_test/time_of_day_milliseconds.pass.cpp +0 -126
- package/external/date/test/date_test/time_of_day_minutes.pass.cpp +0 -110
- package/external/date/test/date_test/time_of_day_nanoseconds.pass.cpp +0 -126
- package/external/date/test/date_test/time_of_day_seconds.pass.cpp +0 -116
- package/external/date/test/date_test/weekday.pass.cpp +0 -201
- package/external/date/test/date_test/weekday_indexed.pass.cpp +0 -70
- package/external/date/test/date_test/weekday_last.pass.cpp +0 -66
- package/external/date/test/date_test/weekday_lessthan.fail.cpp +0 -32
- package/external/date/test/date_test/weekday_sum.fail.cpp +0 -32
- package/external/date/test/date_test/year.pass.cpp +0 -146
- package/external/date/test/date_test/year_month.pass.cpp +0 -142
- package/external/date/test/date_test/year_month_day.pass.cpp +0 -244
- package/external/date/test/date_test/year_month_day_last.pass.cpp +0 -177
- package/external/date/test/date_test/year_month_day_m_year_month_day.fail.cpp +0 -33
- package/external/date/test/date_test/year_month_day_p_year_month_day.fail.cpp +0 -33
- package/external/date/test/date_test/year_month_p_year_month.fail.cpp +0 -33
- package/external/date/test/date_test/year_month_weekday.pass.cpp +0 -178
- package/external/date/test/date_test/year_month_weekday_last.pass.cpp +0 -169
- package/external/date/test/date_test/year_p_year.fail.cpp +0 -32
- package/external/date/test/date_test/years_m_year.fail.cpp +0 -32
- package/external/date/test/date_test/years_m_year_month.fail.cpp +0 -33
- package/external/date/test/date_test/years_m_year_month_day.fail.cpp +0 -33
- package/external/date/test/iso_week/last.pass.cpp +0 -34
- package/external/date/test/iso_week/lastweek_weekday.pass.cpp +0 -82
- package/external/date/test/iso_week/op_div_survey.pass.cpp +0 -196
- package/external/date/test/iso_week/weekday.pass.cpp +0 -227
- package/external/date/test/iso_week/weekday_lessthan.fail.cpp +0 -32
- package/external/date/test/iso_week/weekday_sum.fail.cpp +0 -32
- package/external/date/test/iso_week/weeknum.pass.cpp +0 -121
- package/external/date/test/iso_week/weeknum_p_weeknum.fail.cpp +0 -32
- package/external/date/test/iso_week/weeknum_weekday.pass.cpp +0 -86
- package/external/date/test/iso_week/year.pass.cpp +0 -120
- package/external/date/test/iso_week/year_lastweek.pass.cpp +0 -97
- package/external/date/test/iso_week/year_lastweek_weekday.pass.cpp +0 -129
- package/external/date/test/iso_week/year_p_year.fail.cpp +0 -32
- package/external/date/test/iso_week/year_weeknum.pass.cpp +0 -97
- package/external/date/test/iso_week/year_weeknum_weekday.pass.cpp +0 -139
- package/external/date/test/iso_week/years_m_year.fail.cpp +0 -32
- package/external/date/test/just.pass.cpp +0 -26
- package/external/date/test/testit +0 -177
- package/external/date/test/tz_test/OffsetZone.pass.cpp +0 -81
- package/external/date/test/tz_test/README.md +0 -22
- package/external/date/test/tz_test/tzdata2015e.txt.zip +0 -0
- package/external/date/test/tz_test/tzdata2015f.txt.zip +0 -0
- package/external/date/test/tz_test/tzdata2016c.txt.zip +0 -0
- package/external/date/test/tz_test/tzdata2016d.txt.zip +0 -0
- package/external/date/test/tz_test/tzdata2016e.txt.zip +0 -0
- package/external/date/test/tz_test/tzdata2016f.txt.zip +0 -0
- package/external/date/test/tz_test/validate.cpp +0 -165
- package/external/date/test/tz_test/zone.pass.cpp +0 -37
- package/external/date/test/tz_test/zoned_time.pass.cpp +0 -464
- package/external/date/test_fail.sh +0 -10
- package/external/rapidjson/.gitattributes +0 -22
- package/external/rapidjson/.gitmodules +0 -3
- package/external/rapidjson/.travis.yml +0 -99
- package/external/rapidjson/CHANGELOG.md +0 -158
- package/external/rapidjson/CMakeLists.txt +0 -221
- package/external/rapidjson/CMakeModules/FindGTestSrc.cmake +0 -30
- package/external/rapidjson/RapidJSON.pc.in +0 -7
- package/external/rapidjson/RapidJSONConfig.cmake.in +0 -15
- package/external/rapidjson/RapidJSONConfigVersion.cmake.in +0 -10
- package/external/rapidjson/appveyor.yml +0 -54
- package/external/rapidjson/bin/data/glossary.json +0 -22
- package/external/rapidjson/bin/data/menu.json +0 -27
- package/external/rapidjson/bin/data/readme.txt +0 -1
- package/external/rapidjson/bin/data/sample.json +0 -3315
- package/external/rapidjson/bin/data/webapp.json +0 -88
- package/external/rapidjson/bin/data/widget.json +0 -26
- package/external/rapidjson/bin/encodings/utf16be.json +0 -0
- package/external/rapidjson/bin/encodings/utf16bebom.json +0 -0
- package/external/rapidjson/bin/encodings/utf16le.json +0 -0
- package/external/rapidjson/bin/encodings/utf16lebom.json +0 -0
- package/external/rapidjson/bin/encodings/utf32be.json +0 -0
- package/external/rapidjson/bin/encodings/utf32bebom.json +0 -0
- package/external/rapidjson/bin/encodings/utf32le.json +0 -0
- package/external/rapidjson/bin/encodings/utf32lebom.json +0 -0
- package/external/rapidjson/bin/encodings/utf8.json +0 -7
- package/external/rapidjson/bin/encodings/utf8bom.json +0 -7
- package/external/rapidjson/bin/jsonchecker/fail1.json +0 -1
- package/external/rapidjson/bin/jsonchecker/fail10.json +0 -1
- package/external/rapidjson/bin/jsonchecker/fail11.json +0 -1
- package/external/rapidjson/bin/jsonchecker/fail12.json +0 -1
- package/external/rapidjson/bin/jsonchecker/fail13.json +0 -1
- package/external/rapidjson/bin/jsonchecker/fail14.json +0 -1
- package/external/rapidjson/bin/jsonchecker/fail15.json +0 -1
- package/external/rapidjson/bin/jsonchecker/fail16.json +0 -1
- package/external/rapidjson/bin/jsonchecker/fail17.json +0 -1
- package/external/rapidjson/bin/jsonchecker/fail18.json +0 -1
- package/external/rapidjson/bin/jsonchecker/fail19.json +0 -1
- package/external/rapidjson/bin/jsonchecker/fail2.json +0 -1
- package/external/rapidjson/bin/jsonchecker/fail20.json +0 -1
- package/external/rapidjson/bin/jsonchecker/fail21.json +0 -1
- package/external/rapidjson/bin/jsonchecker/fail22.json +0 -1
- package/external/rapidjson/bin/jsonchecker/fail23.json +0 -1
- package/external/rapidjson/bin/jsonchecker/fail24.json +0 -1
- package/external/rapidjson/bin/jsonchecker/fail25.json +0 -1
- package/external/rapidjson/bin/jsonchecker/fail26.json +0 -1
- package/external/rapidjson/bin/jsonchecker/fail27.json +0 -2
- package/external/rapidjson/bin/jsonchecker/fail28.json +0 -2
- package/external/rapidjson/bin/jsonchecker/fail29.json +0 -1
- package/external/rapidjson/bin/jsonchecker/fail3.json +0 -1
- package/external/rapidjson/bin/jsonchecker/fail30.json +0 -1
- package/external/rapidjson/bin/jsonchecker/fail31.json +0 -1
- package/external/rapidjson/bin/jsonchecker/fail32.json +0 -1
- package/external/rapidjson/bin/jsonchecker/fail33.json +0 -1
- package/external/rapidjson/bin/jsonchecker/fail4.json +0 -1
- package/external/rapidjson/bin/jsonchecker/fail5.json +0 -1
- package/external/rapidjson/bin/jsonchecker/fail6.json +0 -1
- package/external/rapidjson/bin/jsonchecker/fail7.json +0 -1
- package/external/rapidjson/bin/jsonchecker/fail8.json +0 -1
- package/external/rapidjson/bin/jsonchecker/fail9.json +0 -1
- package/external/rapidjson/bin/jsonchecker/pass1.json +0 -58
- package/external/rapidjson/bin/jsonchecker/pass2.json +0 -1
- package/external/rapidjson/bin/jsonchecker/pass3.json +0 -6
- package/external/rapidjson/bin/jsonchecker/readme.txt +0 -3
- package/external/rapidjson/bin/types/booleans.json +0 -102
- package/external/rapidjson/bin/types/floats.json +0 -102
- package/external/rapidjson/bin/types/guids.json +0 -102
- package/external/rapidjson/bin/types/integers.json +0 -102
- package/external/rapidjson/bin/types/mixed.json +0 -592
- package/external/rapidjson/bin/types/nulls.json +0 -102
- package/external/rapidjson/bin/types/paragraphs.json +0 -102
- package/external/rapidjson/bin/types/readme.txt +0 -1
- package/external/rapidjson/contrib/natvis/LICENSE +0 -45
- package/external/rapidjson/contrib/natvis/README.md +0 -7
- package/external/rapidjson/contrib/natvis/rapidjson.natvis +0 -38
- package/external/rapidjson/doc/CMakeLists.txt +0 -27
- package/external/rapidjson/doc/Doxyfile.in +0 -2369
- package/external/rapidjson/doc/Doxyfile.zh-cn.in +0 -2369
- package/external/rapidjson/doc/diagram/architecture.dot +0 -50
- package/external/rapidjson/doc/diagram/architecture.png +0 -0
- package/external/rapidjson/doc/diagram/insituparsing.dot +0 -65
- package/external/rapidjson/doc/diagram/insituparsing.png +0 -0
- package/external/rapidjson/doc/diagram/iterative-parser-states-diagram.dot +0 -62
- package/external/rapidjson/doc/diagram/iterative-parser-states-diagram.png +0 -0
- package/external/rapidjson/doc/diagram/move1.dot +0 -47
- package/external/rapidjson/doc/diagram/move1.png +0 -0
- package/external/rapidjson/doc/diagram/move2.dot +0 -62
- package/external/rapidjson/doc/diagram/move2.png +0 -0
- package/external/rapidjson/doc/diagram/move3.dot +0 -60
- package/external/rapidjson/doc/diagram/move3.png +0 -0
- package/external/rapidjson/doc/diagram/normalparsing.dot +0 -56
- package/external/rapidjson/doc/diagram/normalparsing.png +0 -0
- package/external/rapidjson/doc/diagram/simpledom.dot +0 -54
- package/external/rapidjson/doc/diagram/simpledom.png +0 -0
- package/external/rapidjson/doc/diagram/tutorial.dot +0 -58
- package/external/rapidjson/doc/diagram/tutorial.png +0 -0
- package/external/rapidjson/doc/diagram/utilityclass.dot +0 -73
- package/external/rapidjson/doc/diagram/utilityclass.png +0 -0
- package/external/rapidjson/doc/dom.md +0 -280
- package/external/rapidjson/doc/dom.zh-cn.md +0 -284
- package/external/rapidjson/doc/encoding.md +0 -146
- package/external/rapidjson/doc/encoding.zh-cn.md +0 -152
- package/external/rapidjson/doc/faq.md +0 -289
- package/external/rapidjson/doc/faq.zh-cn.md +0 -290
- package/external/rapidjson/doc/features.md +0 -104
- package/external/rapidjson/doc/features.zh-cn.md +0 -103
- package/external/rapidjson/doc/internals.md +0 -368
- package/external/rapidjson/doc/internals.zh-cn.md +0 -363
- package/external/rapidjson/doc/logo/rapidjson.png +0 -0
- package/external/rapidjson/doc/logo/rapidjson.svg +0 -119
- package/external/rapidjson/doc/misc/DoxygenLayout.xml +0 -194
- package/external/rapidjson/doc/misc/doxygenextra.css +0 -274
- package/external/rapidjson/doc/misc/footer.html +0 -11
- package/external/rapidjson/doc/misc/header.html +0 -24
- package/external/rapidjson/doc/npm.md +0 -31
- package/external/rapidjson/doc/performance.md +0 -26
- package/external/rapidjson/doc/performance.zh-cn.md +0 -26
- package/external/rapidjson/doc/pointer.md +0 -234
- package/external/rapidjson/doc/pointer.zh-cn.md +0 -234
- package/external/rapidjson/doc/sax.md +0 -509
- package/external/rapidjson/doc/sax.zh-cn.md +0 -487
- package/external/rapidjson/doc/schema.md +0 -505
- package/external/rapidjson/doc/schema.zh-cn.md +0 -237
- package/external/rapidjson/doc/stream.md +0 -429
- package/external/rapidjson/doc/stream.zh-cn.md +0 -429
- package/external/rapidjson/doc/tutorial.md +0 -536
- package/external/rapidjson/doc/tutorial.zh-cn.md +0 -535
- package/external/rapidjson/docker/debian/Dockerfile +0 -8
- package/external/rapidjson/example/CMakeLists.txt +0 -45
- package/external/rapidjson/example/archiver/archiver.cpp +0 -292
- package/external/rapidjson/example/archiver/archiver.h +0 -145
- package/external/rapidjson/example/archiver/archivertest.cpp +0 -287
- package/external/rapidjson/example/capitalize/capitalize.cpp +0 -67
- package/external/rapidjson/example/condense/condense.cpp +0 -32
- package/external/rapidjson/example/filterkey/filterkey.cpp +0 -135
- package/external/rapidjson/example/filterkeydom/filterkeydom.cpp +0 -170
- package/external/rapidjson/example/jsonx/jsonx.cpp +0 -207
- package/external/rapidjson/example/lookaheadparser/lookaheadparser.cpp +0 -350
- package/external/rapidjson/example/messagereader/messagereader.cpp +0 -105
- package/external/rapidjson/example/parsebyparts/parsebyparts.cpp +0 -176
- package/external/rapidjson/example/pretty/pretty.cpp +0 -30
- package/external/rapidjson/example/prettyauto/prettyauto.cpp +0 -56
- package/external/rapidjson/example/schemavalidator/schemavalidator.cpp +0 -78
- package/external/rapidjson/example/serialize/serialize.cpp +0 -173
- package/external/rapidjson/example/simpledom/simpledom.cpp +0 -29
- package/external/rapidjson/example/simplepullreader/simplepullreader.cpp +0 -53
- package/external/rapidjson/example/simplereader/simplereader.cpp +0 -42
- package/external/rapidjson/example/simplewriter/simplewriter.cpp +0 -36
- package/external/rapidjson/example/tutorial/tutorial.cpp +0 -151
- package/external/rapidjson/include/rapidjson/allocators.h +0 -284
- package/external/rapidjson/include/rapidjson/cursorstreamwrapper.h +0 -78
- package/external/rapidjson/include/rapidjson/document.h +0 -2646
- package/external/rapidjson/include/rapidjson/encodedstream.h +0 -299
- package/external/rapidjson/include/rapidjson/encodings.h +0 -716
- package/external/rapidjson/include/rapidjson/error/en.h +0 -74
- package/external/rapidjson/include/rapidjson/error/error.h +0 -161
- package/external/rapidjson/include/rapidjson/filereadstream.h +0 -99
- package/external/rapidjson/include/rapidjson/filewritestream.h +0 -104
- package/external/rapidjson/include/rapidjson/fwd.h +0 -151
- package/external/rapidjson/include/rapidjson/internal/biginteger.h +0 -290
- package/external/rapidjson/include/rapidjson/internal/diyfp.h +0 -271
- package/external/rapidjson/include/rapidjson/internal/dtoa.h +0 -245
- package/external/rapidjson/include/rapidjson/internal/ieee754.h +0 -78
- package/external/rapidjson/include/rapidjson/internal/itoa.h +0 -308
- package/external/rapidjson/include/rapidjson/internal/meta.h +0 -186
- package/external/rapidjson/include/rapidjson/internal/pow10.h +0 -55
- package/external/rapidjson/include/rapidjson/internal/regex.h +0 -732
- package/external/rapidjson/include/rapidjson/internal/stack.h +0 -231
- package/external/rapidjson/include/rapidjson/internal/strfunc.h +0 -69
- package/external/rapidjson/include/rapidjson/internal/strtod.h +0 -290
- package/external/rapidjson/include/rapidjson/internal/swap.h +0 -46
- package/external/rapidjson/include/rapidjson/istreamwrapper.h +0 -113
- package/external/rapidjson/include/rapidjson/memorybuffer.h +0 -70
- package/external/rapidjson/include/rapidjson/memorystream.h +0 -71
- package/external/rapidjson/include/rapidjson/msinttypes/inttypes.h +0 -316
- package/external/rapidjson/include/rapidjson/msinttypes/stdint.h +0 -300
- package/external/rapidjson/include/rapidjson/ostreamwrapper.h +0 -81
- package/external/rapidjson/include/rapidjson/pointer.h +0 -1357
- package/external/rapidjson/include/rapidjson/prettywriter.h +0 -277
- package/external/rapidjson/include/rapidjson/rapidjson.h +0 -654
- package/external/rapidjson/include/rapidjson/reader.h +0 -2230
- package/external/rapidjson/include/rapidjson/schema.h +0 -2494
- package/external/rapidjson/include/rapidjson/stream.h +0 -223
- package/external/rapidjson/include/rapidjson/stringbuffer.h +0 -121
- package/external/rapidjson/include/rapidjson/writer.h +0 -710
- package/external/rapidjson/include_dirs.js +0 -2
- package/external/rapidjson/library.json +0 -15
- package/external/rapidjson/license.txt +0 -57
- package/external/rapidjson/package.json +0 -24
- package/external/rapidjson/rapidjson.autopkg +0 -77
- package/external/rapidjson/readme.md +0 -160
- package/external/rapidjson/readme.zh-cn.md +0 -152
- package/external/rapidjson/test/CMakeLists.txt +0 -20
- package/external/rapidjson/test/perftest/CMakeLists.txt +0 -28
- package/external/rapidjson/test/perftest/misctest.cpp +0 -974
- package/external/rapidjson/test/perftest/perftest.cpp +0 -24
- package/external/rapidjson/test/perftest/perftest.h +0 -185
- package/external/rapidjson/test/perftest/platformtest.cpp +0 -166
- package/external/rapidjson/test/perftest/rapidjsontest.cpp +0 -472
- package/external/rapidjson/test/perftest/schematest.cpp +0 -223
- package/external/rapidjson/test/unittest/CMakeLists.txt +0 -92
- package/external/rapidjson/test/unittest/allocatorstest.cpp +0 -100
- package/external/rapidjson/test/unittest/bigintegertest.cpp +0 -138
- package/external/rapidjson/test/unittest/cursorstreamwrappertest.cpp +0 -115
- package/external/rapidjson/test/unittest/documenttest.cpp +0 -672
- package/external/rapidjson/test/unittest/dtoatest.cpp +0 -98
- package/external/rapidjson/test/unittest/encodedstreamtest.cpp +0 -313
- package/external/rapidjson/test/unittest/encodingstest.cpp +0 -451
- package/external/rapidjson/test/unittest/filestreamtest.cpp +0 -112
- package/external/rapidjson/test/unittest/fwdtest.cpp +0 -230
- package/external/rapidjson/test/unittest/istreamwrappertest.cpp +0 -181
- package/external/rapidjson/test/unittest/itoatest.cpp +0 -160
- package/external/rapidjson/test/unittest/jsoncheckertest.cpp +0 -143
- package/external/rapidjson/test/unittest/namespacetest.cpp +0 -70
- package/external/rapidjson/test/unittest/ostreamwrappertest.cpp +0 -92
- package/external/rapidjson/test/unittest/pointertest.cpp +0 -1529
- package/external/rapidjson/test/unittest/prettywritertest.cpp +0 -373
- package/external/rapidjson/test/unittest/readertest.cpp +0 -2190
- package/external/rapidjson/test/unittest/regextest.cpp +0 -638
- package/external/rapidjson/test/unittest/schematest.cpp +0 -2072
- package/external/rapidjson/test/unittest/simdtest.cpp +0 -219
- package/external/rapidjson/test/unittest/strfunctest.cpp +0 -30
- package/external/rapidjson/test/unittest/stringbuffertest.cpp +0 -192
- package/external/rapidjson/test/unittest/strtodtest.cpp +0 -132
- package/external/rapidjson/test/unittest/unittest.cpp +0 -51
- package/external/rapidjson/test/unittest/unittest.h +0 -140
- package/external/rapidjson/test/unittest/valuetest.cpp +0 -1851
- package/external/rapidjson/test/unittest/writertest.cpp +0 -598
- package/external/rapidjson/test/valgrind.supp +0 -17
- package/external/rapidjson/thirdparty/gtest/.travis.yml +0 -81
- package/external/rapidjson/thirdparty/gtest/BUILD.bazel +0 -175
- package/external/rapidjson/thirdparty/gtest/CMakeLists.txt +0 -33
- package/external/rapidjson/thirdparty/gtest/CONTRIBUTING.md +0 -160
- package/external/rapidjson/thirdparty/gtest/LICENSE +0 -28
- package/external/rapidjson/thirdparty/gtest/Makefile.am +0 -14
- package/external/rapidjson/thirdparty/gtest/README.md +0 -122
- package/external/rapidjson/thirdparty/gtest/WORKSPACE +0 -8
- package/external/rapidjson/thirdparty/gtest/appveyor.yml +0 -104
- package/external/rapidjson/thirdparty/gtest/ci/build-linux-autotools.sh +0 -44
- package/external/rapidjson/thirdparty/gtest/ci/build-linux-bazel.sh +0 -36
- package/external/rapidjson/thirdparty/gtest/ci/env-linux.sh +0 -41
- package/external/rapidjson/thirdparty/gtest/ci/env-osx.sh +0 -40
- package/external/rapidjson/thirdparty/gtest/ci/get-nprocessors.sh +0 -48
- package/external/rapidjson/thirdparty/gtest/ci/install-linux.sh +0 -49
- package/external/rapidjson/thirdparty/gtest/ci/install-osx.sh +0 -39
- package/external/rapidjson/thirdparty/gtest/ci/log-config.sh +0 -51
- package/external/rapidjson/thirdparty/gtest/ci/travis.sh +0 -44
- package/external/rapidjson/thirdparty/gtest/configure.ac +0 -16
- package/external/rapidjson/thirdparty/gtest/googlemock/CHANGES +0 -126
- package/external/rapidjson/thirdparty/gtest/googlemock/CMakeLists.txt +0 -242
- package/external/rapidjson/thirdparty/gtest/googlemock/CONTRIBUTORS +0 -40
- package/external/rapidjson/thirdparty/gtest/googlemock/LICENSE +0 -28
- package/external/rapidjson/thirdparty/gtest/googlemock/Makefile.am +0 -224
- package/external/rapidjson/thirdparty/gtest/googlemock/README.md +0 -344
- package/external/rapidjson/thirdparty/gtest/googlemock/build-aux/.keep +0 -0
- package/external/rapidjson/thirdparty/gtest/googlemock/cmake/gmock.pc.in +0 -9
- package/external/rapidjson/thirdparty/gtest/googlemock/cmake/gmock_main.pc.in +0 -9
- package/external/rapidjson/thirdparty/gtest/googlemock/configure.ac +0 -146
- package/external/rapidjson/thirdparty/gtest/googlemock/docs/CheatSheet.md +0 -564
- package/external/rapidjson/thirdparty/gtest/googlemock/docs/CookBook.md +0 -3660
- package/external/rapidjson/thirdparty/gtest/googlemock/docs/DesignDoc.md +0 -280
- package/external/rapidjson/thirdparty/gtest/googlemock/docs/Documentation.md +0 -15
- package/external/rapidjson/thirdparty/gtest/googlemock/docs/ForDummies.md +0 -447
- package/external/rapidjson/thirdparty/gtest/googlemock/docs/FrequentlyAskedQuestions.md +0 -627
- package/external/rapidjson/thirdparty/gtest/googlemock/docs/KnownIssues.md +0 -19
- package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-actions.h +0 -1262
- package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-cardinalities.h +0 -147
- package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-actions.h +0 -2571
- package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-actions.h.pump +0 -833
- package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-function-mockers.h +0 -1379
- package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-function-mockers.h.pump +0 -347
- package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-matchers.h +0 -2258
- package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-matchers.h.pump +0 -675
- package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-nice-strict.h +0 -458
- package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-nice-strict.h.pump +0 -178
- package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-matchers.h +0 -5255
- package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-more-actions.h +0 -246
- package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-more-matchers.h +0 -91
- package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-spec-builders.h +0 -1918
- package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock.h +0 -95
- package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-generated-actions.h +0 -8
- package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-generated-actions.h.pump +0 -10
- package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-matchers.h +0 -38
- package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-port.h +0 -46
- package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-generated-internal-utils.h +0 -286
- package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-generated-internal-utils.h.pump +0 -136
- package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-internal-utils.h +0 -574
- package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-port.h +0 -87
- package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock.sln +0 -32
- package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock.vcproj +0 -191
- package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock_config.vsprops +0 -15
- package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock_main.vcproj +0 -187
- package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock_test.vcproj +0 -201
- package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock.sln +0 -46
- package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock.vcxproj +0 -145
- package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock_config.props +0 -19
- package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock_main.vcxproj +0 -151
- package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock_test.vcxproj +0 -176
- package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock.sln +0 -46
- package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock.vcxproj +0 -145
- package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock_config.props +0 -19
- package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock_main.vcxproj +0 -151
- package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock_test.vcxproj +0 -176
- package/external/rapidjson/thirdparty/gtest/googlemock/scripts/fuse_gmock_files.py +0 -240
- package/external/rapidjson/thirdparty/gtest/googlemock/scripts/generator/LICENSE +0 -203
- package/external/rapidjson/thirdparty/gtest/googlemock/scripts/generator/README +0 -34
- package/external/rapidjson/thirdparty/gtest/googlemock/scripts/generator/README.cppclean +0 -115
- package/external/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/__init__.py +0 -0
- package/external/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/ast.py +0 -1733
- package/external/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/gmock_class.py +0 -227
- package/external/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/gmock_class_test.py +0 -448
- package/external/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/keywords.py +0 -59
- package/external/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/tokenize.py +0 -287
- package/external/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/utils.py +0 -41
- package/external/rapidjson/thirdparty/gtest/googlemock/scripts/generator/gmock_gen.py +0 -31
- package/external/rapidjson/thirdparty/gtest/googlemock/scripts/gmock-config.in +0 -303
- package/external/rapidjson/thirdparty/gtest/googlemock/scripts/gmock_doctor.py +0 -640
- package/external/rapidjson/thirdparty/gtest/googlemock/scripts/upload.py +0 -1387
- package/external/rapidjson/thirdparty/gtest/googlemock/scripts/upload_gmock.py +0 -78
- package/external/rapidjson/thirdparty/gtest/googlemock/src/gmock-all.cc +0 -47
- package/external/rapidjson/thirdparty/gtest/googlemock/src/gmock-cardinalities.cc +0 -156
- package/external/rapidjson/thirdparty/gtest/googlemock/src/gmock-internal-utils.cc +0 -204
- package/external/rapidjson/thirdparty/gtest/googlemock/src/gmock-matchers.cc +0 -573
- package/external/rapidjson/thirdparty/gtest/googlemock/src/gmock-spec-builders.cc +0 -883
- package/external/rapidjson/thirdparty/gtest/googlemock/src/gmock.cc +0 -205
- package/external/rapidjson/thirdparty/gtest/googlemock/src/gmock_main.cc +0 -54
- package/external/rapidjson/thirdparty/gtest/googlemock/test/BUILD.bazel +0 -123
- package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock-actions_test.cc +0 -1575
- package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock-cardinalities_test.cc +0 -428
- package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-actions_test.cc +0 -1230
- package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-function-mockers_test.cc +0 -647
- package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-internal-utils_test.cc +0 -129
- package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-matchers_test.cc +0 -1341
- package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock-internal-utils_test.cc +0 -718
- package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock-matchers_test.cc +0 -6767
- package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock-more-actions_test.cc +0 -710
- package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock-nice-strict_test.cc +0 -511
- package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock-port_test.cc +0 -43
- package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock-spec-builders_test.cc +0 -2771
- package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock_all_test.cc +0 -51
- package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock_ex_test.cc +0 -81
- package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock_leak_test.py +0 -108
- package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock_leak_test_.cc +0 -100
- package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock_link2_test.cc +0 -40
- package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock_link_test.cc +0 -40
- package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock_link_test.h +0 -691
- package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock_output_test.py +0 -183
- package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock_output_test_.cc +0 -310
- package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock_output_test_golden.txt +0 -317
- package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock_stress_test.cc +0 -323
- package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock_test.cc +0 -262
- package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock_test_utils.py +0 -110
- package/external/rapidjson/thirdparty/gtest/googletest/CHANGES +0 -157
- package/external/rapidjson/thirdparty/gtest/googletest/CMakeLists.txt +0 -312
- package/external/rapidjson/thirdparty/gtest/googletest/CONTRIBUTORS +0 -37
- package/external/rapidjson/thirdparty/gtest/googletest/LICENSE +0 -28
- package/external/rapidjson/thirdparty/gtest/googletest/Makefile.am +0 -339
- package/external/rapidjson/thirdparty/gtest/googletest/README.md +0 -341
- package/external/rapidjson/thirdparty/gtest/googletest/cmake/gtest.pc.in +0 -9
- package/external/rapidjson/thirdparty/gtest/googletest/cmake/gtest_main.pc.in +0 -10
- package/external/rapidjson/thirdparty/gtest/googletest/cmake/internal_utils.cmake +0 -280
- package/external/rapidjson/thirdparty/gtest/googletest/codegear/gtest.cbproj +0 -138
- package/external/rapidjson/thirdparty/gtest/googletest/codegear/gtest.groupproj +0 -54
- package/external/rapidjson/thirdparty/gtest/googletest/codegear/gtest_all.cc +0 -38
- package/external/rapidjson/thirdparty/gtest/googletest/codegear/gtest_link.cc +0 -40
- package/external/rapidjson/thirdparty/gtest/googletest/codegear/gtest_main.cbproj +0 -82
- package/external/rapidjson/thirdparty/gtest/googletest/codegear/gtest_unittest.cbproj +0 -88
- package/external/rapidjson/thirdparty/gtest/googletest/configure.ac +0 -68
- package/external/rapidjson/thirdparty/gtest/googletest/docs/Pkgconfig.md +0 -146
- package/external/rapidjson/thirdparty/gtest/googletest/docs/PumpManual.md +0 -177
- package/external/rapidjson/thirdparty/gtest/googletest/docs/XcodeGuide.md +0 -93
- package/external/rapidjson/thirdparty/gtest/googletest/docs/advanced.md +0 -2416
- package/external/rapidjson/thirdparty/gtest/googletest/docs/faq.md +0 -1092
- package/external/rapidjson/thirdparty/gtest/googletest/docs/primer.md +0 -536
- package/external/rapidjson/thirdparty/gtest/googletest/docs/samples.md +0 -14
- package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-death-test.h +0 -342
- package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-message.h +0 -249
- package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-param-test.h +0 -1438
- package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-param-test.h.pump +0 -501
- package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-printers.h +0 -1082
- package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-spi.h +0 -231
- package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-test-part.h +0 -179
- package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-typed-test.h +0 -264
- package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest.h +0 -2332
- package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest_pred_impl.h +0 -357
- package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest_prod.h +0 -61
- package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/custom/gtest-port.h +0 -70
- package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/custom/gtest-printers.h +0 -42
- package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/custom/gtest.h +0 -45
- package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-death-test-internal.h +0 -275
- package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-filepath.h +0 -205
- package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-internal.h +0 -1277
- package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-linked_ptr.h +0 -243
- package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-param-util-generated.h +0 -5139
- package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-param-util-generated.h.pump +0 -279
- package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-param-util.h +0 -723
- package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-port-arch.h +0 -100
- package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-port.h +0 -2687
- package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-string.h +0 -167
- package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-tuple.h +0 -1020
- package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-tuple.h.pump +0 -347
- package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-type-util.h +0 -3347
- package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-type-util.h.pump +0 -313
- package/external/rapidjson/thirdparty/gtest/googletest/m4/acx_pthread.m4 +0 -363
- package/external/rapidjson/thirdparty/gtest/googletest/m4/gtest.m4 +0 -74
- package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest-md.sln +0 -55
- package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest-md.vcxproj +0 -149
- package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest-md.vcxproj.filters +0 -18
- package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest.sln +0 -55
- package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest.vcxproj +0 -149
- package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest.vcxproj.filters +0 -18
- package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_main-md.vcxproj +0 -154
- package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_main-md.vcxproj.filters +0 -18
- package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_main.vcxproj +0 -162
- package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_main.vcxproj.filters +0 -18
- package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_prod_test-md.vcxproj +0 -199
- package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_prod_test-md.vcxproj.filters +0 -26
- package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_prod_test.vcxproj +0 -191
- package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_prod_test.vcxproj.filters +0 -26
- package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_unittest-md.vcxproj +0 -188
- package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_unittest-md.vcxproj.filters +0 -18
- package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_unittest.vcxproj +0 -180
- package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_unittest.vcxproj.filters +0 -18
- package/external/rapidjson/thirdparty/gtest/googletest/samples/prime_tables.h +0 -127
- package/external/rapidjson/thirdparty/gtest/googletest/samples/sample1.cc +0 -68
- package/external/rapidjson/thirdparty/gtest/googletest/samples/sample1.h +0 -43
- package/external/rapidjson/thirdparty/gtest/googletest/samples/sample10_unittest.cc +0 -140
- package/external/rapidjson/thirdparty/gtest/googletest/samples/sample1_unittest.cc +0 -154
- package/external/rapidjson/thirdparty/gtest/googletest/samples/sample2.cc +0 -56
- package/external/rapidjson/thirdparty/gtest/googletest/samples/sample2.h +0 -85
- package/external/rapidjson/thirdparty/gtest/googletest/samples/sample2_unittest.cc +0 -110
- package/external/rapidjson/thirdparty/gtest/googletest/samples/sample3-inl.h +0 -172
- package/external/rapidjson/thirdparty/gtest/googletest/samples/sample3_unittest.cc +0 -152
- package/external/rapidjson/thirdparty/gtest/googletest/samples/sample4.cc +0 -46
- package/external/rapidjson/thirdparty/gtest/googletest/samples/sample4.h +0 -53
- package/external/rapidjson/thirdparty/gtest/googletest/samples/sample4_unittest.cc +0 -49
- package/external/rapidjson/thirdparty/gtest/googletest/samples/sample5_unittest.cc +0 -199
- package/external/rapidjson/thirdparty/gtest/googletest/samples/sample6_unittest.cc +0 -225
- package/external/rapidjson/thirdparty/gtest/googletest/samples/sample7_unittest.cc +0 -118
- package/external/rapidjson/thirdparty/gtest/googletest/samples/sample8_unittest.cc +0 -174
- package/external/rapidjson/thirdparty/gtest/googletest/samples/sample9_unittest.cc +0 -157
- package/external/rapidjson/thirdparty/gtest/googletest/scripts/common.py +0 -83
- package/external/rapidjson/thirdparty/gtest/googletest/scripts/fuse_gtest_files.py +0 -253
- package/external/rapidjson/thirdparty/gtest/googletest/scripts/gen_gtest_pred_impl.py +0 -730
- package/external/rapidjson/thirdparty/gtest/googletest/scripts/gtest-config.in +0 -274
- package/external/rapidjson/thirdparty/gtest/googletest/scripts/pump.py +0 -855
- package/external/rapidjson/thirdparty/gtest/googletest/scripts/release_docs.py +0 -158
- package/external/rapidjson/thirdparty/gtest/googletest/scripts/upload.py +0 -1387
- package/external/rapidjson/thirdparty/gtest/googletest/scripts/upload_gtest.py +0 -78
- package/external/rapidjson/thirdparty/gtest/googletest/src/gtest-all.cc +0 -48
- package/external/rapidjson/thirdparty/gtest/googletest/src/gtest-death-test.cc +0 -1536
- package/external/rapidjson/thirdparty/gtest/googletest/src/gtest-filepath.cc +0 -385
- package/external/rapidjson/thirdparty/gtest/googletest/src/gtest-internal-inl.h +0 -1175
- package/external/rapidjson/thirdparty/gtest/googletest/src/gtest-port.cc +0 -1277
- package/external/rapidjson/thirdparty/gtest/googletest/src/gtest-printers.cc +0 -458
- package/external/rapidjson/thirdparty/gtest/googletest/src/gtest-test-part.cc +0 -102
- package/external/rapidjson/thirdparty/gtest/googletest/src/gtest-typed-test.cc +0 -119
- package/external/rapidjson/thirdparty/gtest/googletest/src/gtest.cc +0 -5846
- package/external/rapidjson/thirdparty/gtest/googletest/src/gtest_main.cc +0 -38
- package/external/rapidjson/thirdparty/gtest/googletest/test/BUILD.bazel +0 -396
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-death-test_ex_test.cc +0 -93
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-death-test_test.cc +0 -1424
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-filepath_test.cc +0 -652
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-linked_ptr_test.cc +0 -154
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-listener_test.cc +0 -311
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-message_test.cc +0 -159
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-options_test.cc +0 -213
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-param-test2_test.cc +0 -61
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-param-test_test.cc +0 -1110
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-param-test_test.h +0 -53
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-port_test.cc +0 -1303
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-printers_test.cc +0 -1737
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-test-part_test.cc +0 -208
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-tuple_test.cc +0 -320
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-typed-test2_test.cc +0 -45
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-typed-test_test.cc +0 -380
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-typed-test_test.h +0 -66
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-unittest-api_test.cc +0 -341
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_all_test.cc +0 -47
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_assert_by_exception_test.cc +0 -119
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_break_on_failure_unittest.py +0 -210
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_break_on_failure_unittest_.cc +0 -87
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_catch_exceptions_test.py +0 -235
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_catch_exceptions_test_.cc +0 -311
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_color_test.py +0 -129
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_color_test_.cc +0 -63
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_env_var_test.py +0 -119
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_env_var_test_.cc +0 -124
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_environment_test.cc +0 -189
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_filter_unittest.py +0 -638
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_filter_unittest_.cc +0 -138
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_help_test.py +0 -172
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_help_test_.cc +0 -46
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_json_outfiles_test.py +0 -162
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_json_output_unittest.py +0 -611
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_json_test_utils.py +0 -60
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_list_tests_unittest.py +0 -207
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_list_tests_unittest_.cc +0 -157
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_main_unittest.cc +0 -45
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_no_test_unittest.cc +0 -56
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_output_test.py +0 -344
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_output_test_.cc +0 -1067
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_output_test_golden_lin.txt +0 -781
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_pred_impl_unittest.cc +0 -2427
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_premature_exit_test.cc +0 -127
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_prod_test.cc +0 -57
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_repeat_test.cc +0 -236
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_shuffle_test.py +0 -325
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_shuffle_test_.cc +0 -103
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_sole_header_test.cc +0 -57
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_stress_test.cc +0 -250
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_test_utils.py +0 -318
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_testbridge_test.py +0 -65
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_testbridge_test_.cc +0 -44
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_throw_on_failure_ex_test.cc +0 -92
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_throw_on_failure_test.py +0 -171
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_throw_on_failure_test_.cc +0 -72
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_uninitialized_test.py +0 -69
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_uninitialized_test_.cc +0 -43
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_unittest.cc +0 -7797
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_outfile1_test_.cc +0 -48
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_outfile2_test_.cc +0 -48
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_outfiles_test.py +0 -140
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_output_unittest.py +0 -378
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_output_unittest_.cc +0 -179
- package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_test_utils.py +0 -196
- package/external/rapidjson/thirdparty/gtest/googletest/test/production.cc +0 -36
- package/external/rapidjson/thirdparty/gtest/googletest/test/production.h +0 -55
- package/external/rapidjson/thirdparty/gtest/googletest/xcode/Config/DebugProject.xcconfig +0 -30
- package/external/rapidjson/thirdparty/gtest/googletest/xcode/Config/FrameworkTarget.xcconfig +0 -17
- package/external/rapidjson/thirdparty/gtest/googletest/xcode/Config/General.xcconfig +0 -41
- package/external/rapidjson/thirdparty/gtest/googletest/xcode/Config/ReleaseProject.xcconfig +0 -32
- package/external/rapidjson/thirdparty/gtest/googletest/xcode/Config/StaticLibraryTarget.xcconfig +0 -18
- package/external/rapidjson/thirdparty/gtest/googletest/xcode/Config/TestTarget.xcconfig +0 -8
- package/external/rapidjson/thirdparty/gtest/googletest/xcode/Resources/Info.plist +0 -30
- package/external/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/Info.plist +0 -28
- package/external/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/WidgetFramework.xcodeproj/project.pbxproj +0 -457
- package/external/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/runtests.sh +0 -62
- package/external/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/widget.cc +0 -63
- package/external/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/widget.h +0 -59
- package/external/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/widget_test.cc +0 -68
- package/external/rapidjson/thirdparty/gtest/googletest/xcode/Scripts/runtests.sh +0 -65
- package/external/rapidjson/thirdparty/gtest/googletest/xcode/Scripts/versiongenerate.py +0 -100
- package/external/rapidjson/thirdparty/gtest/googletest/xcode/gtest.xcodeproj/project.pbxproj +0 -1182
- package/external/rapidjson/travis-doxygen.sh +0 -121
- package/include/.clang-format +0 -76
- package/include/eosio/abi.hpp +0 -286
- package/include/eosio/asset.hpp +0 -458
- package/include/eosio/bytes.hpp +0 -27
- package/include/eosio/chain_conversions.hpp +0 -450
- package/include/eosio/chain_types.hpp +0 -14
- package/include/eosio/check.hpp +0 -178
- package/include/eosio/convert.hpp +0 -95
- package/include/eosio/crypto.hpp +0 -147
- package/include/eosio/eosio_outcome.hpp +0 -41
- package/include/eosio/fixed_bytes.hpp +0 -246
- package/include/eosio/float.hpp +0 -35
- package/include/eosio/for_each_field.hpp +0 -48
- package/include/eosio/fpconv.c +0 -336
- package/include/eosio/fpconv.h +0 -41
- package/include/eosio/fpconv.license +0 -23
- package/include/eosio/from_bin.hpp +0 -272
- package/include/eosio/from_json.hpp +0 -737
- package/include/eosio/from_string.hpp +0 -28
- package/include/eosio/map_macro.h +0 -64
- package/include/eosio/murmur.hpp +0 -55
- package/include/eosio/name.hpp +0 -174
- package/include/eosio/opaque.hpp +0 -108
- package/include/eosio/operators.hpp +0 -71
- package/include/eosio/powers.h +0 -76
- package/include/eosio/reflection.hpp +0 -61
- package/include/eosio/ship_protocol.hpp +0 -850
- package/include/eosio/stream.hpp +0 -231
- package/include/eosio/symbol.hpp +0 -300
- package/include/eosio/time.hpp +0 -264
- package/include/eosio/to_bin.hpp +0 -189
- package/include/eosio/to_json.hpp +0 -279
- package/include/eosio/to_key.hpp +0 -298
- package/include/eosio/types.hpp +0 -97
- package/include/eosio/varint.hpp +0 -452
- package/include/outcome-basic.hpp +0 -6836
- package/src/abi.cpp +0 -297
- package/src/abieos.cpp +0 -263
- package/src/abieos.h +0 -76
- package/src/abieos.hpp +0 -1010
- package/src/abieos_exception.hpp +0 -89
- package/src/abieos_numeric.hpp +0 -94
- package/src/abieos_ripemd160.hpp +0 -417
- package/src/crypto.cpp +0 -215
- package/src/key_test.cpp +0 -218
- package/src/main.cpp +0 -242
- package/src/reflect_test.cpp +0 -28
- package/src/template_test.cpp +0 -240
- package/src/test.cpp +0 -940
- package/tools/CMakeLists.txt +0 -9
- package/tools/name.cpp +0 -86
package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-internal-utils.h
DELETED
|
@@ -1,574 +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
|
-
#include "gmock/internal/gmock-generated-internal-utils.h"
|
|
45
|
-
#include "gmock/internal/gmock-port.h"
|
|
46
|
-
#include "gtest/gtest.h"
|
|
47
|
-
|
|
48
|
-
namespace testing {
|
|
49
|
-
namespace internal {
|
|
50
|
-
|
|
51
|
-
// Silence MSVC C4100 (unreferenced formal parameter) and
|
|
52
|
-
// C4805('==': unsafe mix of type 'const int' and type 'const bool')
|
|
53
|
-
#ifdef _MSC_VER
|
|
54
|
-
# pragma warning(push)
|
|
55
|
-
# pragma warning(disable:4100)
|
|
56
|
-
# pragma warning(disable:4805)
|
|
57
|
-
#endif
|
|
58
|
-
|
|
59
|
-
// Joins a vector of strings as if they are fields of a tuple; returns
|
|
60
|
-
// the joined string.
|
|
61
|
-
GTEST_API_ std::string JoinAsTuple(const Strings& fields);
|
|
62
|
-
|
|
63
|
-
// Converts an identifier name to a space-separated list of lower-case
|
|
64
|
-
// words. Each maximum substring of the form [A-Za-z][a-z]*|\d+ is
|
|
65
|
-
// treated as one word. For example, both "FooBar123" and
|
|
66
|
-
// "foo_bar_123" are converted to "foo bar 123".
|
|
67
|
-
GTEST_API_ std::string ConvertIdentifierNameToWords(const char* id_name);
|
|
68
|
-
|
|
69
|
-
// PointeeOf<Pointer>::type is the type of a value pointed to by a
|
|
70
|
-
// Pointer, which can be either a smart pointer or a raw pointer. The
|
|
71
|
-
// following default implementation is for the case where Pointer is a
|
|
72
|
-
// smart pointer.
|
|
73
|
-
template <typename Pointer>
|
|
74
|
-
struct PointeeOf {
|
|
75
|
-
// Smart pointer classes define type element_type as the type of
|
|
76
|
-
// their pointees.
|
|
77
|
-
typedef typename Pointer::element_type type;
|
|
78
|
-
};
|
|
79
|
-
// This specialization is for the raw pointer case.
|
|
80
|
-
template <typename T>
|
|
81
|
-
struct PointeeOf<T*> { typedef T type; }; // NOLINT
|
|
82
|
-
|
|
83
|
-
// GetRawPointer(p) returns the raw pointer underlying p when p is a
|
|
84
|
-
// smart pointer, or returns p itself when p is already a raw pointer.
|
|
85
|
-
// The following default implementation is for the smart pointer case.
|
|
86
|
-
template <typename Pointer>
|
|
87
|
-
inline const typename Pointer::element_type* GetRawPointer(const Pointer& p) {
|
|
88
|
-
return p.get();
|
|
89
|
-
}
|
|
90
|
-
// This overloaded version is for the raw pointer case.
|
|
91
|
-
template <typename Element>
|
|
92
|
-
inline Element* GetRawPointer(Element* p) { return p; }
|
|
93
|
-
|
|
94
|
-
// This comparator allows linked_ptr to be stored in sets.
|
|
95
|
-
template <typename T>
|
|
96
|
-
struct LinkedPtrLessThan {
|
|
97
|
-
bool operator()(const ::testing::internal::linked_ptr<T>& lhs,
|
|
98
|
-
const ::testing::internal::linked_ptr<T>& rhs) const {
|
|
99
|
-
return lhs.get() < rhs.get();
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
// Symbian compilation can be done with wchar_t being either a native
|
|
104
|
-
// type or a typedef. Using Google Mock with OpenC without wchar_t
|
|
105
|
-
// should require the definition of _STLP_NO_WCHAR_T.
|
|
106
|
-
//
|
|
107
|
-
// MSVC treats wchar_t as a native type usually, but treats it as the
|
|
108
|
-
// same as unsigned short when the compiler option /Zc:wchar_t- is
|
|
109
|
-
// specified. It defines _NATIVE_WCHAR_T_DEFINED symbol when wchar_t
|
|
110
|
-
// is a native type.
|
|
111
|
-
#if (GTEST_OS_SYMBIAN && defined(_STLP_NO_WCHAR_T)) || \
|
|
112
|
-
(defined(_MSC_VER) && !defined(_NATIVE_WCHAR_T_DEFINED))
|
|
113
|
-
// wchar_t is a typedef.
|
|
114
|
-
#else
|
|
115
|
-
# define GMOCK_WCHAR_T_IS_NATIVE_ 1
|
|
116
|
-
#endif
|
|
117
|
-
|
|
118
|
-
// signed wchar_t and unsigned wchar_t are NOT in the C++ standard.
|
|
119
|
-
// Using them is a bad practice and not portable. So DON'T use them.
|
|
120
|
-
//
|
|
121
|
-
// Still, Google Mock is designed to work even if the user uses signed
|
|
122
|
-
// wchar_t or unsigned wchar_t (obviously, assuming the compiler
|
|
123
|
-
// supports them).
|
|
124
|
-
//
|
|
125
|
-
// To gcc,
|
|
126
|
-
// wchar_t == signed wchar_t != unsigned wchar_t == unsigned int
|
|
127
|
-
#ifdef __GNUC__
|
|
128
|
-
#if !defined(__WCHAR_UNSIGNED__)
|
|
129
|
-
// signed/unsigned wchar_t are valid types.
|
|
130
|
-
# define GMOCK_HAS_SIGNED_WCHAR_T_ 1
|
|
131
|
-
#endif
|
|
132
|
-
#endif
|
|
133
|
-
|
|
134
|
-
// In what follows, we use the term "kind" to indicate whether a type
|
|
135
|
-
// is bool, an integer type (excluding bool), a floating-point type,
|
|
136
|
-
// or none of them. This categorization is useful for determining
|
|
137
|
-
// when a matcher argument type can be safely converted to another
|
|
138
|
-
// type in the implementation of SafeMatcherCast.
|
|
139
|
-
enum TypeKind {
|
|
140
|
-
kBool, kInteger, kFloatingPoint, kOther
|
|
141
|
-
};
|
|
142
|
-
|
|
143
|
-
// KindOf<T>::value is the kind of type T.
|
|
144
|
-
template <typename T> struct KindOf {
|
|
145
|
-
enum { value = kOther }; // The default kind.
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
// This macro declares that the kind of 'type' is 'kind'.
|
|
149
|
-
#define GMOCK_DECLARE_KIND_(type, kind) \
|
|
150
|
-
template <> struct KindOf<type> { enum { value = kind }; }
|
|
151
|
-
|
|
152
|
-
GMOCK_DECLARE_KIND_(bool, kBool);
|
|
153
|
-
|
|
154
|
-
// All standard integer types.
|
|
155
|
-
GMOCK_DECLARE_KIND_(char, kInteger);
|
|
156
|
-
GMOCK_DECLARE_KIND_(signed char, kInteger);
|
|
157
|
-
GMOCK_DECLARE_KIND_(unsigned char, kInteger);
|
|
158
|
-
GMOCK_DECLARE_KIND_(short, kInteger); // NOLINT
|
|
159
|
-
GMOCK_DECLARE_KIND_(unsigned short, kInteger); // NOLINT
|
|
160
|
-
GMOCK_DECLARE_KIND_(int, kInteger);
|
|
161
|
-
GMOCK_DECLARE_KIND_(unsigned int, kInteger);
|
|
162
|
-
GMOCK_DECLARE_KIND_(long, kInteger); // NOLINT
|
|
163
|
-
GMOCK_DECLARE_KIND_(unsigned long, kInteger); // NOLINT
|
|
164
|
-
|
|
165
|
-
#if GMOCK_WCHAR_T_IS_NATIVE_
|
|
166
|
-
GMOCK_DECLARE_KIND_(wchar_t, kInteger);
|
|
167
|
-
#endif
|
|
168
|
-
|
|
169
|
-
// Non-standard integer types.
|
|
170
|
-
GMOCK_DECLARE_KIND_(Int64, kInteger);
|
|
171
|
-
GMOCK_DECLARE_KIND_(UInt64, kInteger);
|
|
172
|
-
|
|
173
|
-
// All standard floating-point types.
|
|
174
|
-
GMOCK_DECLARE_KIND_(float, kFloatingPoint);
|
|
175
|
-
GMOCK_DECLARE_KIND_(double, kFloatingPoint);
|
|
176
|
-
GMOCK_DECLARE_KIND_(long double, kFloatingPoint);
|
|
177
|
-
|
|
178
|
-
#undef GMOCK_DECLARE_KIND_
|
|
179
|
-
|
|
180
|
-
// Evaluates to the kind of 'type'.
|
|
181
|
-
#define GMOCK_KIND_OF_(type) \
|
|
182
|
-
static_cast< ::testing::internal::TypeKind>( \
|
|
183
|
-
::testing::internal::KindOf<type>::value)
|
|
184
|
-
|
|
185
|
-
// Evaluates to true iff integer type T is signed.
|
|
186
|
-
#define GMOCK_IS_SIGNED_(T) (static_cast<T>(-1) < 0)
|
|
187
|
-
|
|
188
|
-
// LosslessArithmeticConvertibleImpl<kFromKind, From, kToKind, To>::value
|
|
189
|
-
// is true iff arithmetic type From can be losslessly converted to
|
|
190
|
-
// arithmetic type To.
|
|
191
|
-
//
|
|
192
|
-
// It's the user's responsibility to ensure that both From and To are
|
|
193
|
-
// raw (i.e. has no CV modifier, is not a pointer, and is not a
|
|
194
|
-
// reference) built-in arithmetic types, kFromKind is the kind of
|
|
195
|
-
// From, and kToKind is the kind of To; the value is
|
|
196
|
-
// implementation-defined when the above pre-condition is violated.
|
|
197
|
-
template <TypeKind kFromKind, typename From, TypeKind kToKind, typename To>
|
|
198
|
-
struct LosslessArithmeticConvertibleImpl : public false_type {};
|
|
199
|
-
|
|
200
|
-
// Converting bool to bool is lossless.
|
|
201
|
-
template <>
|
|
202
|
-
struct LosslessArithmeticConvertibleImpl<kBool, bool, kBool, bool>
|
|
203
|
-
: public true_type {}; // NOLINT
|
|
204
|
-
|
|
205
|
-
// Converting bool to any integer type is lossless.
|
|
206
|
-
template <typename To>
|
|
207
|
-
struct LosslessArithmeticConvertibleImpl<kBool, bool, kInteger, To>
|
|
208
|
-
: public true_type {}; // NOLINT
|
|
209
|
-
|
|
210
|
-
// Converting bool to any floating-point type is lossless.
|
|
211
|
-
template <typename To>
|
|
212
|
-
struct LosslessArithmeticConvertibleImpl<kBool, bool, kFloatingPoint, To>
|
|
213
|
-
: public true_type {}; // NOLINT
|
|
214
|
-
|
|
215
|
-
// Converting an integer to bool is lossy.
|
|
216
|
-
template <typename From>
|
|
217
|
-
struct LosslessArithmeticConvertibleImpl<kInteger, From, kBool, bool>
|
|
218
|
-
: public false_type {}; // NOLINT
|
|
219
|
-
|
|
220
|
-
// Converting an integer to another non-bool integer is lossless iff
|
|
221
|
-
// the target type's range encloses the source type's range.
|
|
222
|
-
template <typename From, typename To>
|
|
223
|
-
struct LosslessArithmeticConvertibleImpl<kInteger, From, kInteger, To>
|
|
224
|
-
: public bool_constant<
|
|
225
|
-
// When converting from a smaller size to a larger size, we are
|
|
226
|
-
// fine as long as we are not converting from signed to unsigned.
|
|
227
|
-
((sizeof(From) < sizeof(To)) &&
|
|
228
|
-
(!GMOCK_IS_SIGNED_(From) || GMOCK_IS_SIGNED_(To))) ||
|
|
229
|
-
// When converting between the same size, the signedness must match.
|
|
230
|
-
((sizeof(From) == sizeof(To)) &&
|
|
231
|
-
(GMOCK_IS_SIGNED_(From) == GMOCK_IS_SIGNED_(To)))> {}; // NOLINT
|
|
232
|
-
|
|
233
|
-
#undef GMOCK_IS_SIGNED_
|
|
234
|
-
|
|
235
|
-
// Converting an integer to a floating-point type may be lossy, since
|
|
236
|
-
// the format of a floating-point number is implementation-defined.
|
|
237
|
-
template <typename From, typename To>
|
|
238
|
-
struct LosslessArithmeticConvertibleImpl<kInteger, From, kFloatingPoint, To>
|
|
239
|
-
: public false_type {}; // NOLINT
|
|
240
|
-
|
|
241
|
-
// Converting a floating-point to bool is lossy.
|
|
242
|
-
template <typename From>
|
|
243
|
-
struct LosslessArithmeticConvertibleImpl<kFloatingPoint, From, kBool, bool>
|
|
244
|
-
: public false_type {}; // NOLINT
|
|
245
|
-
|
|
246
|
-
// Converting a floating-point to an integer is lossy.
|
|
247
|
-
template <typename From, typename To>
|
|
248
|
-
struct LosslessArithmeticConvertibleImpl<kFloatingPoint, From, kInteger, To>
|
|
249
|
-
: public false_type {}; // NOLINT
|
|
250
|
-
|
|
251
|
-
// Converting a floating-point to another floating-point is lossless
|
|
252
|
-
// iff the target type is at least as big as the source type.
|
|
253
|
-
template <typename From, typename To>
|
|
254
|
-
struct LosslessArithmeticConvertibleImpl<
|
|
255
|
-
kFloatingPoint, From, kFloatingPoint, To>
|
|
256
|
-
: public bool_constant<sizeof(From) <= sizeof(To)> {}; // NOLINT
|
|
257
|
-
|
|
258
|
-
// LosslessArithmeticConvertible<From, To>::value is true iff arithmetic
|
|
259
|
-
// type From can be losslessly converted to arithmetic type To.
|
|
260
|
-
//
|
|
261
|
-
// It's the user's responsibility to ensure that both From and To are
|
|
262
|
-
// raw (i.e. has no CV modifier, is not a pointer, and is not a
|
|
263
|
-
// reference) built-in arithmetic types; the value is
|
|
264
|
-
// implementation-defined when the above pre-condition is violated.
|
|
265
|
-
template <typename From, typename To>
|
|
266
|
-
struct LosslessArithmeticConvertible
|
|
267
|
-
: public LosslessArithmeticConvertibleImpl<
|
|
268
|
-
GMOCK_KIND_OF_(From), From, GMOCK_KIND_OF_(To), To> {}; // NOLINT
|
|
269
|
-
|
|
270
|
-
// This interface knows how to report a Google Mock failure (either
|
|
271
|
-
// non-fatal or fatal).
|
|
272
|
-
class FailureReporterInterface {
|
|
273
|
-
public:
|
|
274
|
-
// The type of a failure (either non-fatal or fatal).
|
|
275
|
-
enum FailureType {
|
|
276
|
-
kNonfatal, kFatal
|
|
277
|
-
};
|
|
278
|
-
|
|
279
|
-
virtual ~FailureReporterInterface() {}
|
|
280
|
-
|
|
281
|
-
// Reports a failure that occurred at the given source file location.
|
|
282
|
-
virtual void ReportFailure(FailureType type, const char* file, int line,
|
|
283
|
-
const std::string& message) = 0;
|
|
284
|
-
};
|
|
285
|
-
|
|
286
|
-
// Returns the failure reporter used by Google Mock.
|
|
287
|
-
GTEST_API_ FailureReporterInterface* GetFailureReporter();
|
|
288
|
-
|
|
289
|
-
// Asserts that condition is true; aborts the process with the given
|
|
290
|
-
// message if condition is false. We cannot use LOG(FATAL) or CHECK()
|
|
291
|
-
// as Google Mock might be used to mock the log sink itself. We
|
|
292
|
-
// inline this function to prevent it from showing up in the stack
|
|
293
|
-
// trace.
|
|
294
|
-
inline void Assert(bool condition, const char* file, int line,
|
|
295
|
-
const std::string& msg) {
|
|
296
|
-
if (!condition) {
|
|
297
|
-
GetFailureReporter()->ReportFailure(FailureReporterInterface::kFatal,
|
|
298
|
-
file, line, msg);
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
inline void Assert(bool condition, const char* file, int line) {
|
|
302
|
-
Assert(condition, file, line, "Assertion failed.");
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
// Verifies that condition is true; generates a non-fatal failure if
|
|
306
|
-
// condition is false.
|
|
307
|
-
inline void Expect(bool condition, const char* file, int line,
|
|
308
|
-
const std::string& msg) {
|
|
309
|
-
if (!condition) {
|
|
310
|
-
GetFailureReporter()->ReportFailure(FailureReporterInterface::kNonfatal,
|
|
311
|
-
file, line, msg);
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
inline void Expect(bool condition, const char* file, int line) {
|
|
315
|
-
Expect(condition, file, line, "Expectation failed.");
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
// Severity level of a log.
|
|
319
|
-
enum LogSeverity {
|
|
320
|
-
kInfo = 0,
|
|
321
|
-
kWarning = 1
|
|
322
|
-
};
|
|
323
|
-
|
|
324
|
-
// Valid values for the --gmock_verbose flag.
|
|
325
|
-
|
|
326
|
-
// All logs (informational and warnings) are printed.
|
|
327
|
-
const char kInfoVerbosity[] = "info";
|
|
328
|
-
// Only warnings are printed.
|
|
329
|
-
const char kWarningVerbosity[] = "warning";
|
|
330
|
-
// No logs are printed.
|
|
331
|
-
const char kErrorVerbosity[] = "error";
|
|
332
|
-
|
|
333
|
-
// Returns true iff a log with the given severity is visible according
|
|
334
|
-
// to the --gmock_verbose flag.
|
|
335
|
-
GTEST_API_ bool LogIsVisible(LogSeverity severity);
|
|
336
|
-
|
|
337
|
-
// Prints the given message to stdout iff 'severity' >= the level
|
|
338
|
-
// specified by the --gmock_verbose flag. If stack_frames_to_skip >=
|
|
339
|
-
// 0, also prints the stack trace excluding the top
|
|
340
|
-
// stack_frames_to_skip frames. In opt mode, any positive
|
|
341
|
-
// stack_frames_to_skip is treated as 0, since we don't know which
|
|
342
|
-
// function calls will be inlined by the compiler and need to be
|
|
343
|
-
// conservative.
|
|
344
|
-
GTEST_API_ void Log(LogSeverity severity, const std::string& message,
|
|
345
|
-
int stack_frames_to_skip);
|
|
346
|
-
|
|
347
|
-
// A marker class that is used to resolve parameterless expectations to the
|
|
348
|
-
// correct overload. This must not be instantiable, to prevent client code from
|
|
349
|
-
// accidentally resolving to the overload; for example:
|
|
350
|
-
//
|
|
351
|
-
// ON_CALL(mock, Method({}, nullptr))…
|
|
352
|
-
//
|
|
353
|
-
class WithoutMatchers {
|
|
354
|
-
private:
|
|
355
|
-
WithoutMatchers() {}
|
|
356
|
-
friend GTEST_API_ WithoutMatchers GetWithoutMatchers();
|
|
357
|
-
};
|
|
358
|
-
|
|
359
|
-
// Internal use only: access the singleton instance of WithoutMatchers.
|
|
360
|
-
GTEST_API_ WithoutMatchers GetWithoutMatchers();
|
|
361
|
-
|
|
362
|
-
// TODO(wan@google.com): group all type utilities together.
|
|
363
|
-
|
|
364
|
-
// Type traits.
|
|
365
|
-
|
|
366
|
-
// is_reference<T>::value is non-zero iff T is a reference type.
|
|
367
|
-
template <typename T> struct is_reference : public false_type {};
|
|
368
|
-
template <typename T> struct is_reference<T&> : public true_type {};
|
|
369
|
-
|
|
370
|
-
// type_equals<T1, T2>::value is non-zero iff T1 and T2 are the same type.
|
|
371
|
-
template <typename T1, typename T2> struct type_equals : public false_type {};
|
|
372
|
-
template <typename T> struct type_equals<T, T> : public true_type {};
|
|
373
|
-
|
|
374
|
-
// remove_reference<T>::type removes the reference from type T, if any.
|
|
375
|
-
template <typename T> struct remove_reference { typedef T type; }; // NOLINT
|
|
376
|
-
template <typename T> struct remove_reference<T&> { typedef T type; }; // NOLINT
|
|
377
|
-
|
|
378
|
-
// DecayArray<T>::type turns an array type U[N] to const U* and preserves
|
|
379
|
-
// other types. Useful for saving a copy of a function argument.
|
|
380
|
-
template <typename T> struct DecayArray { typedef T type; }; // NOLINT
|
|
381
|
-
template <typename T, size_t N> struct DecayArray<T[N]> {
|
|
382
|
-
typedef const T* type;
|
|
383
|
-
};
|
|
384
|
-
// Sometimes people use arrays whose size is not available at the use site
|
|
385
|
-
// (e.g. extern const char kNamePrefix[]). This specialization covers that
|
|
386
|
-
// case.
|
|
387
|
-
template <typename T> struct DecayArray<T[]> {
|
|
388
|
-
typedef const T* type;
|
|
389
|
-
};
|
|
390
|
-
|
|
391
|
-
// Disable MSVC warnings for infinite recursion, since in this case the
|
|
392
|
-
// the recursion is unreachable.
|
|
393
|
-
#ifdef _MSC_VER
|
|
394
|
-
# pragma warning(push)
|
|
395
|
-
# pragma warning(disable:4717)
|
|
396
|
-
#endif
|
|
397
|
-
|
|
398
|
-
// Invalid<T>() is usable as an expression of type T, but will terminate
|
|
399
|
-
// the program with an assertion failure if actually run. This is useful
|
|
400
|
-
// when a value of type T is needed for compilation, but the statement
|
|
401
|
-
// will not really be executed (or we don't care if the statement
|
|
402
|
-
// crashes).
|
|
403
|
-
template <typename T>
|
|
404
|
-
inline T Invalid() {
|
|
405
|
-
Assert(false, "", -1, "Internal error: attempt to return invalid value");
|
|
406
|
-
// This statement is unreachable, and would never terminate even if it
|
|
407
|
-
// could be reached. It is provided only to placate compiler warnings
|
|
408
|
-
// about missing return statements.
|
|
409
|
-
return Invalid<T>();
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
#ifdef _MSC_VER
|
|
413
|
-
# pragma warning(pop)
|
|
414
|
-
#endif
|
|
415
|
-
|
|
416
|
-
// Given a raw type (i.e. having no top-level reference or const
|
|
417
|
-
// modifier) RawContainer that's either an STL-style container or a
|
|
418
|
-
// native array, class StlContainerView<RawContainer> has the
|
|
419
|
-
// following members:
|
|
420
|
-
//
|
|
421
|
-
// - type is a type that provides an STL-style container view to
|
|
422
|
-
// (i.e. implements the STL container concept for) RawContainer;
|
|
423
|
-
// - const_reference is a type that provides a reference to a const
|
|
424
|
-
// RawContainer;
|
|
425
|
-
// - ConstReference(raw_container) returns a const reference to an STL-style
|
|
426
|
-
// container view to raw_container, which is a RawContainer.
|
|
427
|
-
// - Copy(raw_container) returns an STL-style container view of a
|
|
428
|
-
// copy of raw_container, which is a RawContainer.
|
|
429
|
-
//
|
|
430
|
-
// This generic version is used when RawContainer itself is already an
|
|
431
|
-
// STL-style container.
|
|
432
|
-
template <class RawContainer>
|
|
433
|
-
class StlContainerView {
|
|
434
|
-
public:
|
|
435
|
-
typedef RawContainer type;
|
|
436
|
-
typedef const type& const_reference;
|
|
437
|
-
|
|
438
|
-
static const_reference ConstReference(const RawContainer& container) {
|
|
439
|
-
// Ensures that RawContainer is not a const type.
|
|
440
|
-
testing::StaticAssertTypeEq<RawContainer,
|
|
441
|
-
GTEST_REMOVE_CONST_(RawContainer)>();
|
|
442
|
-
return container;
|
|
443
|
-
}
|
|
444
|
-
static type Copy(const RawContainer& container) { return container; }
|
|
445
|
-
};
|
|
446
|
-
|
|
447
|
-
// This specialization is used when RawContainer is a native array type.
|
|
448
|
-
template <typename Element, size_t N>
|
|
449
|
-
class StlContainerView<Element[N]> {
|
|
450
|
-
public:
|
|
451
|
-
typedef GTEST_REMOVE_CONST_(Element) RawElement;
|
|
452
|
-
typedef internal::NativeArray<RawElement> type;
|
|
453
|
-
// NativeArray<T> can represent a native array either by value or by
|
|
454
|
-
// reference (selected by a constructor argument), so 'const type'
|
|
455
|
-
// can be used to reference a const native array. We cannot
|
|
456
|
-
// 'typedef const type& const_reference' here, as that would mean
|
|
457
|
-
// ConstReference() has to return a reference to a local variable.
|
|
458
|
-
typedef const type const_reference;
|
|
459
|
-
|
|
460
|
-
static const_reference ConstReference(const Element (&array)[N]) {
|
|
461
|
-
// Ensures that Element is not a const type.
|
|
462
|
-
testing::StaticAssertTypeEq<Element, RawElement>();
|
|
463
|
-
#if GTEST_OS_SYMBIAN
|
|
464
|
-
// The Nokia Symbian compiler confuses itself in template instantiation
|
|
465
|
-
// for this call without the cast to Element*:
|
|
466
|
-
// function call '[testing::internal::NativeArray<char *>].NativeArray(
|
|
467
|
-
// {lval} const char *[4], long, testing::internal::RelationToSource)'
|
|
468
|
-
// does not match
|
|
469
|
-
// 'testing::internal::NativeArray<char *>::NativeArray(
|
|
470
|
-
// char *const *, unsigned int, testing::internal::RelationToSource)'
|
|
471
|
-
// (instantiating: 'testing::internal::ContainsMatcherImpl
|
|
472
|
-
// <const char * (&)[4]>::Matches(const char * (&)[4]) const')
|
|
473
|
-
// (instantiating: 'testing::internal::StlContainerView<char *[4]>::
|
|
474
|
-
// ConstReference(const char * (&)[4])')
|
|
475
|
-
// (and though the N parameter type is mismatched in the above explicit
|
|
476
|
-
// conversion of it doesn't help - only the conversion of the array).
|
|
477
|
-
return type(const_cast<Element*>(&array[0]), N,
|
|
478
|
-
RelationToSourceReference());
|
|
479
|
-
#else
|
|
480
|
-
return type(array, N, RelationToSourceReference());
|
|
481
|
-
#endif // GTEST_OS_SYMBIAN
|
|
482
|
-
}
|
|
483
|
-
static type Copy(const Element (&array)[N]) {
|
|
484
|
-
#if GTEST_OS_SYMBIAN
|
|
485
|
-
return type(const_cast<Element*>(&array[0]), N, RelationToSourceCopy());
|
|
486
|
-
#else
|
|
487
|
-
return type(array, N, RelationToSourceCopy());
|
|
488
|
-
#endif // GTEST_OS_SYMBIAN
|
|
489
|
-
}
|
|
490
|
-
};
|
|
491
|
-
|
|
492
|
-
// This specialization is used when RawContainer is a native array
|
|
493
|
-
// represented as a (pointer, size) tuple.
|
|
494
|
-
template <typename ElementPointer, typename Size>
|
|
495
|
-
class StlContainerView< ::testing::tuple<ElementPointer, Size> > {
|
|
496
|
-
public:
|
|
497
|
-
typedef GTEST_REMOVE_CONST_(
|
|
498
|
-
typename internal::PointeeOf<ElementPointer>::type) RawElement;
|
|
499
|
-
typedef internal::NativeArray<RawElement> type;
|
|
500
|
-
typedef const type const_reference;
|
|
501
|
-
|
|
502
|
-
static const_reference ConstReference(
|
|
503
|
-
const ::testing::tuple<ElementPointer, Size>& array) {
|
|
504
|
-
return type(get<0>(array), get<1>(array), RelationToSourceReference());
|
|
505
|
-
}
|
|
506
|
-
static type Copy(const ::testing::tuple<ElementPointer, Size>& array) {
|
|
507
|
-
return type(get<0>(array), get<1>(array), RelationToSourceCopy());
|
|
508
|
-
}
|
|
509
|
-
};
|
|
510
|
-
|
|
511
|
-
// The following specialization prevents the user from instantiating
|
|
512
|
-
// StlContainer with a reference type.
|
|
513
|
-
template <typename T> class StlContainerView<T&>;
|
|
514
|
-
|
|
515
|
-
// A type transform to remove constness from the first part of a pair.
|
|
516
|
-
// Pairs like that are used as the value_type of associative containers,
|
|
517
|
-
// and this transform produces a similar but assignable pair.
|
|
518
|
-
template <typename T>
|
|
519
|
-
struct RemoveConstFromKey {
|
|
520
|
-
typedef T type;
|
|
521
|
-
};
|
|
522
|
-
|
|
523
|
-
// Partially specialized to remove constness from std::pair<const K, V>.
|
|
524
|
-
template <typename K, typename V>
|
|
525
|
-
struct RemoveConstFromKey<std::pair<const K, V> > {
|
|
526
|
-
typedef std::pair<K, V> type;
|
|
527
|
-
};
|
|
528
|
-
|
|
529
|
-
// Mapping from booleans to types. Similar to boost::bool_<kValue> and
|
|
530
|
-
// std::integral_constant<bool, kValue>.
|
|
531
|
-
template <bool kValue>
|
|
532
|
-
struct BooleanConstant {};
|
|
533
|
-
|
|
534
|
-
// Emit an assertion failure due to incorrect DoDefault() usage. Out-of-lined to
|
|
535
|
-
// reduce code size.
|
|
536
|
-
GTEST_API_ void IllegalDoDefault(const char* file, int line);
|
|
537
|
-
|
|
538
|
-
#if GTEST_LANG_CXX11
|
|
539
|
-
// Helper types for Apply() below.
|
|
540
|
-
template <size_t... Is> struct int_pack { typedef int_pack type; };
|
|
541
|
-
|
|
542
|
-
template <class Pack, size_t I> struct append;
|
|
543
|
-
template <size_t... Is, size_t I>
|
|
544
|
-
struct append<int_pack<Is...>, I> : int_pack<Is..., I> {};
|
|
545
|
-
|
|
546
|
-
template <size_t C>
|
|
547
|
-
struct make_int_pack : append<typename make_int_pack<C - 1>::type, C - 1> {};
|
|
548
|
-
template <> struct make_int_pack<0> : int_pack<> {};
|
|
549
|
-
|
|
550
|
-
template <typename F, typename Tuple, size_t... Idx>
|
|
551
|
-
auto ApplyImpl(F&& f, Tuple&& args, int_pack<Idx...>) -> decltype(
|
|
552
|
-
std::forward<F>(f)(std::get<Idx>(std::forward<Tuple>(args))...)) {
|
|
553
|
-
return std::forward<F>(f)(std::get<Idx>(std::forward<Tuple>(args))...);
|
|
554
|
-
}
|
|
555
|
-
|
|
556
|
-
// Apply the function to a tuple of arguments.
|
|
557
|
-
template <typename F, typename Tuple>
|
|
558
|
-
auto Apply(F&& f, Tuple&& args)
|
|
559
|
-
-> decltype(ApplyImpl(std::forward<F>(f), std::forward<Tuple>(args),
|
|
560
|
-
make_int_pack<std::tuple_size<Tuple>::value>())) {
|
|
561
|
-
return ApplyImpl(std::forward<F>(f), std::forward<Tuple>(args),
|
|
562
|
-
make_int_pack<std::tuple_size<Tuple>::value>());
|
|
563
|
-
}
|
|
564
|
-
#endif
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
#ifdef _MSC_VER
|
|
568
|
-
# pragma warning(pop)
|
|
569
|
-
#endif
|
|
570
|
-
|
|
571
|
-
} // namespace internal
|
|
572
|
-
} // namespace testing
|
|
573
|
-
|
|
574
|
-
#endif // GMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_INTERNAL_UTILS_H_
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
// Copyright 2008, 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: vadimb@google.com (Vadim Berman)
|
|
31
|
-
//
|
|
32
|
-
// Low-level types and utilities for porting Google Mock to various
|
|
33
|
-
// platforms. All macros ending with _ and symbols defined in an
|
|
34
|
-
// internal namespace are subject to change without notice. Code
|
|
35
|
-
// outside Google Mock MUST NOT USE THEM DIRECTLY. Macros that don't
|
|
36
|
-
// end with _ are part of Google Mock's public API and can be used by
|
|
37
|
-
// code outside Google Mock.
|
|
38
|
-
|
|
39
|
-
#ifndef GMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_PORT_H_
|
|
40
|
-
#define GMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_PORT_H_
|
|
41
|
-
|
|
42
|
-
#include <assert.h>
|
|
43
|
-
#include <stdlib.h>
|
|
44
|
-
#include <iostream>
|
|
45
|
-
|
|
46
|
-
// Most of the utilities needed for porting Google Mock are also
|
|
47
|
-
// required for Google Test and are defined in gtest-port.h.
|
|
48
|
-
//
|
|
49
|
-
// Note to maintainers: to reduce code duplication, prefer adding
|
|
50
|
-
// portability utilities to Google Test's gtest-port.h instead of
|
|
51
|
-
// here, as Google Mock depends on Google Test. Only add a utility
|
|
52
|
-
// here if it's truly specific to Google Mock.
|
|
53
|
-
|
|
54
|
-
#include "gtest/internal/gtest-linked_ptr.h"
|
|
55
|
-
#include "gtest/internal/gtest-port.h"
|
|
56
|
-
#include "gmock/internal/custom/gmock-port.h"
|
|
57
|
-
|
|
58
|
-
// For MS Visual C++, check the compiler version. At least VS 2003 is
|
|
59
|
-
// required to compile Google Mock.
|
|
60
|
-
#if defined(_MSC_VER) && _MSC_VER < 1310
|
|
61
|
-
# error "At least Visual C++ 2003 (7.1) is required to compile Google Mock."
|
|
62
|
-
#endif
|
|
63
|
-
|
|
64
|
-
// Macro for referencing flags. This is public as we want the user to
|
|
65
|
-
// use this syntax to reference Google Mock flags.
|
|
66
|
-
#define GMOCK_FLAG(name) FLAGS_gmock_##name
|
|
67
|
-
|
|
68
|
-
#if !defined(GMOCK_DECLARE_bool_)
|
|
69
|
-
|
|
70
|
-
// Macros for declaring flags.
|
|
71
|
-
# define GMOCK_DECLARE_bool_(name) extern GTEST_API_ bool GMOCK_FLAG(name)
|
|
72
|
-
# define GMOCK_DECLARE_int32_(name) \
|
|
73
|
-
extern GTEST_API_ ::testing::internal::Int32 GMOCK_FLAG(name)
|
|
74
|
-
# define GMOCK_DECLARE_string_(name) \
|
|
75
|
-
extern GTEST_API_ ::std::string GMOCK_FLAG(name)
|
|
76
|
-
|
|
77
|
-
// Macros for defining flags.
|
|
78
|
-
# define GMOCK_DEFINE_bool_(name, default_val, doc) \
|
|
79
|
-
GTEST_API_ bool GMOCK_FLAG(name) = (default_val)
|
|
80
|
-
# define GMOCK_DEFINE_int32_(name, default_val, doc) \
|
|
81
|
-
GTEST_API_ ::testing::internal::Int32 GMOCK_FLAG(name) = (default_val)
|
|
82
|
-
# define GMOCK_DEFINE_string_(name, default_val, doc) \
|
|
83
|
-
GTEST_API_ ::std::string GMOCK_FLAG(name) = (default_val)
|
|
84
|
-
|
|
85
|
-
#endif // !defined(GMOCK_DECLARE_bool_)
|
|
86
|
-
|
|
87
|
-
#endif // GMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_PORT_H_
|