#ifndef QUICHE_QUIC_TEST_TOOLS_QPACK_QPACK_DECODER_TEST_UTILS_H_
#define QUICHE_QUIC_TEST_TOOLS_QPACK_QPACK_DECODER_TEST_UTILS_H_
#include <string>
#include "absl/strings/string_view.h"
#include "quiche/quic/core/qpack/qpack_decoder.h"
#include "quiche/quic/core/qpack/qpack_progressive_decoder.h"
#include "quiche/quic/core/quic_error_codes.h"
#include "quiche/quic/platform/api/quic_test.h"
#include "quiche/quic/test_tools/qpack/qpack_test_utils.h"
#include "quiche/common/http/http_header_block.h"
namespace quic {
namespace test {
class MockEncoderStreamErrorDelegate
: public QpackDecoder::EncoderStreamErrorDelegate { … };
class TestHeadersHandler
: public QpackProgressiveDecoder::HeadersHandlerInterface { … };
class MockHeadersHandler
: public QpackProgressiveDecoder::HeadersHandlerInterface { … };
class NoOpHeadersHandler
: public QpackProgressiveDecoder::HeadersHandlerInterface { … };
void QpackDecode(
uint64_t maximum_dynamic_table_capacity, uint64_t maximum_blocked_streams,
QpackDecoder::EncoderStreamErrorDelegate* encoder_stream_error_delegate,
QpackStreamSenderDelegate* decoder_stream_sender_delegate,
QpackProgressiveDecoder::HeadersHandlerInterface* handler,
const FragmentSizeGenerator& fragment_size_generator,
absl::string_view data);
}
}
#endif