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 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
461 int associated_stream_id); | 461 int associated_stream_id); |
462 | 462 |
463 SpdyFrame* ConstructSpdyPushHeaders(int stream_id, | 463 SpdyFrame* ConstructSpdyPushHeaders(int stream_id, |
464 const char* const extra_headers[], | 464 const char* const extra_headers[], |
465 int extra_header_count); | 465 int extra_header_count); |
466 | 466 |
467 SpdyFrame* ConstructSpdyHeaderFrame(int stream_id, | 467 SpdyFrame* ConstructSpdyHeaderFrame(int stream_id, |
468 const char* const headers[], | 468 const char* const headers[], |
469 int header_count); | 469 int header_count); |
470 | 470 |
| 471 // Constructs a SPDY header frame with END_STREAM flag set to |fin|. |
| 472 SpdyFrame* ConstructSpdyHeaderFrame(int stream_id, |
| 473 const char* const headers[], |
| 474 int header_count, |
| 475 bool fin); |
| 476 |
471 // Construct a SPDY syn (HEADERS or SYN_STREAM, depending on protocol | 477 // Construct a SPDY syn (HEADERS or SYN_STREAM, depending on protocol |
472 // version) carrying exactly the given headers and priority. | 478 // version) carrying exactly the given headers and priority. |
473 SpdyFrame* ConstructSpdySyn(int stream_id, | 479 SpdyFrame* ConstructSpdySyn(int stream_id, |
474 const SpdyHeaderBlock& headers, | 480 const SpdyHeaderBlock& headers, |
475 RequestPriority priority, | 481 RequestPriority priority, |
476 bool compressed, | 482 bool compressed, |
477 bool fin) const; | 483 bool fin) const; |
478 | 484 |
479 // Construct a SPDY reply (HEADERS or SYN_REPLY, depending on protocol | 485 // Construct a SPDY reply (HEADERS or SYN_REPLY, depending on protocol |
480 // version) carrying exactly the given headers, and the default priority | 486 // version) carrying exactly the given headers, and the default priority |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
585 int64* content_length) const; | 591 int64* content_length) const; |
586 | 592 |
587 const NextProto protocol_; | 593 const NextProto protocol_; |
588 const SpdyMajorVersion spdy_version_; | 594 const SpdyMajorVersion spdy_version_; |
589 GURL default_url_; | 595 GURL default_url_; |
590 }; | 596 }; |
591 | 597 |
592 } // namespace net | 598 } // namespace net |
593 | 599 |
594 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ | 600 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ |
OLD | NEW |