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_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/cert_verifier.h" | 10 #include "net/base/cert_verifier.h" |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 // |buffer| is the buffer we're filling in. | 152 // |buffer| is the buffer we're filling in. |
153 // Returns the number of bytes written into |buffer|. | 153 // Returns the number of bytes written into |buffer|. |
154 int ConstructSpdyReplyString(const char* const extra_headers[], | 154 int ConstructSpdyReplyString(const char* const extra_headers[], |
155 int extra_header_count, | 155 int extra_header_count, |
156 char* buffer, | 156 char* buffer, |
157 int buffer_length); | 157 int buffer_length); |
158 | 158 |
159 // Construct an expected SPDY SETTINGS frame. | 159 // Construct an expected SPDY SETTINGS frame. |
160 // |settings| are the settings to set. | 160 // |settings| are the settings to set. |
161 // Returns the constructed frame. The caller takes ownership of the frame. | 161 // Returns the constructed frame. The caller takes ownership of the frame. |
162 SpdyFrame* ConstructSpdySettings( | 162 SpdyFrame* ConstructSpdySettings(const SettingsMap& settings); |
163 const SpdySettings& settings); | |
164 | 163 |
165 // Construct an expected SPDY CREDENTIAL frame. | 164 // Construct an expected SPDY CREDENTIAL frame. |
166 // |credential| is the credential to send. | 165 // |credential| is the credential to send. |
167 // Returns the constructed frame. The caller takes ownership of the frame. | 166 // Returns the constructed frame. The caller takes ownership of the frame. |
168 SpdyFrame* ConstructSpdyCredential( | 167 SpdyFrame* ConstructSpdyCredential( |
169 const SpdyCredential& credential); | 168 const SpdyCredential& credential); |
170 | 169 |
171 // Construct a SPDY PING frame. | 170 // Construct a SPDY PING frame. |
172 // Returns the constructed frame. The caller takes ownership of the frame. | 171 // Returns the constructed frame. The caller takes ownership of the frame. |
173 SpdyFrame* ConstructSpdyPing(); | 172 SpdyFrame* ConstructSpdyPing(); |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 | 422 |
424 private: | 423 private: |
425 DISALLOW_COPY_AND_ASSIGN(SpdyTestStateHelper); | 424 DISALLOW_COPY_AND_ASSIGN(SpdyTestStateHelper); |
426 }; | 425 }; |
427 | 426 |
428 } // namespace test_spdy3 | 427 } // namespace test_spdy3 |
429 | 428 |
430 } // namespace net | 429 } // namespace net |
431 | 430 |
432 #endif // NET_SPDY_SPDY_TEST_UTIL_H_ | 431 #endif // NET_SPDY_SPDY_TEST_UTIL_H_ |
OLD | NEW |