chromium/third_party/zlib/google/compression_utils_unittest.cc

// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "third_party/zlib/google/compression_utils.h"

#include <stddef.h>
#include <stdint.h>

#include <iterator>
#include <string>

#include "testing/gtest/include/gtest/gtest.h"

namespace compression {

namespace {

// The data to be compressed by gzip. This is the hex representation of "hello
// world".
const uint8_t kData[] =;

// This is the string representation of gzip compressed string above. It was
// obtained by running echo -n "hello world" | gzip -c | hexdump -e '8 1 ",
// 0x%x"' followed by 0'ing out the OS byte (10th byte) in the header. This is
// so that the test passes on all platforms (that run various OS'es).
const uint8_t kCompressedData[] =;

}  // namespace

TEST(CompressionUtilsTest, GzipCompression) {}

TEST(CompressionUtilsTest, GzipUncompression) {}

TEST(CompressionUtilsTest, GzipUncompressionFromSpanToString) {}

// Checks that compressing/decompressing input > 256 bytes works as expected.
TEST(CompressionUtilsTest, LargeInput) {}

TEST(CompressionUtilsTest, InPlace) {}

}  // namespace compression