chromium/net/third_party/quiche/src/quiche/http2/hpack/hpack_header_table_test.cc

// Copyright 2014 The Chromium 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 "quiche/http2/hpack/hpack_header_table.h"

#include <algorithm>
#include <cstddef>
#include <cstdint>
#include <string>
#include <vector>

#include "absl/strings/string_view.h"
#include "quiche/http2/hpack/hpack_constants.h"
#include "quiche/http2/hpack/hpack_entry.h"
#include "quiche/http2/hpack/hpack_static_table.h"
#include "quiche/common/platform/api/quiche_test.h"

namespace spdy {

distance;

namespace test {

class HpackHeaderTablePeer {};

}  // namespace test

namespace {

class HpackHeaderTableTest : public quiche::test::QuicheTest {};

TEST_F(HpackHeaderTableTest, StaticTableInitialization) {}

TEST_F(HpackHeaderTableTest, BasicDynamicEntryInsertionAndEviction) {}

TEST_F(HpackHeaderTableTest, EntryIndexing) {}

TEST_F(HpackHeaderTableTest, SetSizes) {}

TEST_F(HpackHeaderTableTest, EvictionCountForEntry) {}

TEST_F(HpackHeaderTableTest, EvictionCountToReclaim) {}

// Fill a header table with entries. Make sure the entries are in
// reverse order in the header table.
TEST_F(HpackHeaderTableTest, TryAddEntryBasic) {}

// Fill a header table with entries, and then ramp the table's max
// size down to evict an entry one at a time. Make sure the eviction
// happens as expected.
TEST_F(HpackHeaderTableTest, SetMaxSize) {}

// Fill a header table with entries, and then add an entry just big
// enough to cause eviction of all but one entry. Make sure the
// eviction happens as expected and the long entry is inserted into
// the table.
TEST_F(HpackHeaderTableTest, TryAddEntryEviction) {}

// Fill a header table with entries, and then add an entry bigger than
// the entire table. Make sure no entry remains in the table.
TEST_F(HpackHeaderTableTest, TryAddTooLargeEntry) {}

}  // namespace

}  // namespace spdy