#include "quiche/http2/hpack/varint/hpack_varint_decoder.h"
#include <stddef.h>
#include <ios>
#include <iterator>
#include <limits>
#include <set>
#include <string>
#include <utility>
#include <vector>
#include "absl/strings/str_cat.h"
#include "absl/strings/str_format.h"
#include "absl/strings/string_view.h"
#include "quiche/http2/test_tools/hpack_block_builder.h"
#include "quiche/http2/test_tools/random_decoder_test_base.h"
#include "quiche/common/platform/api/quiche_logging.h"
#include "quiche/common/platform/api/quiche_test.h"
#include "quiche/common/quiche_text_utils.h"
AssertionFailure;
AssertionSuccess;
namespace http2 {
namespace test {
namespace {
uint64_t HiValueOfExtensionBytes(uint32_t extension_bytes,
uint32_t prefix_length) { … }
class HpackVarintRoundTripTest : public RandomDecoderTest { … };
TEST_F(HpackVarintRoundTripTest, Encode) { … }
TEST_F(HpackVarintRoundTripTest, FromSpec1337) { … }
TEST_F(HpackVarintRoundTripTest, ValidatePrefixOnly) { … }
TEST_F(HpackVarintRoundTripTest, ValidateOneExtensionByte) { … }
TEST_F(HpackVarintRoundTripTest, ValidateTwoExtensionBytes) { … }
TEST_F(HpackVarintRoundTripTest, ValidateThreeExtensionBytes) { … }
TEST_F(HpackVarintRoundTripTest, ValidateFourExtensionBytes) { … }
TEST_F(HpackVarintRoundTripTest, ValidateFiveExtensionBytes) { … }
TEST_F(HpackVarintRoundTripTest, ValidateSixExtensionBytes) { … }
TEST_F(HpackVarintRoundTripTest, ValidateSevenExtensionBytes) { … }
TEST_F(HpackVarintRoundTripTest, ValidateEightExtensionBytes) { … }
TEST_F(HpackVarintRoundTripTest, ValidateNineExtensionBytes) { … }
TEST_F(HpackVarintRoundTripTest, ValidateTenExtensionBytes) { … }
}
}
}