| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_COMMON_H_ | 5 #ifndef NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ |
| 6 #define NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ | 6 #define NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 SpdyStreamId associated_stream_id) const; | 359 SpdyStreamId associated_stream_id) const; |
| 360 | 360 |
| 361 // Construct an expected SPDY reply string from the given headers. | 361 // Construct an expected SPDY reply string from the given headers. |
| 362 std::string ConstructSpdyReplyString(const SpdyHeaderBlock& headers) const; | 362 std::string ConstructSpdyReplyString(const SpdyHeaderBlock& headers) const; |
| 363 | 363 |
| 364 // Construct an expected SPDY SETTINGS frame. | 364 // Construct an expected SPDY SETTINGS frame. |
| 365 // |settings| are the settings to set. | 365 // |settings| are the settings to set. |
| 366 // Returns the constructed frame. The caller takes ownership of the frame. | 366 // Returns the constructed frame. The caller takes ownership of the frame. |
| 367 SpdyFrame* ConstructSpdySettings(const SettingsMap& settings) const; | 367 SpdyFrame* ConstructSpdySettings(const SettingsMap& settings) const; |
| 368 | 368 |
| 369 // Constructs an expected SPDY SETTINGS acknowledgement frame, if the protocol |
| 370 // version is SPDY4 or higher, or an empty placeholder frame otherwise. |
| 371 SpdyFrame* ConstructSpdySettingsAck() const; |
| 372 |
| 369 // Construct a SPDY PING frame. | 373 // Construct a SPDY PING frame. |
| 370 // Returns the constructed frame. The caller takes ownership of the frame. | 374 // Returns the constructed frame. The caller takes ownership of the frame. |
| 371 SpdyFrame* ConstructSpdyPing(uint32 ping_id, bool is_ack) const; | 375 SpdyFrame* ConstructSpdyPing(uint32 ping_id, bool is_ack) const; |
| 372 | 376 |
| 373 // Construct a SPDY GOAWAY frame with last_good_stream_id = 0. | 377 // Construct a SPDY GOAWAY frame with last_good_stream_id = 0. |
| 374 // Returns the constructed frame. The caller takes ownership of the frame. | 378 // Returns the constructed frame. The caller takes ownership of the frame. |
| 375 SpdyFrame* ConstructSpdyGoAway() const; | 379 SpdyFrame* ConstructSpdyGoAway() const; |
| 376 | 380 |
| 377 // Construct a SPDY GOAWAY frame with the specified last_good_stream_id. | 381 // Construct a SPDY GOAWAY frame with the specified last_good_stream_id. |
| 378 // Returns the constructed frame. The caller takes ownership of the frame. | 382 // Returns the constructed frame. The caller takes ownership of the frame. |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 base::StringPiece url, | 539 base::StringPiece url, |
| 536 int64* content_length) const; | 540 int64* content_length) const; |
| 537 | 541 |
| 538 const NextProto protocol_; | 542 const NextProto protocol_; |
| 539 const SpdyMajorVersion spdy_version_; | 543 const SpdyMajorVersion spdy_version_; |
| 540 }; | 544 }; |
| 541 | 545 |
| 542 } // namespace net | 546 } // namespace net |
| 543 | 547 |
| 544 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ | 548 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ |
| OLD | NEW |