mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-26 07:31:33 +01:00
Ensure that each compression backend returns a provider version identifier.
This commit is contained in:
parent
bbeba2412e
commit
3772fdf756
1 changed files with 5 additions and 0 deletions
|
@ -2250,6 +2250,11 @@ test_util_compress_impl(compress_method_t method)
|
|||
|
||||
tt_assert(tor_compress_supports_method(method));
|
||||
|
||||
if (method != NO_METHOD) {
|
||||
tt_assert(tor_compress_version_str(method) != NULL);
|
||||
tt_assert(tor_compress_header_version_str(method) != NULL);
|
||||
}
|
||||
|
||||
buf1 = tor_strdup("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZAAAAAAAAAAAAAAAAAAAZ");
|
||||
tt_assert(detect_compression_method(buf1, strlen(buf1)) == UNKNOWN_METHOD);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue