// Copyright 2016 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifdef UNSAFE_BUFFERS_BUILD // TODO(crbug.com/40284755): Remove this and spanify to fix the errors. #pragma allow_unsafe_buffers #endif #include "net/filter/filter_source_stream_test_util.h" #include <cstring> #include "base/check_op.h" #include "third_party/zlib/zlib.h" namespace net { // Compress |source| with length |source_len|. Write output into |dest|, and // output length into |dest_len|. If |gzip_framing| is true, header will be // added. void CompressGzip(const char* source, size_t source_len, char* dest, size_t* dest_len, bool gzip_framing) { … } } // namespace net