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