#include "quiche/http2/adapter/test_frame_sequence.h"
#include <memory>
#include <optional>
#include <string>
#include <utility>
#include <vector>
#include "quiche/http2/adapter/http2_util.h"
#include "quiche/http2/adapter/oghttp2_util.h"
#include "quiche/http2/hpack/hpack_encoder.h"
#include "quiche/spdy/core/spdy_framer.h"
namespace http2 {
namespace adapter {
namespace test {
std::vector<Header> ToHeaders(
absl::Span<const std::pair<absl::string_view, absl::string_view>> headers) { … }
TestFrameSequence& TestFrameSequence::ClientPreface(
absl::Span<const Http2Setting> settings) { … }
TestFrameSequence& TestFrameSequence::ServerPreface(
absl::Span<const Http2Setting> settings) { … }
TestFrameSequence& TestFrameSequence::Data(Http2StreamId stream_id,
absl::string_view payload, bool fin,
std::optional<int> padding_length) { … }
TestFrameSequence& TestFrameSequence::RstStream(Http2StreamId stream_id,
Http2ErrorCode error) { … }
TestFrameSequence& TestFrameSequence::Settings(
absl::Span<const Http2Setting> settings) { … }
TestFrameSequence& TestFrameSequence::SettingsAck() { … }
TestFrameSequence& TestFrameSequence::PushPromise(
Http2StreamId stream_id, Http2StreamId promised_stream_id,
absl::Span<const Header> headers) { … }
TestFrameSequence& TestFrameSequence::Ping(Http2PingId id) { … }
TestFrameSequence& TestFrameSequence::PingAck(Http2PingId id) { … }
TestFrameSequence& TestFrameSequence::GoAway(Http2StreamId last_good_stream_id,
Http2ErrorCode error,
absl::string_view payload) { … }
TestFrameSequence& TestFrameSequence::Headers(
Http2StreamId stream_id,
absl::Span<const std::pair<absl::string_view, absl::string_view>> headers,
bool fin, bool add_continuation) { … }
TestFrameSequence& TestFrameSequence::Headers(Http2StreamId stream_id,
quiche::HttpHeaderBlock block,
bool fin, bool add_continuation) { … }
TestFrameSequence& TestFrameSequence::Headers(Http2StreamId stream_id,
absl::Span<const Header> headers,
bool fin, bool add_continuation) { … }
TestFrameSequence& TestFrameSequence::WindowUpdate(Http2StreamId stream_id,
int32_t delta) { … }
TestFrameSequence& TestFrameSequence::Priority(Http2StreamId stream_id,
Http2StreamId parent_stream_id,
int weight, bool exclusive) { … }
TestFrameSequence& TestFrameSequence::Metadata(Http2StreamId stream_id,
absl::string_view payload,
bool multiple_frames) { … }
std::string TestFrameSequence::Serialize() { … }
}
}
}