filter_source_stream_test_util.h 742 B

1234567891011121314151617181920212223
  1. // Copyright 2016 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef NET_FILTER_FILTER_SOURCE_STREAM_TEST_UTIL_H_
  5. #define NET_FILTER_FILTER_SOURCE_STREAM_TEST_UTIL_H_
  6. #include <stddef.h>
  7. namespace net {
  8. // Compress |source| with length |source_len| using gzip. Write output into
  9. // |dest|, and output length into |dest_len|. If |gzip_framing| is true, header
  10. // will be added.
  11. void CompressGzip(const char* source,
  12. size_t source_len,
  13. char* dest,
  14. size_t* dest_len,
  15. bool gzip_framing);
  16. } // namespace net
  17. #endif // NET_FILTER_FILTER_SOURCE_STREAM_TEST_UTIL_H_