#include "quiche/http2/hpack/decoder/hpack_entry_decoder.h"
#include <cstdint>
#include <string>
#include "quiche/http2/test_tools/hpack_block_builder.h"
#include "quiche/http2/test_tools/hpack_entry_collector.h"
#include "quiche/http2/test_tools/http2_random.h"
#include "quiche/http2/test_tools/random_decoder_test_base.h"
#include "quiche/common/platform/api/quiche_expect_bug.h"
#include "quiche/common/platform/api/quiche_test.h"
namespace http2 {
namespace test {
namespace {
class HpackEntryDecoderTest : public RandomDecoderTest { … };
TEST_F(HpackEntryDecoderTest, IndexedHeader_Literals) { … }
TEST_F(HpackEntryDecoderTest, IndexedHeader_Various) { … }
TEST_F(HpackEntryDecoderTest, IndexedLiteralValue_Literal) { … }
TEST_F(HpackEntryDecoderTest, IndexedLiteralNameValue_Literal) { … }
TEST_F(HpackEntryDecoderTest, DynamicTableSizeUpdate_Literal) { … }
class HpackLiteralEntryDecoderTest
: public HpackEntryDecoderTest,
public ::testing::WithParamInterface<HpackEntryType> { … };
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(HpackLiteralEntryDecoderTest, RandNameIndexAndLiteralValue) { … }
TEST_P(HpackLiteralEntryDecoderTest, RandLiteralNameAndValue) { … }
}
}
}