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

Side by Side Diff: net/tools/quic/quic_server_test.cc

Issue 2331343003: Deprecate flag FLAGS_quic_sequencer_buffer_retire_block_in_time. (Closed)
Patch Set: 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_stream_sequencer_buffer_test.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 #include "net/tools/quic/quic_server.h" 5 #include "net/tools/quic/quic_server.h"
6 6
7 #include "net/quic/core/crypto/quic_random.h" 7 #include "net/quic/core/crypto/quic_random.h"
8 #include "net/quic/core/quic_utils.h" 8 #include "net/quic/core/quic_utils.h"
9 #include "net/quic/test_tools/crypto_test_utils.h" 9 #include "net/quic/test_tools/crypto_test_utils.h"
10 #include "net/quic/test_tools/mock_quic_dispatcher.h" 10 #include "net/quic/test_tools/mock_quic_dispatcher.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 server_.CreateUDPSocketAndListen(server_address_); 80 server_.CreateUDPSocketAndListen(server_address_);
81 ASSERT_TRUE(QuicServerPeer::SetSmallSocket(&server_)); 81 ASSERT_TRUE(QuicServerPeer::SetSmallSocket(&server_));
82 82
83 if (!server_.overflow_supported()) { 83 if (!server_.overflow_supported()) {
84 LOG(WARNING) << "Overflow not supported. Not testing."; 84 LOG(WARNING) << "Overflow not supported. Not testing.";
85 return; 85 return;
86 } 86 }
87 } 87 }
88 88
89 protected: 89 protected:
90 QuicFlagSaver saver_;
90 int port_; 91 int port_;
91 IPEndPoint server_address_; 92 IPEndPoint server_address_;
92 TestQuicServer server_; 93 TestQuicServer server_;
93 }; 94 };
94 95
95 // Tests that if dispatcher has CHLOs waiting for connection creation, EPOLLIN 96 // Tests that if dispatcher has CHLOs waiting for connection creation, EPOLLIN
96 // event should try to create connections for them. And set epoll mask with 97 // event should try to create connections for them. And set epoll mask with
97 // EPOLLIN if there are still CHLOs remaining at the end of epoll event. 98 // EPOLLIN if there are still CHLOs remaining at the end of epoll event.
98 TEST_F(QuicServerEpollInTest, ProcessBufferedCHLOsOnEpollin) { 99 TEST_F(QuicServerEpollInTest, ProcessBufferedCHLOsOnEpollin) {
99 FLAGS_quic_limit_num_new_sessions_per_epoll_loop = true; 100 FLAGS_quic_limit_num_new_sessions_per_epoll_loop = true;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 arraysize(valid_packet), 192 arraysize(valid_packet),
192 QuicTime::Zero(), false); 193 QuicTime::Zero(), false);
193 194
194 EXPECT_CALL(dispatcher_, ProcessPacket(_, _, _)).Times(1); 195 EXPECT_CALL(dispatcher_, ProcessPacket(_, _, _)).Times(1);
195 DispatchPacket(encrypted_valid_packet); 196 DispatchPacket(encrypted_valid_packet);
196 } 197 }
197 198
198 } // namespace 199 } // namespace
199 } // namespace test 200 } // namespace test
200 } // namespace net 201 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/quic_stream_sequencer_buffer_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698