chromium/third_party/puffin/src/utils_unittest.cc

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

#include <vector>

#include "gtest/gtest.h"

#include "puffin/file_stream.h"
#include "puffin/memory_stream.h"
#include "puffin/src/include/puffin/common.h"
#include "puffin/src/include/puffin/utils.h"
#include "puffin/src/unittest_common.h"

string;
vector;

namespace puffin {

namespace {
const uint8_t kZipEntries[] =;

// (echo "666666" > 2 && zip -fd test.zip 2 &&
//  cat test.zip | hexdump -v -e '10/1 "0x%02x, " "\n"')
const uint8_t kZipEntryWithDataDescriptor[] =;

void CheckFindPuffLocation(const Buffer& compressed,
                           const vector<BitExtent>& deflates,
                           const vector<ByteExtent>& expected_puffs,
                           uint64_t expected_puff_size) {}
}  // namespace

// Test Simple Puffing of the source.
TEST(UtilsTest, FindPuffLocations1Test) {}

TEST(UtilsTest, FindPuffLocations2Test) {}

TEST(UtilsTest, LocateDeflatesInZipArchiveSmoke) {}

TEST(UtilsTest, LocateDeflatesInZipArchiveWithDataDescriptor) {}

TEST(UtilsTest, LocateDeflatesInZipArchiveErrorChecks) {}

TEST(UtilsTest, RemoveEqualBitExtents) {}

TEST(UtilsTest, RemoveDeflatesWithBadDistanceCaches) {}

}  // namespace puffin