| 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 <stddef.h> | 10 #include <stddef.h> |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 // logging is skipped due to exponential backoff. | 43 // logging is skipped due to exponential backoff. |
| 44 // | 44 // |
| 45 // For external QUIC, EXPECT_QUIC_BUG should be #defined to EXPECT_DFATAL. | 45 // For external QUIC, EXPECT_QUIC_BUG should be #defined to EXPECT_DFATAL. |
| 46 #define EXPECT_QUIC_BUG EXPECT_DFATAL | 46 #define EXPECT_QUIC_BUG EXPECT_DFATAL |
| 47 | 47 |
| 48 namespace net { | 48 namespace net { |
| 49 | 49 |
| 50 namespace test { | 50 namespace test { |
| 51 | 51 |
| 52 static const QuicConnectionId kTestConnectionId = 42; | 52 static const QuicConnectionId kTestConnectionId = 42; |
| 53 static const uint16_t kTestPort = 123; | 53 static const uint16_t kTestPort = 12345; |
| 54 static const uint32_t kInitialStreamFlowControlWindowForTest = | 54 static const uint32_t kInitialStreamFlowControlWindowForTest = |
| 55 1024 * 1024; // 1 MB | 55 1024 * 1024; // 1 MB |
| 56 static const uint32_t kInitialSessionFlowControlWindowForTest = | 56 static const uint32_t kInitialSessionFlowControlWindowForTest = |
| 57 1536 * 1024; // 1.5 MB | 57 1536 * 1024; // 1.5 MB |
| 58 // Data stream IDs start at 5: the crypto stream is 1, headers stream is 3. | 58 // Data stream IDs start at 5: the crypto stream is 1, headers stream is 3. |
| 59 static const QuicStreamId kClientDataStreamId1 = 5; | 59 static const QuicStreamId kClientDataStreamId1 = 5; |
| 60 static const QuicStreamId kClientDataStreamId2 = 7; | 60 static const QuicStreamId kClientDataStreamId2 = 7; |
| 61 static const QuicStreamId kClientDataStreamId3 = 9; | 61 static const QuicStreamId kClientDataStreamId3 = 9; |
| 62 static const QuicStreamId kServerDataStreamId1 = 4; | 62 static const QuicStreamId kServerDataStreamId1 = 4; |
| 63 | 63 |
| (...skipping 960 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1024 TestQuicSpdyServerSession** server_session); | 1024 TestQuicSpdyServerSession** server_session); |
| 1025 | 1025 |
| 1026 // Helper to generate client side stream ids, generalizes | 1026 // Helper to generate client side stream ids, generalizes |
| 1027 // kClientDataStreamId1 etc. above. | 1027 // kClientDataStreamId1 etc. above. |
| 1028 QuicStreamId QuicClientDataStreamId(int i); | 1028 QuicStreamId QuicClientDataStreamId(int i); |
| 1029 | 1029 |
| 1030 } // namespace test | 1030 } // namespace test |
| 1031 } // namespace net | 1031 } // namespace net |
| 1032 | 1032 |
| 1033 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ | 1033 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ |
| OLD | NEW |