Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(924)

Unified Diff: net/spdy/spdy_test_util_common.cc

Issue 1272283003: Add a new SpdyStream::Delegate method to handle trailers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« net/spdy/spdy_stream.h ('K') | « net/spdy/spdy_test_util_common.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_test_util_common.cc
diff --git a/net/spdy/spdy_test_util_common.cc b/net/spdy/spdy_test_util_common.cc
index e0437ff6564c35a5719cb09606b9482e1725a19f..4c3e595baf5e2998b6f0e59e5c24bc7b44833333 100644
--- a/net/spdy/spdy_test_util_common.cc
+++ b/net/spdy/spdy_test_util_common.cc
@@ -1102,6 +1102,15 @@ SpdyFrame* SpdyTestUtil::ConstructSpdyPushHeaders(
return CreateFramer(false)->SerializeFrame(headers);
}
+SpdyFrame* SpdyTestUtil::ConstructSpdyHeaderFrame(int stream_id,
+ const char* const headers[],
+ int header_count) {
+ SpdyHeadersIR spdy_headers(stream_id);
+ AppendToHeaderBlock(headers, header_count,
+ spdy_headers.mutable_name_value_block());
Bence 2015/08/06 18:26:25 You'll need to rebase on https://crrev.com/1263803
xunjieli 2015/08/06 21:02:00 Done.
+ return CreateFramer(false)->SerializeFrame(spdy_headers);
+}
+
SpdyFrame* SpdyTestUtil::ConstructSpdySyn(int stream_id,
const SpdyHeaderBlock& block,
RequestPriority priority,
« net/spdy/spdy_stream.h ('K') | « net/spdy/spdy_test_util_common.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698