| OLD | NEW |
| 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/test_tools/packet_dropping_test_writer.h" | 5 #include "net/tools/quic/test_tools/packet_dropping_test_writer.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "base/rand_util.h" | 9 #include "base/rand_util.h" |
| 10 #include "net/tools/quic/platform/impl/quic_socket_utils.h" |
| 10 #include "net/tools/quic/quic_epoll_connection_helper.h" | 11 #include "net/tools/quic/quic_epoll_connection_helper.h" |
| 11 #include "net/tools/quic/quic_socket_utils.h" | |
| 12 | 12 |
| 13 namespace net { | 13 namespace net { |
| 14 namespace test { | 14 namespace test { |
| 15 | 15 |
| 16 // An alarm that is scheduled if a blocked socket is simulated to indicate | 16 // An alarm that is scheduled if a blocked socket is simulated to indicate |
| 17 // it's writable again. | 17 // it's writable again. |
| 18 class WriteUnblockedAlarm : public QuicAlarm::Delegate { | 18 class WriteUnblockedAlarm : public QuicAlarm::Delegate { |
| 19 public: | 19 public: |
| 20 explicit WriteUnblockedAlarm(PacketDroppingTestWriter* writer) | 20 explicit WriteUnblockedAlarm(PacketDroppingTestWriter* writer) |
| 21 : writer_(writer) {} | 21 : writer_(writer) {} |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 // IPAddress has no move assignment operator. | 237 // IPAddress has no move assignment operator. |
| 238 // | 238 // |
| 239 // PacketDroppingTestWriter::DelayedWrite& | 239 // PacketDroppingTestWriter::DelayedWrite& |
| 240 // PacketDroppingTestWriter::DelayedWrite::operator=( | 240 // PacketDroppingTestWriter::DelayedWrite::operator=( |
| 241 // PacketDroppingTestWriter::DelayedWrite&& other) = default; | 241 // PacketDroppingTestWriter::DelayedWrite&& other) = default; |
| 242 | 242 |
| 243 PacketDroppingTestWriter::DelayedWrite::~DelayedWrite() {} | 243 PacketDroppingTestWriter::DelayedWrite::~DelayedWrite() {} |
| 244 | 244 |
| 245 } // namespace test | 245 } // namespace test |
| 246 } // namespace net | 246 } // namespace net |
| OLD | NEW |