#include <stddef.h>
#include <string>
#include <tuple>
#include "absl/strings/string_view.h"
#include "quiche/http2/decoder/decode_buffer.h"
#include "quiche/http2/decoder/decode_status.h"
#include "quiche/http2/hpack/huffman/hpack_huffman_decoder.h"
#include "quiche/http2/hpack/huffman/hpack_huffman_encoder.h"
#include "quiche/http2/test_tools/random_decoder_test_base.h"
#include "quiche/common/platform/api/quiche_test.h"
#include "quiche/common/quiche_text_utils.h"
AssertionSuccess;
Combine;
Range;
Values;
namespace http2 {
namespace test {
namespace {
std::string GenAsciiNonControlSet() { … }
class HpackHuffmanTranscoderTest : public RandomDecoderTest { … };
TEST_F(HpackHuffmanTranscoderTest, RoundTripRandomAsciiNonControlString) { … }
TEST_F(HpackHuffmanTranscoderTest, RoundTripRandomBytes) { … }
class HpackHuffmanTranscoderAdjacentCharTest
: public HpackHuffmanTranscoderTest,
public testing::WithParamInterface<int> { … };
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(HpackHuffmanTranscoderAdjacentCharTest, RoundTripAdjacentChar) { … }
class HpackHuffmanTranscoderRepeatedCharTest
: public HpackHuffmanTranscoderTest,
public testing::WithParamInterface<std::tuple<int, int>> { … };
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(HpackHuffmanTranscoderRepeatedCharTest, RoundTripRepeatedChar) { … }
}
}
}