#include "quiche/quic/core/qpack/qpack_instruction_decoder.h"
#include <algorithm>
#include <memory>
#include <string>
#include "absl/strings/escaping.h"
#include "absl/strings/string_view.h"
#include "quiche/quic/core/qpack/qpack_instructions.h"
#include "quiche/quic/platform/api/quic_logging.h"
#include "quiche/quic/platform/api/quic_test.h"
#include "quiche/quic/test_tools/qpack/qpack_test_utils.h"
_;
Eq;
Expectation;
InvokeWithoutArgs;
Return;
StrictMock;
Values;
namespace quic {
namespace test {
namespace {
const QpackInstruction* TestInstruction1() { … }
const QpackInstruction* TestInstruction2() { … }
const QpackLanguage* TestLanguage() { … }
class MockDelegate : public QpackInstructionDecoder::Delegate { … };
class QpackInstructionDecoderTest : public QuicTestWithParam<FragmentMode> { … };
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(QpackInstructionDecoderTest, SBitAndVarint2) { … }
TEST_P(QpackInstructionDecoderTest, NameAndValue) { … }
TEST_P(QpackInstructionDecoderTest, InvalidHuffmanEncoding) { … }
TEST_P(QpackInstructionDecoderTest, InvalidVarintEncoding) { … }
TEST_P(QpackInstructionDecoderTest, StringLiteralTooLong) { … }
TEST_P(QpackInstructionDecoderTest, DelegateSignalsError) { … }
TEST_P(QpackInstructionDecoderTest, DelegateSignalsErrorAndDestroysDecoder) { … }
}
}
}