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

Unified Diff: net/spdy/spdy_stream_test_util.h

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_session_unittest.cc ('k') | net/spdy/spdy_stream_test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_stream_test_util.h
diff --git a/net/spdy/spdy_stream_test_util.h b/net/spdy/spdy_stream_test_util.h
index 2d0a198ffad0bf870ac4938d63b4d4427822b0d6..0c0497eda309de79cb61a2f5678655e9d7d27c05 100644
--- a/net/spdy/spdy_stream_test_util.h
+++ b/net/spdy/spdy_stream_test_util.h
@@ -120,6 +120,16 @@ class StreamDelegateWithBody : public StreamDelegateBase {
scoped_refptr<StringIOBuffer> buf_;
};
+// Test delegate that closes stream in OnResponseHeadersUpdated().
+class StreamDelegateCloseOnHeaders : public StreamDelegateBase {
+ public:
+ StreamDelegateCloseOnHeaders(const base::WeakPtr<SpdyStream>& stream);
+ virtual ~StreamDelegateCloseOnHeaders();
+
+ virtual SpdyResponseHeadersStatus OnResponseHeadersUpdated(
+ const SpdyHeaderBlock& response_headers) OVERRIDE;
+};
+
} // namespace test
} // namespace net
« no previous file with comments | « net/spdy/spdy_session_unittest.cc ('k') | net/spdy/spdy_stream_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698