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 // Common utilities for Quic tests | 5 // Common utilities for Quic tests |
6 | 6 |
7 #ifndef NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ | 7 #ifndef NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ |
8 #define NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ | 8 #define NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
765 // connection. This object will be owned by the | 765 // connection. This object will be owned by the |
766 // server_session. | 766 // server_session. |
767 // server_session: Pointer reference for the newly created server | 767 // server_session: Pointer reference for the newly created server |
768 // session. The new object will be owned by the caller. | 768 // session. The new object will be owned by the caller. |
769 void CreateServerSessionForTest(QuicServerId server_id, | 769 void CreateServerSessionForTest(QuicServerId server_id, |
770 QuicTime::Delta connection_start_time, | 770 QuicTime::Delta connection_start_time, |
771 QuicCryptoServerConfig* crypto_server_config, | 771 QuicCryptoServerConfig* crypto_server_config, |
772 PacketSavingConnection** server_connection, | 772 PacketSavingConnection** server_connection, |
773 TestQuicSpdyServerSession** server_session); | 773 TestQuicSpdyServerSession** server_session); |
774 | 774 |
| 775 // Helper to generate client side stream ids, generalizes |
| 776 // kClientDataStreamId1 etc. above. |
| 777 QuicStreamId QuicClientDataStreamId(int i); |
| 778 |
775 } // namespace test | 779 } // namespace test |
776 } // namespace net | 780 } // namespace net |
777 | 781 |
778 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ | 782 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ |
OLD | NEW |