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 #include <stddef.h> | 5 #include <stddef.h> |
6 #include <string> | 6 #include <string> |
7 #include <sys/epoll.h> | 7 #include <sys/epoll.h> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 client_->client()->session()->connection())), | 312 client_->client()->session()->connection())), |
313 new ClientDelegate(client_->client())); | 313 new ClientDelegate(client_->client())); |
314 return client_->client()->connected(); | 314 return client_->client()->connected(); |
315 } | 315 } |
316 | 316 |
317 void SetUp() override { | 317 void SetUp() override { |
318 // The ownership of these gets transferred to the QuicPacketWriterWrapper | 318 // The ownership of these gets transferred to the QuicPacketWriterWrapper |
319 // and TestWriterFactory when Initialize() is executed. | 319 // and TestWriterFactory when Initialize() is executed. |
320 client_writer_ = new PacketDroppingTestWriter(); | 320 client_writer_ = new PacketDroppingTestWriter(); |
321 server_writer_ = new PacketDroppingTestWriter(); | 321 server_writer_ = new PacketDroppingTestWriter(); |
| 322 // TODO(ianswett): Remove this once it's fully rolled out. |
| 323 FLAGS_quic_enable_pacing = false; |
322 } | 324 } |
323 | 325 |
324 void TearDown() override { StopServer(); } | 326 void TearDown() override { StopServer(); } |
325 | 327 |
326 void StartServer() { | 328 void StartServer() { |
327 server_thread_.reset( | 329 server_thread_.reset( |
328 new ServerThread( | 330 new ServerThread( |
329 new QuicServer(server_config_, server_supported_versions_), | 331 new QuicServer(server_config_, server_supported_versions_), |
330 server_address_, | 332 server_address_, |
331 strike_register_no_startup_period_)); | 333 strike_register_no_startup_period_)); |
(...skipping 1112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1444 // Waits for up to 50 ms. | 1446 // Waits for up to 50 ms. |
1445 client_->client()->WaitForEvents(); | 1447 client_->client()->WaitForEvents(); |
1446 } | 1448 } |
1447 server_thread_->Resume(); | 1449 server_thread_->Resume(); |
1448 } | 1450 } |
1449 | 1451 |
1450 } // namespace | 1452 } // namespace |
1451 } // namespace test | 1453 } // namespace test |
1452 } // namespace tools | 1454 } // namespace tools |
1453 } // namespace net | 1455 } // namespace net |
OLD | NEW |