summaryrefslogtreecommitdiff
path: root/chromium/net/third_party/quiche/src/http2/adapter/test_frame_sequence.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/net/third_party/quiche/src/http2/adapter/test_frame_sequence.h')
-rw-r--r--chromium/net/third_party/quiche/src/http2/adapter/test_frame_sequence.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/chromium/net/third_party/quiche/src/http2/adapter/test_frame_sequence.h b/chromium/net/third_party/quiche/src/http2/adapter/test_frame_sequence.h
index dd110c1a729..cc5e8b5ff57 100644
--- a/chromium/net/third_party/quiche/src/http2/adapter/test_frame_sequence.h
+++ b/chromium/net/third_party/quiche/src/http2/adapter/test_frame_sequence.h
@@ -12,6 +12,9 @@ namespace http2 {
namespace adapter {
namespace test {
+std::vector<const Header> ToHeaders(
+ absl::Span<const std::pair<absl::string_view, absl::string_view>> headers);
+
class TestFrameSequence {
public:
TestFrameSequence() = default;
@@ -30,6 +33,10 @@ class TestFrameSequence {
TestFrameSequence& GoAway(Http2StreamId last_good_stream_id,
Http2ErrorCode error,
absl::string_view payload = "");
+ TestFrameSequence& Headers(
+ Http2StreamId stream_id,
+ absl::Span<const std::pair<absl::string_view, absl::string_view>> headers,
+ bool fin = false);
TestFrameSequence& Headers(Http2StreamId stream_id,
spdy::Http2HeaderBlock block,
bool fin = false);