Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(346)

Side by Side Diff: net/quic/test_tools/quic_test_utils.h

Issue 2310543002: Limits only 16 new QUIC connections can be opened per epoll event. (Closed)
Patch Set: Limits only 16 new QUIC connections can be opened per epoll event. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/core/quic_flags_list.h ('k') | net/tools/quic/end_to_end_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « net/quic/core/quic_flags_list.h ('k') | net/tools/quic/end_to_end_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698