chromium/third_party/crashpad/crashpad/util/net/http_body_gzip_test.cc

// Copyright 2017 The Crashpad Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#include "util/net/http_body_gzip.h"

#include <string.h>

#include <algorithm>
#include <memory>
#include <string>
#include <utility>

#include "base/containers/heap_array.h"
#include "base/numerics/safe_conversions.h"
#include "base/rand_util.h"
#include "gtest/gtest.h"
#include "third_party/zlib/zlib_crashpad.h"
#include "util/misc/zlib.h"
#include "util/net/http_body.h"

namespace crashpad {
namespace test {
namespace {

class ScopedZlibInflateStream {};

void GzipInflate(const std::string& compressed,
                 std::string* decompressed,
                 size_t buf_size) {}

void TestGzipDeflateInflate(const std::string& string) {}

std::string MakeString(size_t size) {}

constexpr size_t kFourKBytes =;
constexpr size_t kManyBytes =;

TEST(GzipHTTPBodyStream, Empty) {}

TEST(GzipHTTPBodyStream, OneByte) {}

TEST(GzipHTTPBodyStream, FourKBytes_NUL) {}

TEST(GzipHTTPBodyStream, ManyBytes_NUL) {}

TEST(GzipHTTPBodyStream, FourKBytes_Deterministic) {}

TEST(GzipHTTPBodyStream, ManyBytes_Deterministic) {}

TEST(GzipHTTPBodyStream, FourKBytes_Random) {}

TEST(GzipHTTPBodyStream, ManyBytes_Random) {}

}  // namespace
}  // namespace test
}  // namespace crashpad