diff options
author | Alexander Færøy <ahf@torproject.org> | 2017-04-17 14:29:10 +0200 |
---|---|---|
committer | Alexander Færøy <ahf@torproject.org> | 2017-04-17 14:29:10 +0200 |
commit | 44cb86adbe2e9b9fef7bf5fd64b52a8e44441be5 (patch) | |
tree | 2dd93776ce5e16f2f8df7b6e7bda8cf96e891b57 /src/test/test_buffers.c | |
parent | e8b025dfc30ef0008cb44feb56ab3c740d2bae9b (diff) | |
download | tor-44cb86adbe2e9b9fef7bf5fd64b52a8e44441be5.tar.gz tor-44cb86adbe2e9b9fef7bf5fd64b52a8e44441be5.zip |
Rename `tor_gzip_{compress,uncompress}` to `tor_{compress,uncompress}`.
To allow us to use the API name `tor_compress` and `tor_uncompress` as
the main entry-point for all compression/uncompression and not just gzip
and zlib.
See https://bugs.torproject.org/21663
Diffstat (limited to 'src/test/test_buffers.c')
-rw-r--r-- | src/test/test_buffers.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/test/test_buffers.c b/src/test/test_buffers.c index d14165c45c..f0edd42a88 100644 --- a/src/test/test_buffers.c +++ b/src/test/test_buffers.c @@ -607,10 +607,10 @@ test_buffers_zlib_impl(int finalize_with_nil) tt_int_op(fetch_from_buf(contents, in_len, buf), OP_EQ, 0); - tt_int_op(0, OP_EQ, tor_gzip_uncompress(&expanded, &out_len, - contents, in_len, - ZLIB_METHOD, 1, - LOG_WARN)); + tt_int_op(0, OP_EQ, tor_uncompress(&expanded, &out_len, + contents, in_len, + ZLIB_METHOD, 1, + LOG_WARN)); tt_int_op(out_len, OP_GE, 128); tt_mem_op(msg, OP_EQ, expanded, 128); @@ -676,10 +676,11 @@ test_buffers_zlib_fin_at_chunk_end(void *arg) tt_uint_op(in_len, OP_GT, headerjunk); - tt_int_op(0, OP_EQ, tor_gzip_uncompress(&expanded, &out_len, - contents + headerjunk, in_len - headerjunk, - ZLIB_METHOD, 1, - LOG_WARN)); + tt_int_op(0, OP_EQ, tor_uncompress(&expanded, &out_len, + contents + headerjunk, + in_len - headerjunk, + ZLIB_METHOD, 1, + LOG_WARN)); tt_int_op(out_len, OP_EQ, 0); tt_assert(expanded); |