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 #ifndef NET_TOOLS_QUIC_TEST_TOOLS_PACKET_DROPPING_TEST_WRITER_H_ | 5 #ifndef NET_TOOLS_QUIC_TEST_TOOLS_PACKET_DROPPING_TEST_WRITER_H_ |
6 #define NET_TOOLS_QUIC_TEST_TOOLS_PACKET_DROPPING_TEST_WRITER_H_ | 6 #define NET_TOOLS_QUIC_TEST_TOOLS_PACKET_DROPPING_TEST_WRITER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <list> | 11 #include <list> |
12 #include <memory> | 12 #include <memory> |
13 #include <string> | 13 #include <string> |
14 | 14 |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "base/macros.h" | 16 #include "base/macros.h" |
17 #include "base/synchronization/lock.h" | 17 #include "base/synchronization/lock.h" |
18 #include "net/base/ip_address.h" | 18 #include "net/base/ip_address.h" |
19 #include "net/quic/quic_alarm.h" | 19 #include "net/quic/core/quic_alarm.h" |
20 #include "net/quic/test_tools/quic_test_utils.h" | 20 #include "net/quic/test_tools/quic_test_utils.h" |
21 #include "net/tools/quic/quic_epoll_clock.h" | 21 #include "net/tools/quic/quic_epoll_clock.h" |
22 #include "net/tools/quic/quic_packet_writer_wrapper.h" | 22 #include "net/tools/quic/quic_packet_writer_wrapper.h" |
23 #include "net/tools/quic/test_tools/quic_test_client.h" | 23 #include "net/tools/quic/test_tools/quic_test_client.h" |
24 | 24 |
25 namespace net { | 25 namespace net { |
26 namespace test { | 26 namespace test { |
27 | 27 |
28 // Simulates a connection that drops packets a configured percentage of the time | 28 // Simulates a connection that drops packets a configured percentage of the time |
29 // and has a blocked socket a configured percentage of the time. Also provides | 29 // and has a blocked socket a configured percentage of the time. Also provides |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 QuicBandwidth fake_bandwidth_; | 172 QuicBandwidth fake_bandwidth_; |
173 QuicByteCount buffer_size_; | 173 QuicByteCount buffer_size_; |
174 | 174 |
175 DISALLOW_COPY_AND_ASSIGN(PacketDroppingTestWriter); | 175 DISALLOW_COPY_AND_ASSIGN(PacketDroppingTestWriter); |
176 }; | 176 }; |
177 | 177 |
178 } // namespace test | 178 } // namespace test |
179 } // namespace net | 179 } // namespace net |
180 | 180 |
181 #endif // NET_TOOLS_QUIC_TEST_TOOLS_PACKET_DROPPING_TEST_WRITER_H_ | 181 #endif // NET_TOOLS_QUIC_TEST_TOOLS_PACKET_DROPPING_TEST_WRITER_H_ |
OLD | NEW |