#include "quiche/quic/test_tools/qpack/qpack_offline_decoder.h"
#include <cstdint>
#include <memory>
#include <optional>
#include <string>
#include <utility>
#include <vector>
#include "absl/strings/match.h"
#include "absl/strings/numbers.h"
#include "absl/strings/str_split.h"
#include "absl/strings/string_view.h"
#include "quiche/quic/core/quic_types.h"
#include "quiche/quic/platform/api/quic_logging.h"
#include "quiche/quic/test_tools/qpack/qpack_test_utils.h"
#include "quiche/common/platform/api/quiche_file_utils.h"
#include "quiche/common/quiche_endian.h"
namespace quic {
QpackOfflineDecoder::QpackOfflineDecoder()
: … { … }
bool QpackOfflineDecoder::DecodeAndVerifyOfflineData(
absl::string_view input_filename,
absl::string_view expected_headers_filename) { … }
void QpackOfflineDecoder::OnEncoderStreamError(
QuicErrorCode error_code, absl::string_view error_message) { … }
bool QpackOfflineDecoder::ParseInputFilename(absl::string_view input_filename) { … }
bool QpackOfflineDecoder::DecodeHeaderBlocksFromFile(
absl::string_view input_filename) { … }
bool QpackOfflineDecoder::VerifyDecodedHeaderLists(
absl::string_view expected_headers_filename) { … }
bool QpackOfflineDecoder::ReadNextExpectedHeaderList(
absl::string_view* expected_headers_data,
quiche::HttpHeaderBlock* expected_header_list) { … }
bool QpackOfflineDecoder::CompareHeaderBlocks(
quiche::HttpHeaderBlock decoded_header_list,
quiche::HttpHeaderBlock expected_header_list) { … }
}