OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_TEST_UTIL_H_ | 5 #ifndef NET_SPDY_SPDY_TEST_UTIL_H_ |
6 #define NET_SPDY_SPDY_TEST_UTIL_H_ | 6 #define NET_SPDY_SPDY_TEST_UTIL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "net/base/mock_host_resolver.h" | 10 #include "net/base/mock_host_resolver.h" |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 // |extra_headers| are the extra header-value pairs. | 142 // |extra_headers| are the extra header-value pairs. |
143 // |buffer| is the buffer we're filling in. | 143 // |buffer| is the buffer we're filling in. |
144 // |index| is the index of the header we want. | 144 // |index| is the index of the header we want. |
145 // Returns the number of bytes written into |buffer|. | 145 // Returns the number of bytes written into |buffer|. |
146 int ConstructSpdyHeader(const char* const extra_headers[], | 146 int ConstructSpdyHeader(const char* const extra_headers[], |
147 int extra_header_count, | 147 int extra_header_count, |
148 char* buffer, | 148 char* buffer, |
149 int buffer_length, | 149 int buffer_length, |
150 int index); | 150 int index); |
151 | 151 |
| 152 // Constructs a standard SPDY GET SYN packet, optionally compressed |
| 153 // for the url |url|. |
| 154 // |extra_headers| are the extra header-value pairs, which typically |
| 155 // will vary the most between calls. |
| 156 // Returns a SpdyFrame. |
| 157 spdy::SpdyFrame* ConstructSpdyGet(const char* const url, |
| 158 bool compressed, |
| 159 int stream_id, |
| 160 RequestPriority request_priority); |
| 161 |
152 // Constructs a standard SPDY GET SYN packet, optionally compressed. | 162 // Constructs a standard SPDY GET SYN packet, optionally compressed. |
153 // |extra_headers| are the extra header-value pairs, which typically | 163 // |extra_headers| are the extra header-value pairs, which typically |
154 // will vary the most between calls. | 164 // will vary the most between calls. |
155 // Returns a SpdyFrame. | 165 // Returns a SpdyFrame. |
156 spdy::SpdyFrame* ConstructSpdyGet(const char* const extra_headers[], | 166 spdy::SpdyFrame* ConstructSpdyGet(const char* const extra_headers[], |
157 int extra_header_count, | 167 int extra_header_count, |
158 bool compressed, | 168 bool compressed, |
159 int stream_id, | 169 int stream_id, |
160 RequestPriority request_priority); | 170 RequestPriority request_priority); |
161 | 171 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 session_deps->http_auth_handler_factory.get(), | 257 session_deps->http_auth_handler_factory.get(), |
248 NULL, | 258 NULL, |
249 NULL); | 259 NULL); |
250 } | 260 } |
251 }; | 261 }; |
252 | 262 |
253 | 263 |
254 } // namespace net | 264 } // namespace net |
255 | 265 |
256 #endif // NET_SPDY_SPDY_TEST_UTIL_H_ | 266 #endif // NET_SPDY_SPDY_TEST_UTIL_H_ |
OLD | NEW |