Refactor zlib tests and fix typo:

close #1744

* Fixed typo in enum name
* Added missing zlib error enumerator
* Marked caveat in zlib impl to avoid future confusion
* Created Compressor/Decompressor abstractions in Beast.zlib tests
* Applied abstractions on Beast.zlib tests
* Workaround Travis-CI' 10min silence timeout
* Add test for Beast.zlib's need_dict error
* Avoid breaking user-code dependant on deprecated enumerator interface

Signed-off-by: AeroStun <24841307+AeroStun@users.noreply.github.com>
This commit is contained in:
AeroStun authored and Vinnie Falco committed 2019-11-02 08:29:30 -07:00
1 parent 26a156e300
commit d895906bcc
7 files changed
+443 -194

No files matched your search

+15 -1
View File
@@ -66,6 +66,17 @@ enum class error
*/
end_of_stream,
/** Preset dictionary required
This error indicates that a preset dictionary was not provided and is now
needed at this point.
This does not always indicate a failure condition.
@note This is the same as `Z_NEED_DICT` returned by ZLib.
*/
need_dict,
/** Invalid stream or parameters.
This error is returned when invalid parameters are passed,
@@ -95,7 +106,10 @@ enum class error
too_many_symbols,
/// Invalid code lengths
invalid_code_lenths,
invalid_code_lengths,
#ifndef BOOST_BEAST_NO_DEPRECATED
invalid_code_lenths = invalid_code_lengths,
#endif
/// Invalid bit length repeat
invalid_bit_length_repeat,