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 "net/tools/quic/test_tools/quic_test_utils.h" | 5 #include "net/tools/quic/test_tools/quic_test_utils.h" |
6 | 6 |
7 #include "net/quic/quic_connection.h" | 7 #include "net/quic/quic_connection.h" |
8 #include "net/quic/test_tools/quic_connection_peer.h" | 8 #include "net/quic/test_tools/quic_connection_peer.h" |
9 #include "net/quic/test_tools/quic_test_utils.h" | 9 #include "net/quic/test_tools/quic_test_utils.h" |
| 10 #include "net/tools/epoll_server/epoll_server.h" |
10 #include "net/tools/quic/quic_epoll_connection_helper.h" | 11 #include "net/tools/quic/quic_epoll_connection_helper.h" |
11 | 12 |
12 using base::StringPiece; | 13 using base::StringPiece; |
13 using net::test::MakeAckFrame; | 14 using net::test::MakeAckFrame; |
14 using net::test::MockHelper; | 15 using net::test::MockHelper; |
15 using net::test::QuicConnectionPeer; | 16 using net::test::QuicConnectionPeer; |
16 | 17 |
17 namespace net { | 18 namespace net { |
18 namespace tools { | 19 namespace tools { |
19 namespace test { | 20 namespace test { |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 // class may be used in a setting where connection()->OnPacketSent() is called | 179 // class may be used in a setting where connection()->OnPacketSent() is called |
179 // in a different way, so TestWriterFactory::OnPacketSent might never be | 180 // in a different way, so TestWriterFactory::OnPacketSent might never be |
180 // called. | 181 // called. |
181 factory_->current_writer_ = this; | 182 factory_->current_writer_ = this; |
182 return QuicPerConnectionPacketWriter::WritePacket(buffer, | 183 return QuicPerConnectionPacketWriter::WritePacket(buffer, |
183 buf_len, | 184 buf_len, |
184 self_address, | 185 self_address, |
185 peer_address); | 186 peer_address); |
186 } | 187 } |
187 | 188 |
| 189 MockTimeWaitListManager::MockTimeWaitListManager( |
| 190 QuicPacketWriter* writer, |
| 191 QuicServerSessionVisitor* visitor, |
| 192 EpollServer* eps) |
| 193 : QuicTimeWaitListManager(writer, visitor, eps, QuicSupportedVersions()) { |
| 194 } |
| 195 |
| 196 MockTimeWaitListManager::~MockTimeWaitListManager() { |
| 197 } |
| 198 |
188 } // namespace test | 199 } // namespace test |
189 } // namespace tools | 200 } // namespace tools |
190 } // namespace net | 201 } // namespace net |
OLD | NEW |