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

Side by Side Diff: net/tools/quic/test_tools/quic_test_utils.cc

Issue 990533002: Land Recent QUIC Changes until 03/06/2015. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/test_tools/quic_test_utils.h ('k') | no next file » | 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/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
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
OLDNEW
« no previous file with comments | « net/tools/quic/test_tools/quic_test_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698