rn-leveldb 3.11.0 → 3.11.1

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.
Files changed (409) hide show
  1. package/README.md +55 -0
  2. package/cpp/leveldb/util/env_posix.cc +8 -2
  3. package/cpp/leveldb/util/env_windows.cc +8 -2
  4. package/package.json +1 -1
  5. package/cpp/leveldb/third_party/benchmark/.clang-format +0 -5
  6. package/cpp/leveldb/third_party/benchmark/.github/ISSUE_TEMPLATE/bug_report.md +0 -32
  7. package/cpp/leveldb/third_party/benchmark/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
  8. package/cpp/leveldb/third_party/benchmark/.github/workflows/build-and-test.yml +0 -38
  9. package/cpp/leveldb/third_party/benchmark/.github/workflows/pylint.yml +0 -26
  10. package/cpp/leveldb/third_party/benchmark/.github/workflows/test_bindings.yml +0 -24
  11. package/cpp/leveldb/third_party/benchmark/.travis-libcxx-setup.sh +0 -28
  12. package/cpp/leveldb/third_party/benchmark/.travis.yml +0 -231
  13. package/cpp/leveldb/third_party/benchmark/.ycm_extra_conf.py +0 -115
  14. package/cpp/leveldb/third_party/benchmark/AUTHORS +0 -58
  15. package/cpp/leveldb/third_party/benchmark/BUILD.bazel +0 -44
  16. package/cpp/leveldb/third_party/benchmark/CMakeLists.txt +0 -287
  17. package/cpp/leveldb/third_party/benchmark/CONTRIBUTING.md +0 -58
  18. package/cpp/leveldb/third_party/benchmark/CONTRIBUTORS +0 -83
  19. package/cpp/leveldb/third_party/benchmark/LICENSE +0 -202
  20. package/cpp/leveldb/third_party/benchmark/README.md +0 -1323
  21. package/cpp/leveldb/third_party/benchmark/WORKSPACE +0 -51
  22. package/cpp/leveldb/third_party/benchmark/_config.yml +0 -1
  23. package/cpp/leveldb/third_party/benchmark/appveyor.yml +0 -50
  24. package/cpp/leveldb/third_party/benchmark/bindings/python/BUILD +0 -3
  25. package/cpp/leveldb/third_party/benchmark/bindings/python/build_defs.bzl +0 -25
  26. package/cpp/leveldb/third_party/benchmark/bindings/python/google_benchmark/BUILD +0 -38
  27. package/cpp/leveldb/third_party/benchmark/bindings/python/google_benchmark/__init__.py +0 -156
  28. package/cpp/leveldb/third_party/benchmark/bindings/python/google_benchmark/benchmark.cc +0 -180
  29. package/cpp/leveldb/third_party/benchmark/bindings/python/google_benchmark/example.py +0 -136
  30. package/cpp/leveldb/third_party/benchmark/bindings/python/pybind11.BUILD +0 -20
  31. package/cpp/leveldb/third_party/benchmark/bindings/python/python_headers.BUILD +0 -6
  32. package/cpp/leveldb/third_party/benchmark/bindings/python/requirements.txt +0 -2
  33. package/cpp/leveldb/third_party/benchmark/cmake/AddCXXCompilerFlag.cmake +0 -74
  34. package/cpp/leveldb/third_party/benchmark/cmake/CXXFeatureCheck.cmake +0 -69
  35. package/cpp/leveldb/third_party/benchmark/cmake/Config.cmake.in +0 -1
  36. package/cpp/leveldb/third_party/benchmark/cmake/GetGitVersion.cmake +0 -54
  37. package/cpp/leveldb/third_party/benchmark/cmake/GoogleTest.cmake +0 -41
  38. package/cpp/leveldb/third_party/benchmark/cmake/GoogleTest.cmake.in +0 -58
  39. package/cpp/leveldb/third_party/benchmark/cmake/benchmark.pc.in +0 -12
  40. package/cpp/leveldb/third_party/benchmark/cmake/gnu_posix_regex.cpp +0 -12
  41. package/cpp/leveldb/third_party/benchmark/cmake/llvm-toolchain.cmake +0 -8
  42. package/cpp/leveldb/third_party/benchmark/cmake/posix_regex.cpp +0 -14
  43. package/cpp/leveldb/third_party/benchmark/cmake/split_list.cmake +0 -3
  44. package/cpp/leveldb/third_party/benchmark/cmake/std_regex.cpp +0 -10
  45. package/cpp/leveldb/third_party/benchmark/cmake/steady_clock.cpp +0 -7
  46. package/cpp/leveldb/third_party/benchmark/cmake/thread_safety_attributes.cpp +0 -4
  47. package/cpp/leveldb/third_party/benchmark/conan/CMakeLists.txt +0 -7
  48. package/cpp/leveldb/third_party/benchmark/conan/test_package/CMakeLists.txt +0 -10
  49. package/cpp/leveldb/third_party/benchmark/conan/test_package/conanfile.py +0 -19
  50. package/cpp/leveldb/third_party/benchmark/conan/test_package/test_package.cpp +0 -18
  51. package/cpp/leveldb/third_party/benchmark/conanfile.py +0 -79
  52. package/cpp/leveldb/third_party/benchmark/dependencies.md +0 -18
  53. package/cpp/leveldb/third_party/benchmark/docs/AssemblyTests.md +0 -147
  54. package/cpp/leveldb/third_party/benchmark/docs/_config.yml +0 -1
  55. package/cpp/leveldb/third_party/benchmark/docs/releasing.md +0 -16
  56. package/cpp/leveldb/third_party/benchmark/docs/tools.md +0 -203
  57. package/cpp/leveldb/third_party/benchmark/include/benchmark/benchmark.h +0 -1604
  58. package/cpp/leveldb/third_party/benchmark/requirements.txt +0 -2
  59. package/cpp/leveldb/third_party/benchmark/setup.py +0 -140
  60. package/cpp/leveldb/third_party/benchmark/src/CMakeLists.txt +0 -114
  61. package/cpp/leveldb/third_party/benchmark/src/arraysize.h +0 -33
  62. package/cpp/leveldb/third_party/benchmark/src/benchmark.cc +0 -499
  63. package/cpp/leveldb/third_party/benchmark/src/benchmark_api_internal.cc +0 -15
  64. package/cpp/leveldb/third_party/benchmark/src/benchmark_api_internal.h +0 -53
  65. package/cpp/leveldb/third_party/benchmark/src/benchmark_main.cc +0 -17
  66. package/cpp/leveldb/third_party/benchmark/src/benchmark_name.cc +0 -58
  67. package/cpp/leveldb/third_party/benchmark/src/benchmark_register.cc +0 -515
  68. package/cpp/leveldb/third_party/benchmark/src/benchmark_register.h +0 -108
  69. package/cpp/leveldb/third_party/benchmark/src/benchmark_runner.cc +0 -362
  70. package/cpp/leveldb/third_party/benchmark/src/benchmark_runner.h +0 -51
  71. package/cpp/leveldb/third_party/benchmark/src/check.h +0 -82
  72. package/cpp/leveldb/third_party/benchmark/src/colorprint.cc +0 -188
  73. package/cpp/leveldb/third_party/benchmark/src/colorprint.h +0 -33
  74. package/cpp/leveldb/third_party/benchmark/src/commandlineflags.cc +0 -228
  75. package/cpp/leveldb/third_party/benchmark/src/commandlineflags.h +0 -103
  76. package/cpp/leveldb/third_party/benchmark/src/complexity.cc +0 -238
  77. package/cpp/leveldb/third_party/benchmark/src/complexity.h +0 -55
  78. package/cpp/leveldb/third_party/benchmark/src/console_reporter.cc +0 -177
  79. package/cpp/leveldb/third_party/benchmark/src/counter.cc +0 -80
  80. package/cpp/leveldb/third_party/benchmark/src/counter.h +0 -32
  81. package/cpp/leveldb/third_party/benchmark/src/csv_reporter.cc +0 -154
  82. package/cpp/leveldb/third_party/benchmark/src/cycleclock.h +0 -211
  83. package/cpp/leveldb/third_party/benchmark/src/internal_macros.h +0 -102
  84. package/cpp/leveldb/third_party/benchmark/src/json_reporter.cc +0 -255
  85. package/cpp/leveldb/third_party/benchmark/src/log.h +0 -74
  86. package/cpp/leveldb/third_party/benchmark/src/mutex.h +0 -155
  87. package/cpp/leveldb/third_party/benchmark/src/re.h +0 -158
  88. package/cpp/leveldb/third_party/benchmark/src/reporter.cc +0 -105
  89. package/cpp/leveldb/third_party/benchmark/src/sleep.cc +0 -67
  90. package/cpp/leveldb/third_party/benchmark/src/sleep.h +0 -15
  91. package/cpp/leveldb/third_party/benchmark/src/statistics.cc +0 -193
  92. package/cpp/leveldb/third_party/benchmark/src/statistics.h +0 -37
  93. package/cpp/leveldb/third_party/benchmark/src/string_util.cc +0 -255
  94. package/cpp/leveldb/third_party/benchmark/src/string_util.h +0 -59
  95. package/cpp/leveldb/third_party/benchmark/src/sysinfo.cc +0 -716
  96. package/cpp/leveldb/third_party/benchmark/src/thread_manager.h +0 -64
  97. package/cpp/leveldb/third_party/benchmark/src/thread_timer.h +0 -86
  98. package/cpp/leveldb/third_party/benchmark/src/timers.cc +0 -245
  99. package/cpp/leveldb/third_party/benchmark/src/timers.h +0 -48
  100. package/cpp/leveldb/third_party/benchmark/test/AssemblyTests.cmake +0 -46
  101. package/cpp/leveldb/third_party/benchmark/test/BUILD +0 -73
  102. package/cpp/leveldb/third_party/benchmark/test/CMakeLists.txt +0 -263
  103. package/cpp/leveldb/third_party/benchmark/test/args_product_test.cc +0 -77
  104. package/cpp/leveldb/third_party/benchmark/test/basic_test.cc +0 -136
  105. package/cpp/leveldb/third_party/benchmark/test/benchmark_gtest.cc +0 -134
  106. package/cpp/leveldb/third_party/benchmark/test/benchmark_name_gtest.cc +0 -74
  107. package/cpp/leveldb/third_party/benchmark/test/benchmark_test.cc +0 -245
  108. package/cpp/leveldb/third_party/benchmark/test/clobber_memory_assembly_test.cc +0 -64
  109. package/cpp/leveldb/third_party/benchmark/test/commandlineflags_gtest.cc +0 -201
  110. package/cpp/leveldb/third_party/benchmark/test/complexity_test.cc +0 -213
  111. package/cpp/leveldb/third_party/benchmark/test/cxx03_test.cc +0 -63
  112. package/cpp/leveldb/third_party/benchmark/test/diagnostics_test.cc +0 -80
  113. package/cpp/leveldb/third_party/benchmark/test/display_aggregates_only_test.cc +0 -43
  114. package/cpp/leveldb/third_party/benchmark/test/donotoptimize_assembly_test.cc +0 -163
  115. package/cpp/leveldb/third_party/benchmark/test/donotoptimize_test.cc +0 -52
  116. package/cpp/leveldb/third_party/benchmark/test/filter_test.cc +0 -104
  117. package/cpp/leveldb/third_party/benchmark/test/fixture_test.cc +0 -51
  118. package/cpp/leveldb/third_party/benchmark/test/internal_threading_test.cc +0 -184
  119. package/cpp/leveldb/third_party/benchmark/test/link_main_test.cc +0 -8
  120. package/cpp/leveldb/third_party/benchmark/test/map_test.cc +0 -57
  121. package/cpp/leveldb/third_party/benchmark/test/memory_manager_test.cc +0 -44
  122. package/cpp/leveldb/third_party/benchmark/test/multiple_ranges_test.cc +0 -96
  123. package/cpp/leveldb/third_party/benchmark/test/options_test.cc +0 -75
  124. package/cpp/leveldb/third_party/benchmark/test/output_test.h +0 -213
  125. package/cpp/leveldb/third_party/benchmark/test/output_test_helper.cc +0 -515
  126. package/cpp/leveldb/third_party/benchmark/test/register_benchmark_test.cc +0 -184
  127. package/cpp/leveldb/third_party/benchmark/test/report_aggregates_only_test.cc +0 -39
  128. package/cpp/leveldb/third_party/benchmark/test/reporter_output_test.cc +0 -747
  129. package/cpp/leveldb/third_party/benchmark/test/skip_with_error_test.cc +0 -195
  130. package/cpp/leveldb/third_party/benchmark/test/state_assembly_test.cc +0 -68
  131. package/cpp/leveldb/third_party/benchmark/test/statistics_gtest.cc +0 -28
  132. package/cpp/leveldb/third_party/benchmark/test/string_util_gtest.cc +0 -153
  133. package/cpp/leveldb/third_party/benchmark/test/templated_fixture_test.cc +0 -28
  134. package/cpp/leveldb/third_party/benchmark/test/user_counters_tabular_test.cc +0 -285
  135. package/cpp/leveldb/third_party/benchmark/test/user_counters_test.cc +0 -531
  136. package/cpp/leveldb/third_party/benchmark/test/user_counters_thousands_test.cc +0 -173
  137. package/cpp/leveldb/third_party/benchmark/tools/BUILD.bazel +0 -19
  138. package/cpp/leveldb/third_party/benchmark/tools/compare.py +0 -429
  139. package/cpp/leveldb/third_party/benchmark/tools/gbench/Inputs/test1_run1.json +0 -119
  140. package/cpp/leveldb/third_party/benchmark/tools/gbench/Inputs/test1_run2.json +0 -119
  141. package/cpp/leveldb/third_party/benchmark/tools/gbench/Inputs/test2_run.json +0 -81
  142. package/cpp/leveldb/third_party/benchmark/tools/gbench/Inputs/test3_run0.json +0 -65
  143. package/cpp/leveldb/third_party/benchmark/tools/gbench/Inputs/test3_run1.json +0 -65
  144. package/cpp/leveldb/third_party/benchmark/tools/gbench/__init__.py +0 -8
  145. package/cpp/leveldb/third_party/benchmark/tools/gbench/report.py +0 -903
  146. package/cpp/leveldb/third_party/benchmark/tools/gbench/util.py +0 -163
  147. package/cpp/leveldb/third_party/benchmark/tools/requirements.txt +0 -1
  148. package/cpp/leveldb/third_party/benchmark/tools/strip_asm.py +0 -151
  149. package/cpp/leveldb/third_party/googletest/.clang-format +0 -4
  150. package/cpp/leveldb/third_party/googletest/.travis.yml +0 -73
  151. package/cpp/leveldb/third_party/googletest/BUILD.bazel +0 -179
  152. package/cpp/leveldb/third_party/googletest/CMakeLists.txt +0 -36
  153. package/cpp/leveldb/third_party/googletest/CONTRIBUTING.md +0 -142
  154. package/cpp/leveldb/third_party/googletest/LICENSE +0 -28
  155. package/cpp/leveldb/third_party/googletest/README.md +0 -132
  156. package/cpp/leveldb/third_party/googletest/WORKSPACE +0 -23
  157. package/cpp/leveldb/third_party/googletest/appveyor.yml +0 -154
  158. package/cpp/leveldb/third_party/googletest/ci/build-linux-bazel.sh +0 -37
  159. package/cpp/leveldb/third_party/googletest/ci/build-platformio.sh +0 -2
  160. package/cpp/leveldb/third_party/googletest/ci/env-linux.sh +0 -41
  161. package/cpp/leveldb/third_party/googletest/ci/env-osx.sh +0 -47
  162. package/cpp/leveldb/third_party/googletest/ci/get-nprocessors.sh +0 -48
  163. package/cpp/leveldb/third_party/googletest/ci/install-linux.sh +0 -49
  164. package/cpp/leveldb/third_party/googletest/ci/install-osx.sh +0 -40
  165. package/cpp/leveldb/third_party/googletest/ci/install-platformio.sh +0 -5
  166. package/cpp/leveldb/third_party/googletest/ci/log-config.sh +0 -51
  167. package/cpp/leveldb/third_party/googletest/ci/travis.sh +0 -44
  168. package/cpp/leveldb/third_party/googletest/googlemock/CMakeLists.txt +0 -233
  169. package/cpp/leveldb/third_party/googletest/googlemock/CONTRIBUTORS +0 -40
  170. package/cpp/leveldb/third_party/googletest/googlemock/LICENSE +0 -28
  171. package/cpp/leveldb/third_party/googletest/googlemock/README.md +0 -44
  172. package/cpp/leveldb/third_party/googletest/googlemock/cmake/gmock.pc.in +0 -10
  173. package/cpp/leveldb/third_party/googletest/googlemock/cmake/gmock_main.pc.in +0 -10
  174. package/cpp/leveldb/third_party/googletest/googlemock/docs/cheat_sheet.md +0 -770
  175. package/cpp/leveldb/third_party/googletest/googlemock/docs/cook_book.md +0 -4270
  176. package/cpp/leveldb/third_party/googletest/googlemock/docs/for_dummies.md +0 -700
  177. package/cpp/leveldb/third_party/googletest/googlemock/docs/gmock_faq.md +0 -396
  178. package/cpp/leveldb/third_party/googletest/googlemock/docs/pump_manual.md +0 -187
  179. package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/gmock-actions.h +0 -1193
  180. package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/gmock-cardinalities.h +0 -157
  181. package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/gmock-function-mocker.h +0 -276
  182. package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/gmock-generated-actions.h +0 -1884
  183. package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/gmock-generated-actions.h.pump +0 -627
  184. package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/gmock-generated-function-mockers.h +0 -752
  185. package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/gmock-generated-function-mockers.h.pump +0 -227
  186. package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/gmock-generated-matchers.h +0 -1097
  187. package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/gmock-generated-matchers.h.pump +0 -346
  188. package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/gmock-matchers.h +0 -4591
  189. package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/gmock-more-actions.h +0 -162
  190. package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/gmock-more-matchers.h +0 -92
  191. package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/gmock-nice-strict.h +0 -215
  192. package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/gmock-spec-builders.h +0 -1985
  193. package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/gmock.h +0 -101
  194. package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/internal/custom/README.md +0 -16
  195. package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/internal/custom/gmock-generated-actions.h +0 -10
  196. package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/internal/custom/gmock-generated-actions.h.pump +0 -12
  197. package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/internal/custom/gmock-matchers.h +0 -36
  198. package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/internal/custom/gmock-port.h +0 -39
  199. package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h +0 -472
  200. package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/internal/gmock-port.h +0 -87
  201. package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/internal/gmock-pp.h +0 -271
  202. package/cpp/leveldb/third_party/googletest/googlemock/scripts/README.md +0 -5
  203. package/cpp/leveldb/third_party/googletest/googlemock/scripts/fuse_gmock_files.py +0 -240
  204. package/cpp/leveldb/third_party/googletest/googlemock/scripts/generator/LICENSE +0 -203
  205. package/cpp/leveldb/third_party/googletest/googlemock/scripts/generator/README +0 -34
  206. package/cpp/leveldb/third_party/googletest/googlemock/scripts/generator/README.cppclean +0 -115
  207. package/cpp/leveldb/third_party/googletest/googlemock/scripts/generator/cpp/__init__.py +0 -0
  208. package/cpp/leveldb/third_party/googletest/googlemock/scripts/generator/cpp/ast.py +0 -1761
  209. package/cpp/leveldb/third_party/googletest/googlemock/scripts/generator/cpp/gmock_class.py +0 -248
  210. package/cpp/leveldb/third_party/googletest/googlemock/scripts/generator/cpp/gmock_class_test.py +0 -540
  211. package/cpp/leveldb/third_party/googletest/googlemock/scripts/generator/cpp/keywords.py +0 -56
  212. package/cpp/leveldb/third_party/googletest/googlemock/scripts/generator/cpp/tokenize.py +0 -284
  213. package/cpp/leveldb/third_party/googletest/googlemock/scripts/generator/cpp/utils.py +0 -37
  214. package/cpp/leveldb/third_party/googletest/googlemock/scripts/generator/gmock_gen.py +0 -30
  215. package/cpp/leveldb/third_party/googletest/googlemock/scripts/pump.py +0 -856
  216. package/cpp/leveldb/third_party/googletest/googlemock/src/gmock-all.cc +0 -46
  217. package/cpp/leveldb/third_party/googletest/googlemock/src/gmock-cardinalities.cc +0 -155
  218. package/cpp/leveldb/third_party/googletest/googlemock/src/gmock-internal-utils.cc +0 -200
  219. package/cpp/leveldb/third_party/googletest/googlemock/src/gmock-matchers.cc +0 -462
  220. package/cpp/leveldb/third_party/googletest/googlemock/src/gmock-spec-builders.cc +0 -892
  221. package/cpp/leveldb/third_party/googletest/googlemock/src/gmock.cc +0 -213
  222. package/cpp/leveldb/third_party/googletest/googlemock/src/gmock_main.cc +0 -72
  223. package/cpp/leveldb/third_party/googletest/googlemock/test/BUILD.bazel +0 -110
  224. package/cpp/leveldb/third_party/googletest/googlemock/test/gmock-actions_test.cc +0 -1507
  225. package/cpp/leveldb/third_party/googletest/googlemock/test/gmock-cardinalities_test.cc +0 -429
  226. package/cpp/leveldb/third_party/googletest/googlemock/test/gmock-function-mocker_nc.cc +0 -16
  227. package/cpp/leveldb/third_party/googletest/googlemock/test/gmock-function-mocker_nc_test.py +0 -43
  228. package/cpp/leveldb/third_party/googletest/googlemock/test/gmock-function-mocker_test.cc +0 -696
  229. package/cpp/leveldb/third_party/googletest/googlemock/test/gmock-generated-actions_test.cc +0 -1064
  230. package/cpp/leveldb/third_party/googletest/googlemock/test/gmock-generated-function-mockers_test.cc +0 -659
  231. package/cpp/leveldb/third_party/googletest/googlemock/test/gmock-generated-matchers_test.cc +0 -1323
  232. package/cpp/leveldb/third_party/googletest/googlemock/test/gmock-internal-utils_test.cc +0 -732
  233. package/cpp/leveldb/third_party/googletest/googlemock/test/gmock-matchers_test.cc +0 -6913
  234. package/cpp/leveldb/third_party/googletest/googlemock/test/gmock-more-actions_test.cc +0 -698
  235. package/cpp/leveldb/third_party/googletest/googlemock/test/gmock-nice-strict_test.cc +0 -500
  236. package/cpp/leveldb/third_party/googletest/googlemock/test/gmock-port_test.cc +0 -42
  237. package/cpp/leveldb/third_party/googletest/googlemock/test/gmock-pp-string_test.cc +0 -206
  238. package/cpp/leveldb/third_party/googletest/googlemock/test/gmock-pp_test.cc +0 -83
  239. package/cpp/leveldb/third_party/googletest/googlemock/test/gmock-spec-builders_test.cc +0 -2775
  240. package/cpp/leveldb/third_party/googletest/googlemock/test/gmock_all_test.cc +0 -49
  241. package/cpp/leveldb/third_party/googletest/googlemock/test/gmock_ex_test.cc +0 -80
  242. package/cpp/leveldb/third_party/googletest/googlemock/test/gmock_leak_test.py +0 -104
  243. package/cpp/leveldb/third_party/googletest/googlemock/test/gmock_leak_test_.cc +0 -99
  244. package/cpp/leveldb/third_party/googletest/googlemock/test/gmock_link2_test.cc +0 -39
  245. package/cpp/leveldb/third_party/googletest/googlemock/test/gmock_link_test.cc +0 -39
  246. package/cpp/leveldb/third_party/googletest/googlemock/test/gmock_link_test.h +0 -690
  247. package/cpp/leveldb/third_party/googletest/googlemock/test/gmock_output_test.py +0 -183
  248. package/cpp/leveldb/third_party/googletest/googlemock/test/gmock_output_test_.cc +0 -309
  249. package/cpp/leveldb/third_party/googletest/googlemock/test/gmock_output_test_golden.txt +0 -317
  250. package/cpp/leveldb/third_party/googletest/googlemock/test/gmock_stress_test.cc +0 -240
  251. package/cpp/leveldb/third_party/googletest/googlemock/test/gmock_test.cc +0 -181
  252. package/cpp/leveldb/third_party/googletest/googlemock/test/gmock_test_utils.py +0 -108
  253. package/cpp/leveldb/third_party/googletest/googlemock/test/pump_test.py +0 -182
  254. package/cpp/leveldb/third_party/googletest/googletest/CMakeLists.txt +0 -329
  255. package/cpp/leveldb/third_party/googletest/googletest/CONTRIBUTORS +0 -38
  256. package/cpp/leveldb/third_party/googletest/googletest/LICENSE +0 -28
  257. package/cpp/leveldb/third_party/googletest/googletest/README.md +0 -244
  258. package/cpp/leveldb/third_party/googletest/googletest/cmake/Config.cmake.in +0 -9
  259. package/cpp/leveldb/third_party/googletest/googletest/cmake/gtest.pc.in +0 -9
  260. package/cpp/leveldb/third_party/googletest/googletest/cmake/gtest_main.pc.in +0 -10
  261. package/cpp/leveldb/third_party/googletest/googletest/cmake/internal_utils.cmake +0 -358
  262. package/cpp/leveldb/third_party/googletest/googletest/cmake/libgtest.la.in +0 -21
  263. package/cpp/leveldb/third_party/googletest/googletest/docs/advanced.md +0 -2567
  264. package/cpp/leveldb/third_party/googletest/googletest/docs/faq.md +0 -753
  265. package/cpp/leveldb/third_party/googletest/googletest/docs/pkgconfig.md +0 -219
  266. package/cpp/leveldb/third_party/googletest/googletest/docs/primer.md +0 -579
  267. package/cpp/leveldb/third_party/googletest/googletest/docs/samples.md +0 -22
  268. package/cpp/leveldb/third_party/googletest/googletest/include/gtest/gtest-death-test.h +0 -343
  269. package/cpp/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h +0 -750
  270. package/cpp/leveldb/third_party/googletest/googletest/include/gtest/gtest-message.h +0 -219
  271. package/cpp/leveldb/third_party/googletest/googletest/include/gtest/gtest-param-test.h +0 -514
  272. package/cpp/leveldb/third_party/googletest/googletest/include/gtest/gtest-printers.h +0 -928
  273. package/cpp/leveldb/third_party/googletest/googletest/include/gtest/gtest-spi.h +0 -238
  274. package/cpp/leveldb/third_party/googletest/googletest/include/gtest/gtest-test-part.h +0 -184
  275. package/cpp/leveldb/third_party/googletest/googletest/include/gtest/gtest-typed-test.h +0 -337
  276. package/cpp/leveldb/third_party/googletest/googletest/include/gtest/gtest.h +0 -2477
  277. package/cpp/leveldb/third_party/googletest/googletest/include/gtest/gtest_pred_impl.h +0 -359
  278. package/cpp/leveldb/third_party/googletest/googletest/include/gtest/gtest_prod.h +0 -61
  279. package/cpp/leveldb/third_party/googletest/googletest/include/gtest/internal/custom/README.md +0 -56
  280. package/cpp/leveldb/third_party/googletest/googletest/include/gtest/internal/custom/gtest-port.h +0 -37
  281. package/cpp/leveldb/third_party/googletest/googletest/include/gtest/internal/custom/gtest-printers.h +0 -42
  282. package/cpp/leveldb/third_party/googletest/googletest/include/gtest/internal/custom/gtest.h +0 -37
  283. package/cpp/leveldb/third_party/googletest/googletest/include/gtest/internal/gtest-death-test-internal.h +0 -304
  284. package/cpp/leveldb/third_party/googletest/googletest/include/gtest/internal/gtest-filepath.h +0 -211
  285. package/cpp/leveldb/third_party/googletest/googletest/include/gtest/internal/gtest-internal.h +0 -1411
  286. package/cpp/leveldb/third_party/googletest/googletest/include/gtest/internal/gtest-param-util.h +0 -880
  287. package/cpp/leveldb/third_party/googletest/googletest/include/gtest/internal/gtest-port-arch.h +0 -111
  288. package/cpp/leveldb/third_party/googletest/googletest/include/gtest/internal/gtest-port.h +0 -2227
  289. package/cpp/leveldb/third_party/googletest/googletest/include/gtest/internal/gtest-string.h +0 -171
  290. package/cpp/leveldb/third_party/googletest/googletest/include/gtest/internal/gtest-type-util.h +0 -183
  291. package/cpp/leveldb/third_party/googletest/googletest/samples/prime_tables.h +0 -126
  292. package/cpp/leveldb/third_party/googletest/googletest/samples/sample1.cc +0 -66
  293. package/cpp/leveldb/third_party/googletest/googletest/samples/sample1.h +0 -41
  294. package/cpp/leveldb/third_party/googletest/googletest/samples/sample10_unittest.cc +0 -139
  295. package/cpp/leveldb/third_party/googletest/googletest/samples/sample1_unittest.cc +0 -151
  296. package/cpp/leveldb/third_party/googletest/googletest/samples/sample2.cc +0 -54
  297. package/cpp/leveldb/third_party/googletest/googletest/samples/sample2.h +0 -81
  298. package/cpp/leveldb/third_party/googletest/googletest/samples/sample2_unittest.cc +0 -107
  299. package/cpp/leveldb/third_party/googletest/googletest/samples/sample3-inl.h +0 -172
  300. package/cpp/leveldb/third_party/googletest/googletest/samples/sample3_unittest.cc +0 -149
  301. package/cpp/leveldb/third_party/googletest/googletest/samples/sample4.cc +0 -54
  302. package/cpp/leveldb/third_party/googletest/googletest/samples/sample4.h +0 -53
  303. package/cpp/leveldb/third_party/googletest/googletest/samples/sample4_unittest.cc +0 -53
  304. package/cpp/leveldb/third_party/googletest/googletest/samples/sample5_unittest.cc +0 -196
  305. package/cpp/leveldb/third_party/googletest/googletest/samples/sample6_unittest.cc +0 -224
  306. package/cpp/leveldb/third_party/googletest/googletest/samples/sample7_unittest.cc +0 -117
  307. package/cpp/leveldb/third_party/googletest/googletest/samples/sample8_unittest.cc +0 -154
  308. package/cpp/leveldb/third_party/googletest/googletest/samples/sample9_unittest.cc +0 -156
  309. package/cpp/leveldb/third_party/googletest/googletest/scripts/README.md +0 -5
  310. package/cpp/leveldb/third_party/googletest/googletest/scripts/common.py +0 -83
  311. package/cpp/leveldb/third_party/googletest/googletest/scripts/fuse_gtest_files.py +0 -253
  312. package/cpp/leveldb/third_party/googletest/googletest/scripts/gen_gtest_pred_impl.py +0 -734
  313. package/cpp/leveldb/third_party/googletest/googletest/scripts/gtest-config.in +0 -274
  314. package/cpp/leveldb/third_party/googletest/googletest/scripts/release_docs.py +0 -158
  315. package/cpp/leveldb/third_party/googletest/googletest/scripts/run_with_path.py +0 -32
  316. package/cpp/leveldb/third_party/googletest/googletest/scripts/upload.py +0 -1402
  317. package/cpp/leveldb/third_party/googletest/googletest/scripts/upload_gtest.py +0 -78
  318. package/cpp/leveldb/third_party/googletest/googletest/src/gtest-all.cc +0 -48
  319. package/cpp/leveldb/third_party/googletest/googletest/src/gtest-death-test.cc +0 -1653
  320. package/cpp/leveldb/third_party/googletest/googletest/src/gtest-filepath.cc +0 -382
  321. package/cpp/leveldb/third_party/googletest/googletest/src/gtest-internal-inl.h +0 -1211
  322. package/cpp/leveldb/third_party/googletest/googletest/src/gtest-matchers.cc +0 -97
  323. package/cpp/leveldb/third_party/googletest/googletest/src/gtest-port.cc +0 -1399
  324. package/cpp/leveldb/third_party/googletest/googletest/src/gtest-printers.cc +0 -442
  325. package/cpp/leveldb/third_party/googletest/googletest/src/gtest-test-part.cc +0 -108
  326. package/cpp/leveldb/third_party/googletest/googletest/src/gtest-typed-test.cc +0 -118
  327. package/cpp/leveldb/third_party/googletest/googletest/src/gtest.cc +0 -6180
  328. package/cpp/leveldb/third_party/googletest/googletest/src/gtest_main.cc +0 -54
  329. package/cpp/leveldb/third_party/googletest/googletest/test/BUILD.bazel +0 -529
  330. package/cpp/leveldb/third_party/googletest/googletest/test/googletest-break-on-failure-unittest.py +0 -208
  331. package/cpp/leveldb/third_party/googletest/googletest/test/googletest-break-on-failure-unittest_.cc +0 -86
  332. package/cpp/leveldb/third_party/googletest/googletest/test/googletest-catch-exceptions-test.py +0 -236
  333. package/cpp/leveldb/third_party/googletest/googletest/test/googletest-catch-exceptions-test_.cc +0 -293
  334. package/cpp/leveldb/third_party/googletest/googletest/test/googletest-color-test.py +0 -127
  335. package/cpp/leveldb/third_party/googletest/googletest/test/googletest-color-test_.cc +0 -62
  336. package/cpp/leveldb/third_party/googletest/googletest/test/googletest-death-test-test.cc +0 -1516
  337. package/cpp/leveldb/third_party/googletest/googletest/test/googletest-death-test_ex_test.cc +0 -92
  338. package/cpp/leveldb/third_party/googletest/googletest/test/googletest-env-var-test.py +0 -117
  339. package/cpp/leveldb/third_party/googletest/googletest/test/googletest-env-var-test_.cc +0 -122
  340. package/cpp/leveldb/third_party/googletest/googletest/test/googletest-filepath-test.cc +0 -649
  341. package/cpp/leveldb/third_party/googletest/googletest/test/googletest-filter-unittest.py +0 -639
  342. package/cpp/leveldb/third_party/googletest/googletest/test/googletest-filter-unittest_.cc +0 -137
  343. package/cpp/leveldb/third_party/googletest/googletest/test/googletest-json-outfiles-test.py +0 -191
  344. package/cpp/leveldb/third_party/googletest/googletest/test/googletest-json-output-unittest.py +0 -778
  345. package/cpp/leveldb/third_party/googletest/googletest/test/googletest-list-tests-unittest.py +0 -205
  346. package/cpp/leveldb/third_party/googletest/googletest/test/googletest-list-tests-unittest_.cc +0 -156
  347. package/cpp/leveldb/third_party/googletest/googletest/test/googletest-listener-test.cc +0 -518
  348. package/cpp/leveldb/third_party/googletest/googletest/test/googletest-message-test.cc +0 -158
  349. package/cpp/leveldb/third_party/googletest/googletest/test/googletest-options-test.cc +0 -216
  350. package/cpp/leveldb/third_party/googletest/googletest/test/googletest-output-test-golden-lin.txt +0 -1137
  351. package/cpp/leveldb/third_party/googletest/googletest/test/googletest-output-test.py +0 -346
  352. package/cpp/leveldb/third_party/googletest/googletest/test/googletest-output-test_.cc +0 -1149
  353. package/cpp/leveldb/third_party/googletest/googletest/test/googletest-param-test-invalid-name1-test.py +0 -63
  354. package/cpp/leveldb/third_party/googletest/googletest/test/googletest-param-test-invalid-name1-test_.cc +0 -50
  355. package/cpp/leveldb/third_party/googletest/googletest/test/googletest-param-test-invalid-name2-test.py +0 -62
  356. package/cpp/leveldb/third_party/googletest/googletest/test/googletest-param-test-invalid-name2-test_.cc +0 -55
  357. package/cpp/leveldb/third_party/googletest/googletest/test/googletest-param-test-test.cc +0 -1086
  358. package/cpp/leveldb/third_party/googletest/googletest/test/googletest-param-test-test.h +0 -51
  359. package/cpp/leveldb/third_party/googletest/googletest/test/googletest-param-test2-test.cc +0 -61
  360. package/cpp/leveldb/third_party/googletest/googletest/test/googletest-port-test.cc +0 -1272
  361. package/cpp/leveldb/third_party/googletest/googletest/test/googletest-printers-test.cc +0 -1619
  362. package/cpp/leveldb/third_party/googletest/googletest/test/googletest-shuffle-test.py +0 -323
  363. package/cpp/leveldb/third_party/googletest/googletest/test/googletest-shuffle-test_.cc +0 -101
  364. package/cpp/leveldb/third_party/googletest/googletest/test/googletest-test-part-test.cc +0 -230
  365. package/cpp/leveldb/third_party/googletest/googletest/test/googletest-test2_test.cc +0 -61
  366. package/cpp/leveldb/third_party/googletest/googletest/test/googletest-throw-on-failure-test.py +0 -168
  367. package/cpp/leveldb/third_party/googletest/googletest/test/googletest-throw-on-failure-test_.cc +0 -71
  368. package/cpp/leveldb/third_party/googletest/googletest/test/googletest-uninitialized-test.py +0 -67
  369. package/cpp/leveldb/third_party/googletest/googletest/test/googletest-uninitialized-test_.cc +0 -42
  370. package/cpp/leveldb/third_party/googletest/googletest/test/gtest-typed-test2_test.cc +0 -44
  371. package/cpp/leveldb/third_party/googletest/googletest/test/gtest-typed-test_test.cc +0 -462
  372. package/cpp/leveldb/third_party/googletest/googletest/test/gtest-typed-test_test.h +0 -65
  373. package/cpp/leveldb/third_party/googletest/googletest/test/gtest-unittest-api_test.cc +0 -341
  374. package/cpp/leveldb/third_party/googletest/googletest/test/gtest_all_test.cc +0 -46
  375. package/cpp/leveldb/third_party/googletest/googletest/test/gtest_assert_by_exception_test.cc +0 -116
  376. package/cpp/leveldb/third_party/googletest/googletest/test/gtest_environment_test.cc +0 -188
  377. package/cpp/leveldb/third_party/googletest/googletest/test/gtest_help_test.py +0 -170
  378. package/cpp/leveldb/third_party/googletest/googletest/test/gtest_help_test_.cc +0 -45
  379. package/cpp/leveldb/third_party/googletest/googletest/test/gtest_json_test_utils.py +0 -60
  380. package/cpp/leveldb/third_party/googletest/googletest/test/gtest_list_output_unittest.py +0 -141
  381. package/cpp/leveldb/third_party/googletest/googletest/test/gtest_list_output_unittest_.cc +0 -51
  382. package/cpp/leveldb/third_party/googletest/googletest/test/gtest_main_unittest.cc +0 -44
  383. package/cpp/leveldb/third_party/googletest/googletest/test/gtest_no_test_unittest.cc +0 -54
  384. package/cpp/leveldb/third_party/googletest/googletest/test/gtest_pred_impl_unittest.cc +0 -2427
  385. package/cpp/leveldb/third_party/googletest/googletest/test/gtest_premature_exit_test.cc +0 -126
  386. package/cpp/leveldb/third_party/googletest/googletest/test/gtest_prod_test.cc +0 -56
  387. package/cpp/leveldb/third_party/googletest/googletest/test/gtest_repeat_test.cc +0 -233
  388. package/cpp/leveldb/third_party/googletest/googletest/test/gtest_skip_check_output_test.py +0 -59
  389. package/cpp/leveldb/third_party/googletest/googletest/test/gtest_skip_environment_check_output_test.py +0 -54
  390. package/cpp/leveldb/third_party/googletest/googletest/test/gtest_skip_in_environment_setup_test.cc +0 -49
  391. package/cpp/leveldb/third_party/googletest/googletest/test/gtest_skip_test.cc +0 -55
  392. package/cpp/leveldb/third_party/googletest/googletest/test/gtest_sole_header_test.cc +0 -56
  393. package/cpp/leveldb/third_party/googletest/googletest/test/gtest_stress_test.cc +0 -248
  394. package/cpp/leveldb/third_party/googletest/googletest/test/gtest_test_macro_stack_footprint_test.cc +0 -89
  395. package/cpp/leveldb/third_party/googletest/googletest/test/gtest_test_utils.py +0 -314
  396. package/cpp/leveldb/third_party/googletest/googletest/test/gtest_testbridge_test.py +0 -63
  397. package/cpp/leveldb/third_party/googletest/googletest/test/gtest_testbridge_test_.cc +0 -43
  398. package/cpp/leveldb/third_party/googletest/googletest/test/gtest_throw_on_failure_ex_test.cc +0 -90
  399. package/cpp/leveldb/third_party/googletest/googletest/test/gtest_unittest.cc +0 -7496
  400. package/cpp/leveldb/third_party/googletest/googletest/test/gtest_xml_outfile1_test_.cc +0 -43
  401. package/cpp/leveldb/third_party/googletest/googletest/test/gtest_xml_outfile2_test_.cc +0 -43
  402. package/cpp/leveldb/third_party/googletest/googletest/test/gtest_xml_outfiles_test.py +0 -135
  403. package/cpp/leveldb/third_party/googletest/googletest/test/gtest_xml_output_unittest.py +0 -389
  404. package/cpp/leveldb/third_party/googletest/googletest/test/gtest_xml_output_unittest_.cc +0 -188
  405. package/cpp/leveldb/third_party/googletest/googletest/test/gtest_xml_test_utils.py +0 -196
  406. package/cpp/leveldb/third_party/googletest/googletest/test/production.cc +0 -35
  407. package/cpp/leveldb/third_party/googletest/googletest/test/production.h +0 -54
  408. package/cpp/leveldb/third_party/googletest/library.json +0 -66
  409. package/cpp/leveldb/third_party/googletest/platformio.ini +0 -47
@@ -1,442 +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
-
31
- // Google Test - The Google C++ Testing and Mocking Framework
32
- //
33
- // This file implements a universal value printer that can print a
34
- // value of any type T:
35
- //
36
- // void ::testing::internal::UniversalPrinter<T>::Print(value, ostream_ptr);
37
- //
38
- // It uses the << operator when possible, and prints the bytes in the
39
- // object otherwise. A user can override its behavior for a class
40
- // type Foo by defining either operator<<(::std::ostream&, const Foo&)
41
- // or void PrintTo(const Foo&, ::std::ostream*) in the namespace that
42
- // defines Foo.
43
-
44
- #include "gtest/gtest-printers.h"
45
- #include <stdio.h>
46
- #include <cctype>
47
- #include <cwchar>
48
- #include <ostream> // NOLINT
49
- #include <string>
50
- #include "gtest/internal/gtest-port.h"
51
- #include "src/gtest-internal-inl.h"
52
-
53
- namespace testing {
54
-
55
- namespace {
56
-
57
- using ::std::ostream;
58
-
59
- // Prints a segment of bytes in the given object.
60
- GTEST_ATTRIBUTE_NO_SANITIZE_MEMORY_
61
- GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_
62
- GTEST_ATTRIBUTE_NO_SANITIZE_HWADDRESS_
63
- GTEST_ATTRIBUTE_NO_SANITIZE_THREAD_
64
- void PrintByteSegmentInObjectTo(const unsigned char* obj_bytes, size_t start,
65
- size_t count, ostream* os) {
66
- char text[5] = "";
67
- for (size_t i = 0; i != count; i++) {
68
- const size_t j = start + i;
69
- if (i != 0) {
70
- // Organizes the bytes into groups of 2 for easy parsing by
71
- // human.
72
- if ((j % 2) == 0)
73
- *os << ' ';
74
- else
75
- *os << '-';
76
- }
77
- GTEST_SNPRINTF_(text, sizeof(text), "%02X", obj_bytes[j]);
78
- *os << text;
79
- }
80
- }
81
-
82
- // Prints the bytes in the given value to the given ostream.
83
- void PrintBytesInObjectToImpl(const unsigned char* obj_bytes, size_t count,
84
- ostream* os) {
85
- // Tells the user how big the object is.
86
- *os << count << "-byte object <";
87
-
88
- const size_t kThreshold = 132;
89
- const size_t kChunkSize = 64;
90
- // If the object size is bigger than kThreshold, we'll have to omit
91
- // some details by printing only the first and the last kChunkSize
92
- // bytes.
93
- if (count < kThreshold) {
94
- PrintByteSegmentInObjectTo(obj_bytes, 0, count, os);
95
- } else {
96
- PrintByteSegmentInObjectTo(obj_bytes, 0, kChunkSize, os);
97
- *os << " ... ";
98
- // Rounds up to 2-byte boundary.
99
- const size_t resume_pos = (count - kChunkSize + 1)/2*2;
100
- PrintByteSegmentInObjectTo(obj_bytes, resume_pos, count - resume_pos, os);
101
- }
102
- *os << ">";
103
- }
104
-
105
- } // namespace
106
-
107
- namespace internal2 {
108
-
109
- // Delegates to PrintBytesInObjectToImpl() to print the bytes in the
110
- // given object. The delegation simplifies the implementation, which
111
- // uses the << operator and thus is easier done outside of the
112
- // ::testing::internal namespace, which contains a << operator that
113
- // sometimes conflicts with the one in STL.
114
- void PrintBytesInObjectTo(const unsigned char* obj_bytes, size_t count,
115
- ostream* os) {
116
- PrintBytesInObjectToImpl(obj_bytes, count, os);
117
- }
118
-
119
- } // namespace internal2
120
-
121
- namespace internal {
122
-
123
- // Depending on the value of a char (or wchar_t), we print it in one
124
- // of three formats:
125
- // - as is if it's a printable ASCII (e.g. 'a', '2', ' '),
126
- // - as a hexadecimal escape sequence (e.g. '\x7F'), or
127
- // - as a special escape sequence (e.g. '\r', '\n').
128
- enum CharFormat {
129
- kAsIs,
130
- kHexEscape,
131
- kSpecialEscape
132
- };
133
-
134
- // Returns true if c is a printable ASCII character. We test the
135
- // value of c directly instead of calling isprint(), which is buggy on
136
- // Windows Mobile.
137
- inline bool IsPrintableAscii(wchar_t c) {
138
- return 0x20 <= c && c <= 0x7E;
139
- }
140
-
141
- // Prints a wide or narrow char c as a character literal without the
142
- // quotes, escaping it when necessary; returns how c was formatted.
143
- // The template argument UnsignedChar is the unsigned version of Char,
144
- // which is the type of c.
145
- template <typename UnsignedChar, typename Char>
146
- static CharFormat PrintAsCharLiteralTo(Char c, ostream* os) {
147
- wchar_t w_c = static_cast<wchar_t>(c);
148
- switch (w_c) {
149
- case L'\0':
150
- *os << "\\0";
151
- break;
152
- case L'\'':
153
- *os << "\\'";
154
- break;
155
- case L'\\':
156
- *os << "\\\\";
157
- break;
158
- case L'\a':
159
- *os << "\\a";
160
- break;
161
- case L'\b':
162
- *os << "\\b";
163
- break;
164
- case L'\f':
165
- *os << "\\f";
166
- break;
167
- case L'\n':
168
- *os << "\\n";
169
- break;
170
- case L'\r':
171
- *os << "\\r";
172
- break;
173
- case L'\t':
174
- *os << "\\t";
175
- break;
176
- case L'\v':
177
- *os << "\\v";
178
- break;
179
- default:
180
- if (IsPrintableAscii(w_c)) {
181
- *os << static_cast<char>(c);
182
- return kAsIs;
183
- } else {
184
- ostream::fmtflags flags = os->flags();
185
- *os << "\\x" << std::hex << std::uppercase
186
- << static_cast<int>(static_cast<UnsignedChar>(c));
187
- os->flags(flags);
188
- return kHexEscape;
189
- }
190
- }
191
- return kSpecialEscape;
192
- }
193
-
194
- // Prints a wchar_t c as if it's part of a string literal, escaping it when
195
- // necessary; returns how c was formatted.
196
- static CharFormat PrintAsStringLiteralTo(wchar_t c, ostream* os) {
197
- switch (c) {
198
- case L'\'':
199
- *os << "'";
200
- return kAsIs;
201
- case L'"':
202
- *os << "\\\"";
203
- return kSpecialEscape;
204
- default:
205
- return PrintAsCharLiteralTo<wchar_t>(c, os);
206
- }
207
- }
208
-
209
- // Prints a char c as if it's part of a string literal, escaping it when
210
- // necessary; returns how c was formatted.
211
- static CharFormat PrintAsStringLiteralTo(char c, ostream* os) {
212
- return PrintAsStringLiteralTo(
213
- static_cast<wchar_t>(static_cast<unsigned char>(c)), os);
214
- }
215
-
216
- // Prints a wide or narrow character c and its code. '\0' is printed
217
- // as "'\\0'", other unprintable characters are also properly escaped
218
- // using the standard C++ escape sequence. The template argument
219
- // UnsignedChar is the unsigned version of Char, which is the type of c.
220
- template <typename UnsignedChar, typename Char>
221
- void PrintCharAndCodeTo(Char c, ostream* os) {
222
- // First, print c as a literal in the most readable form we can find.
223
- *os << ((sizeof(c) > 1) ? "L'" : "'");
224
- const CharFormat format = PrintAsCharLiteralTo<UnsignedChar>(c, os);
225
- *os << "'";
226
-
227
- // To aid user debugging, we also print c's code in decimal, unless
228
- // it's 0 (in which case c was printed as '\\0', making the code
229
- // obvious).
230
- if (c == 0)
231
- return;
232
- *os << " (" << static_cast<int>(c);
233
-
234
- // For more convenience, we print c's code again in hexadecimal,
235
- // unless c was already printed in the form '\x##' or the code is in
236
- // [1, 9].
237
- if (format == kHexEscape || (1 <= c && c <= 9)) {
238
- // Do nothing.
239
- } else {
240
- *os << ", 0x" << String::FormatHexInt(static_cast<int>(c));
241
- }
242
- *os << ")";
243
- }
244
-
245
- void PrintTo(unsigned char c, ::std::ostream* os) {
246
- PrintCharAndCodeTo<unsigned char>(c, os);
247
- }
248
- void PrintTo(signed char c, ::std::ostream* os) {
249
- PrintCharAndCodeTo<unsigned char>(c, os);
250
- }
251
-
252
- // Prints a wchar_t as a symbol if it is printable or as its internal
253
- // code otherwise and also as its code. L'\0' is printed as "L'\\0'".
254
- void PrintTo(wchar_t wc, ostream* os) {
255
- PrintCharAndCodeTo<wchar_t>(wc, os);
256
- }
257
-
258
- // Prints the given array of characters to the ostream. CharType must be either
259
- // char or wchar_t.
260
- // The array starts at begin, the length is len, it may include '\0' characters
261
- // and may not be NUL-terminated.
262
- template <typename CharType>
263
- GTEST_ATTRIBUTE_NO_SANITIZE_MEMORY_
264
- GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_
265
- GTEST_ATTRIBUTE_NO_SANITIZE_HWADDRESS_
266
- GTEST_ATTRIBUTE_NO_SANITIZE_THREAD_
267
- static CharFormat PrintCharsAsStringTo(
268
- const CharType* begin, size_t len, ostream* os) {
269
- const char* const kQuoteBegin = sizeof(CharType) == 1 ? "\"" : "L\"";
270
- *os << kQuoteBegin;
271
- bool is_previous_hex = false;
272
- CharFormat print_format = kAsIs;
273
- for (size_t index = 0; index < len; ++index) {
274
- const CharType cur = begin[index];
275
- if (is_previous_hex && IsXDigit(cur)) {
276
- // Previous character is of '\x..' form and this character can be
277
- // interpreted as another hexadecimal digit in its number. Break string to
278
- // disambiguate.
279
- *os << "\" " << kQuoteBegin;
280
- }
281
- is_previous_hex = PrintAsStringLiteralTo(cur, os) == kHexEscape;
282
- // Remember if any characters required hex escaping.
283
- if (is_previous_hex) {
284
- print_format = kHexEscape;
285
- }
286
- }
287
- *os << "\"";
288
- return print_format;
289
- }
290
-
291
- // Prints a (const) char/wchar_t array of 'len' elements, starting at address
292
- // 'begin'. CharType must be either char or wchar_t.
293
- template <typename CharType>
294
- GTEST_ATTRIBUTE_NO_SANITIZE_MEMORY_
295
- GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_
296
- GTEST_ATTRIBUTE_NO_SANITIZE_HWADDRESS_
297
- GTEST_ATTRIBUTE_NO_SANITIZE_THREAD_
298
- static void UniversalPrintCharArray(
299
- const CharType* begin, size_t len, ostream* os) {
300
- // The code
301
- // const char kFoo[] = "foo";
302
- // generates an array of 4, not 3, elements, with the last one being '\0'.
303
- //
304
- // Therefore when printing a char array, we don't print the last element if
305
- // it's '\0', such that the output matches the string literal as it's
306
- // written in the source code.
307
- if (len > 0 && begin[len - 1] == '\0') {
308
- PrintCharsAsStringTo(begin, len - 1, os);
309
- return;
310
- }
311
-
312
- // If, however, the last element in the array is not '\0', e.g.
313
- // const char kFoo[] = { 'f', 'o', 'o' };
314
- // we must print the entire array. We also print a message to indicate
315
- // that the array is not NUL-terminated.
316
- PrintCharsAsStringTo(begin, len, os);
317
- *os << " (no terminating NUL)";
318
- }
319
-
320
- // Prints a (const) char array of 'len' elements, starting at address 'begin'.
321
- void UniversalPrintArray(const char* begin, size_t len, ostream* os) {
322
- UniversalPrintCharArray(begin, len, os);
323
- }
324
-
325
- // Prints a (const) wchar_t array of 'len' elements, starting at address
326
- // 'begin'.
327
- void UniversalPrintArray(const wchar_t* begin, size_t len, ostream* os) {
328
- UniversalPrintCharArray(begin, len, os);
329
- }
330
-
331
- // Prints the given C string to the ostream.
332
- void PrintTo(const char* s, ostream* os) {
333
- if (s == nullptr) {
334
- *os << "NULL";
335
- } else {
336
- *os << ImplicitCast_<const void*>(s) << " pointing to ";
337
- PrintCharsAsStringTo(s, strlen(s), os);
338
- }
339
- }
340
-
341
- // MSVC compiler can be configured to define whar_t as a typedef
342
- // of unsigned short. Defining an overload for const wchar_t* in that case
343
- // would cause pointers to unsigned shorts be printed as wide strings,
344
- // possibly accessing more memory than intended and causing invalid
345
- // memory accesses. MSVC defines _NATIVE_WCHAR_T_DEFINED symbol when
346
- // wchar_t is implemented as a native type.
347
- #if !defined(_MSC_VER) || defined(_NATIVE_WCHAR_T_DEFINED)
348
- // Prints the given wide C string to the ostream.
349
- void PrintTo(const wchar_t* s, ostream* os) {
350
- if (s == nullptr) {
351
- *os << "NULL";
352
- } else {
353
- *os << ImplicitCast_<const void*>(s) << " pointing to ";
354
- PrintCharsAsStringTo(s, wcslen(s), os);
355
- }
356
- }
357
- #endif // wchar_t is native
358
-
359
- namespace {
360
-
361
- bool ContainsUnprintableControlCodes(const char* str, size_t length) {
362
- const unsigned char *s = reinterpret_cast<const unsigned char *>(str);
363
-
364
- for (size_t i = 0; i < length; i++) {
365
- unsigned char ch = *s++;
366
- if (std::iscntrl(ch)) {
367
- switch (ch) {
368
- case '\t':
369
- case '\n':
370
- case '\r':
371
- break;
372
- default:
373
- return true;
374
- }
375
- }
376
- }
377
- return false;
378
- }
379
-
380
- bool IsUTF8TrailByte(unsigned char t) { return 0x80 <= t && t<= 0xbf; }
381
-
382
- bool IsValidUTF8(const char* str, size_t length) {
383
- const unsigned char *s = reinterpret_cast<const unsigned char *>(str);
384
-
385
- for (size_t i = 0; i < length;) {
386
- unsigned char lead = s[i++];
387
-
388
- if (lead <= 0x7f) {
389
- continue; // single-byte character (ASCII) 0..7F
390
- }
391
- if (lead < 0xc2) {
392
- return false; // trail byte or non-shortest form
393
- } else if (lead <= 0xdf && (i + 1) <= length && IsUTF8TrailByte(s[i])) {
394
- ++i; // 2-byte character
395
- } else if (0xe0 <= lead && lead <= 0xef && (i + 2) <= length &&
396
- IsUTF8TrailByte(s[i]) &&
397
- IsUTF8TrailByte(s[i + 1]) &&
398
- // check for non-shortest form and surrogate
399
- (lead != 0xe0 || s[i] >= 0xa0) &&
400
- (lead != 0xed || s[i] < 0xa0)) {
401
- i += 2; // 3-byte character
402
- } else if (0xf0 <= lead && lead <= 0xf4 && (i + 3) <= length &&
403
- IsUTF8TrailByte(s[i]) &&
404
- IsUTF8TrailByte(s[i + 1]) &&
405
- IsUTF8TrailByte(s[i + 2]) &&
406
- // check for non-shortest form
407
- (lead != 0xf0 || s[i] >= 0x90) &&
408
- (lead != 0xf4 || s[i] < 0x90)) {
409
- i += 3; // 4-byte character
410
- } else {
411
- return false;
412
- }
413
- }
414
- return true;
415
- }
416
-
417
- void ConditionalPrintAsText(const char* str, size_t length, ostream* os) {
418
- if (!ContainsUnprintableControlCodes(str, length) &&
419
- IsValidUTF8(str, length)) {
420
- *os << "\n As Text: \"" << str << "\"";
421
- }
422
- }
423
-
424
- } // anonymous namespace
425
-
426
- void PrintStringTo(const ::std::string& s, ostream* os) {
427
- if (PrintCharsAsStringTo(s.data(), s.size(), os) == kHexEscape) {
428
- if (GTEST_FLAG(print_utf8)) {
429
- ConditionalPrintAsText(s.data(), s.size(), os);
430
- }
431
- }
432
- }
433
-
434
- #if GTEST_HAS_STD_WSTRING
435
- void PrintWideStringTo(const ::std::wstring& s, ostream* os) {
436
- PrintCharsAsStringTo(s.data(), s.size(), os);
437
- }
438
- #endif // GTEST_HAS_STD_WSTRING
439
-
440
- } // namespace internal
441
-
442
- } // namespace testing
@@ -1,108 +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
- //
31
- // The Google C++ Testing and Mocking Framework (Google Test)
32
-
33
- #include "gtest/gtest-test-part.h"
34
-
35
- #include "gtest/internal/gtest-port.h"
36
- #include "src/gtest-internal-inl.h"
37
-
38
- namespace testing {
39
-
40
- using internal::GetUnitTestImpl;
41
-
42
- // Gets the summary of the failure message by omitting the stack trace
43
- // in it.
44
- std::string TestPartResult::ExtractSummary(const char* message) {
45
- const char* const stack_trace = strstr(message, internal::kStackTraceMarker);
46
- return stack_trace == nullptr ? message : std::string(message, stack_trace);
47
- }
48
-
49
- // Prints a TestPartResult object.
50
- std::ostream& operator<<(std::ostream& os, const TestPartResult& result) {
51
- return os << internal::FormatFileLocation(result.file_name(),
52
- result.line_number())
53
- << " "
54
- << (result.type() == TestPartResult::kSuccess
55
- ? "Success"
56
- : result.type() == TestPartResult::kSkip
57
- ? "Skipped"
58
- : result.type() == TestPartResult::kFatalFailure
59
- ? "Fatal failure"
60
- : "Non-fatal failure")
61
- << ":\n"
62
- << result.message() << std::endl;
63
- }
64
-
65
- // Appends a TestPartResult to the array.
66
- void TestPartResultArray::Append(const TestPartResult& result) {
67
- array_.push_back(result);
68
- }
69
-
70
- // Returns the TestPartResult at the given index (0-based).
71
- const TestPartResult& TestPartResultArray::GetTestPartResult(int index) const {
72
- if (index < 0 || index >= size()) {
73
- printf("\nInvalid index (%d) into TestPartResultArray.\n", index);
74
- internal::posix::Abort();
75
- }
76
-
77
- return array_[static_cast<size_t>(index)];
78
- }
79
-
80
- // Returns the number of TestPartResult objects in the array.
81
- int TestPartResultArray::size() const {
82
- return static_cast<int>(array_.size());
83
- }
84
-
85
- namespace internal {
86
-
87
- HasNewFatalFailureHelper::HasNewFatalFailureHelper()
88
- : has_new_fatal_failure_(false),
89
- original_reporter_(GetUnitTestImpl()->
90
- GetTestPartResultReporterForCurrentThread()) {
91
- GetUnitTestImpl()->SetTestPartResultReporterForCurrentThread(this);
92
- }
93
-
94
- HasNewFatalFailureHelper::~HasNewFatalFailureHelper() {
95
- GetUnitTestImpl()->SetTestPartResultReporterForCurrentThread(
96
- original_reporter_);
97
- }
98
-
99
- void HasNewFatalFailureHelper::ReportTestPartResult(
100
- const TestPartResult& result) {
101
- if (result.fatally_failed())
102
- has_new_fatal_failure_ = true;
103
- original_reporter_->ReportTestPartResult(result);
104
- }
105
-
106
- } // namespace internal
107
-
108
- } // namespace testing
@@ -1,118 +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
-
31
- #include "gtest/gtest-typed-test.h"
32
-
33
- #include "gtest/gtest.h"
34
-
35
- namespace testing {
36
- namespace internal {
37
-
38
- #if GTEST_HAS_TYPED_TEST_P
39
-
40
- // Skips to the first non-space char in str. Returns an empty string if str
41
- // contains only whitespace characters.
42
- static const char* SkipSpaces(const char* str) {
43
- while (IsSpace(*str))
44
- str++;
45
- return str;
46
- }
47
-
48
- static std::vector<std::string> SplitIntoTestNames(const char* src) {
49
- std::vector<std::string> name_vec;
50
- src = SkipSpaces(src);
51
- for (; src != nullptr; src = SkipComma(src)) {
52
- name_vec.push_back(StripTrailingSpaces(GetPrefixUntilComma(src)));
53
- }
54
- return name_vec;
55
- }
56
-
57
- // Verifies that registered_tests match the test names in
58
- // registered_tests_; returns registered_tests if successful, or
59
- // aborts the program otherwise.
60
- const char* TypedTestSuitePState::VerifyRegisteredTestNames(
61
- const char* file, int line, const char* registered_tests) {
62
- typedef RegisteredTestsMap::const_iterator RegisteredTestIter;
63
- registered_ = true;
64
-
65
- std::vector<std::string> name_vec = SplitIntoTestNames(registered_tests);
66
-
67
- Message errors;
68
-
69
- std::set<std::string> tests;
70
- for (std::vector<std::string>::const_iterator name_it = name_vec.begin();
71
- name_it != name_vec.end(); ++name_it) {
72
- const std::string& name = *name_it;
73
- if (tests.count(name) != 0) {
74
- errors << "Test " << name << " is listed more than once.\n";
75
- continue;
76
- }
77
-
78
- bool found = false;
79
- for (RegisteredTestIter it = registered_tests_.begin();
80
- it != registered_tests_.end();
81
- ++it) {
82
- if (name == it->first) {
83
- found = true;
84
- break;
85
- }
86
- }
87
-
88
- if (found) {
89
- tests.insert(name);
90
- } else {
91
- errors << "No test named " << name
92
- << " can be found in this test suite.\n";
93
- }
94
- }
95
-
96
- for (RegisteredTestIter it = registered_tests_.begin();
97
- it != registered_tests_.end();
98
- ++it) {
99
- if (tests.count(it->first) == 0) {
100
- errors << "You forgot to list test " << it->first << ".\n";
101
- }
102
- }
103
-
104
- const std::string& errors_str = errors.GetString();
105
- if (errors_str != "") {
106
- fprintf(stderr, "%s %s", FormatFileLocation(file, line).c_str(),
107
- errors_str.c_str());
108
- fflush(stderr);
109
- posix::Abort();
110
- }
111
-
112
- return registered_tests;
113
- }
114
-
115
- #endif // GTEST_HAS_TYPED_TEST_P
116
-
117
- } // namespace internal
118
- } // namespace testing