OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NET_SPDY_SPDY_STREAM_TEST_UTIL_H_ | 5 #ifndef NET_SPDY_SPDY_STREAM_TEST_UTIL_H_ |
6 #define NET_SPDY_SPDY_STREAM_TEST_UTIL_H_ | 6 #define NET_SPDY_SPDY_STREAM_TEST_UTIL_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 // Test delegate that closes stream in OnHeadersReceived(). | 126 // Test delegate that closes stream in OnHeadersReceived(). |
127 class StreamDelegateCloseOnHeaders : public StreamDelegateBase { | 127 class StreamDelegateCloseOnHeaders : public StreamDelegateBase { |
128 public: | 128 public: |
129 explicit StreamDelegateCloseOnHeaders( | 129 explicit StreamDelegateCloseOnHeaders( |
130 const base::WeakPtr<SpdyStream>& stream); | 130 const base::WeakPtr<SpdyStream>& stream); |
131 ~StreamDelegateCloseOnHeaders() override; | 131 ~StreamDelegateCloseOnHeaders() override; |
132 | 132 |
133 void OnHeadersReceived(const SpdyHeaderBlock& response_headers) override; | 133 void OnHeadersReceived(const SpdyHeaderBlock& response_headers) override; |
134 }; | 134 }; |
135 | 135 |
136 } // namespace test | 136 } // namespace test |
137 | 137 |
138 } // namespace net | 138 } // namespace net |
139 | 139 |
140 #endif // NET_SPDY_SPDY_STREAM_TEST_UTIL_H_ | 140 #endif // NET_SPDY_SPDY_STREAM_TEST_UTIL_H_ |
OLD | NEW |