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

Unified Diff: net/spdy/spdy_stream_test_util.cc

Issue 371273003: Reland "Separate client and server pushed streams limits." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix active push stream count Created 6 years, 5 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
« no previous file with comments | « net/spdy/spdy_stream_test_util.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_stream_test_util.cc
diff --git a/net/spdy/spdy_stream_test_util.cc b/net/spdy/spdy_stream_test_util.cc
index 835ac848b5bee23fd2f4a477cd7aeb72197bc167..4cd526467763385c8a9ff9ae196c2416480571e3 100644
--- a/net/spdy/spdy_stream_test_util.cc
+++ b/net/spdy/spdy_stream_test_util.cc
@@ -141,6 +141,21 @@ void StreamDelegateWithBody::OnRequestHeadersSent() {
stream()->SendData(buf_.get(), buf_->size(), NO_MORE_DATA_TO_SEND);
}
+StreamDelegateCloseOnHeaders::StreamDelegateCloseOnHeaders(
+ const base::WeakPtr<SpdyStream>& stream)
+ : StreamDelegateBase(stream) {
+}
+
+StreamDelegateCloseOnHeaders::~StreamDelegateCloseOnHeaders() {
+}
+
+SpdyResponseHeadersStatus
+StreamDelegateCloseOnHeaders::OnResponseHeadersUpdated(
+ const SpdyHeaderBlock& response_headers) {
+ stream()->Cancel();
+ return RESPONSE_HEADERS_ARE_COMPLETE;
+}
+
} // namespace test
} // namespace net
« no previous file with comments | « net/spdy/spdy_stream_test_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698