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

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

Issue 2311573002: Add QuicFlagSaver to files in net/tools/quic/ (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/tools/quic/end_to_end_test.cc ('k') | net/tools/quic/quic_simple_server_session_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 #include "net/tools/quic/quic_dispatcher.h" 5 #include "net/tools/quic/quic_dispatcher.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <ostream> 8 #include <ostream>
9 #include <string> 9 #include <string>
10 10
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 QuicDispatcherPeer::SetTimeWaitListManager(dispatcher_.get(), 297 QuicDispatcherPeer::SetTimeWaitListManager(dispatcher_.get(),
298 time_wait_list_manager_); 298 time_wait_list_manager_);
299 } 299 }
300 300
301 string SerializeCHLO() { 301 string SerializeCHLO() {
302 CryptoHandshakeMessage client_hello; 302 CryptoHandshakeMessage client_hello;
303 client_hello.set_tag(kCHLO); 303 client_hello.set_tag(kCHLO);
304 return client_hello.GetSerialized().AsStringPiece().as_string(); 304 return client_hello.GetSerialized().AsStringPiece().as_string();
305 } 305 }
306 306
307 QuicFlagSaver flags_; // Save/restore all QUIC flag values.
307 EpollServer eps_; 308 EpollServer eps_;
308 QuicEpollConnectionHelper helper_; 309 QuicEpollConnectionHelper helper_;
309 MockQuicConnectionHelper mock_helper_; 310 MockQuicConnectionHelper mock_helper_;
310 QuicEpollAlarmFactory alarm_factory_; 311 QuicEpollAlarmFactory alarm_factory_;
311 MockAlarmFactory mock_alarm_factory_; 312 MockAlarmFactory mock_alarm_factory_;
312 QuicConfig config_; 313 QuicConfig config_;
313 QuicVersionManager version_manager_; 314 QuicVersionManager version_manager_;
314 QuicCryptoServerConfig crypto_config_; 315 QuicCryptoServerConfig crypto_config_;
315 IPEndPoint server_address_; 316 IPEndPoint server_address_;
316 std::unique_ptr<TestDispatcher> dispatcher_; 317 std::unique_ptr<TestDispatcher> dispatcher_;
(...skipping 959 matching lines...) Expand 10 before | Expand all | Expand 10 after
1276 // New arrived CHLO will be dropped because this connection is in time wait 1277 // New arrived CHLO will be dropped because this connection is in time wait
1277 // list. 1278 // list.
1278 ASSERT_TRUE(time_wait_list_manager_->IsConnectionIdInTimeWait(conn_id)); 1279 ASSERT_TRUE(time_wait_list_manager_->IsConnectionIdInTimeWait(conn_id));
1279 EXPECT_CALL(*time_wait_list_manager_, ProcessPacket(_, _, conn_id, _, _)); 1280 EXPECT_CALL(*time_wait_list_manager_, ProcessPacket(_, _, conn_id, _, _));
1280 ProcessPacket(client_address, conn_id, true, false, SerializeFullCHLO()); 1281 ProcessPacket(client_address, conn_id, true, false, SerializeFullCHLO());
1281 } 1282 }
1282 1283
1283 } // namespace 1284 } // namespace
1284 } // namespace test 1285 } // namespace test
1285 } // namespace net 1286 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/end_to_end_test.cc ('k') | net/tools/quic/quic_simple_server_session_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698