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 |