| 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 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 int associated_stream_id); | 440 int associated_stream_id); |
| 441 | 441 |
| 442 SpdyFrame* ConstructSpdyPushHeaders(int stream_id, | 442 SpdyFrame* ConstructSpdyPushHeaders(int stream_id, |
| 443 const char* const extra_headers[], | 443 const char* const extra_headers[], |
| 444 int extra_header_count); | 444 int extra_header_count); |
| 445 | 445 |
| 446 SpdyFrame* ConstructSpdyHeaderFrame(int stream_id, | 446 SpdyFrame* ConstructSpdyHeaderFrame(int stream_id, |
| 447 const char* const headers[], | 447 const char* const headers[], |
| 448 int header_count); | 448 int header_count); |
| 449 | 449 |
| 450 // Constructs a SPDY header frame with END_STREAM flag set to |fin|. |
| 451 SpdyFrame* ConstructSpdyHeaderFrame(int stream_id, |
| 452 const char* const headers[], |
| 453 int header_count, |
| 454 bool fin); |
| 455 |
| 450 // Construct a SPDY syn (HEADERS or SYN_STREAM, depending on protocol | 456 // Construct a SPDY syn (HEADERS or SYN_STREAM, depending on protocol |
| 451 // version) carrying exactly the given headers and priority. | 457 // version) carrying exactly the given headers and priority. |
| 452 SpdyFrame* ConstructSpdySyn(int stream_id, | 458 SpdyFrame* ConstructSpdySyn(int stream_id, |
| 453 const SpdyHeaderBlock& headers, | 459 const SpdyHeaderBlock& headers, |
| 454 RequestPriority priority, | 460 RequestPriority priority, |
| 455 bool compressed, | 461 bool compressed, |
| 456 bool fin); | 462 bool fin); |
| 457 | 463 |
| 458 // Construct a SPDY reply (HEADERS or SYN_REPLY, depending on protocol | 464 // Construct a SPDY reply (HEADERS or SYN_REPLY, depending on protocol |
| 459 // version) carrying exactly the given headers, and the default priority | 465 // version) carrying exactly the given headers, and the default priority |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 571 GURL default_url_; | 577 GURL default_url_; |
| 572 bool dependency_priorities_; | 578 bool dependency_priorities_; |
| 573 | 579 |
| 574 // Track a FIFO list of the stream_id of all created requests by priority. | 580 // Track a FIFO list of the stream_id of all created requests by priority. |
| 575 std::map<int, std::vector<int>> priority_to_stream_id_list_; | 581 std::map<int, std::vector<int>> priority_to_stream_id_list_; |
| 576 }; | 582 }; |
| 577 | 583 |
| 578 } // namespace net | 584 } // namespace net |
| 579 | 585 |
| 580 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ | 586 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ |
| OLD | NEW |