#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[] = …;
const uint8_t kZipEntryWithDataDescriptor[] = …;
void CheckFindPuffLocation(const Buffer& compressed,
const vector<BitExtent>& deflates,
const vector<ByteExtent>& expected_puffs,
uint64_t expected_puff_size) { … }
}
TEST(UtilsTest, FindPuffLocations1Test) { … }
TEST(UtilsTest, FindPuffLocations2Test) { … }
TEST(UtilsTest, LocateDeflatesInZipArchiveSmoke) { … }
TEST(UtilsTest, LocateDeflatesInZipArchiveWithDataDescriptor) { … }
TEST(UtilsTest, LocateDeflatesInZipArchiveErrorChecks) { … }
TEST(UtilsTest, RemoveEqualBitExtents) { … }
TEST(UtilsTest, RemoveDeflatesWithBadDistanceCaches) { … }
}