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

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

Issue 131743009: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use size_t instead of int to fix win_x64 compile error Created 6 years, 11 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 | Annotate | Revision Log
OLDNEW
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/quic_dispatcher_peer.h" 5 #include "net/tools/quic/test_tools/quic_dispatcher_peer.h"
6 6
7 #include "net/quic/quic_default_packet_writer.h" 7 #include "net/quic/quic_default_packet_writer.h"
8 #include "net/tools/quic/quic_dispatcher.h" 8 #include "net/tools/quic/quic_dispatcher.h"
9 9 #include "net/tools/quic/quic_packet_writer_wrapper.h"
10 using net::test::QuicTestWriter;
11 10
12 namespace net { 11 namespace net {
13 namespace tools { 12 namespace tools {
14 namespace test { 13 namespace test {
15 14
16 // static 15 // static
17 void QuicDispatcherPeer::SetTimeWaitListManager( 16 void QuicDispatcherPeer::SetTimeWaitListManager(
18 QuicDispatcher* dispatcher, 17 QuicDispatcher* dispatcher,
19 QuicTimeWaitListManager* time_wait_list_manager) { 18 QuicTimeWaitListManager* time_wait_list_manager) {
20 dispatcher->time_wait_list_manager_.reset(time_wait_list_manager); 19 dispatcher->time_wait_list_manager_.reset(time_wait_list_manager);
21 } 20 }
22 21
23 // static 22 // static
24 void QuicDispatcherPeer::UseWriter(QuicDispatcher* dispatcher, 23 void QuicDispatcherPeer::UseWriter(QuicDispatcher* dispatcher,
25 QuicTestWriter* writer) { 24 QuicPacketWriterWrapper* writer) {
26 writer->set_writer(dispatcher->writer_.release()); 25 writer->set_writer(dispatcher->writer_->release_writer());
27 dispatcher->writer_.reset(writer); 26 dispatcher->writer_->set_writer(writer);
28 } 27 }
29 28
30 // static 29 // static
31 QuicPacketWriter* QuicDispatcherPeer::GetWriter(QuicDispatcher* dispatcher) { 30 QuicPacketWriterWrapper* QuicDispatcherPeer::GetWriter(
31 QuicDispatcher* dispatcher) {
32 return dispatcher->writer_.get(); 32 return dispatcher->writer_.get();
33 } 33 }
34 34
35 // static 35 // static
36 QuicEpollConnectionHelper* QuicDispatcherPeer::GetHelper( 36 QuicEpollConnectionHelper* QuicDispatcherPeer::GetHelper(
37 QuicDispatcher* dispatcher) { 37 QuicDispatcher* dispatcher) {
38 return dispatcher->helper_.get(); 38 return dispatcher->helper_.get();
39 } 39 }
40 40
41 } // namespace test 41 } // namespace test
42 } // namespace tools 42 } // namespace tools
43 } // namespace net 43 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/test_tools/quic_dispatcher_peer.h ('k') | net/tools/quic/test_tools/quic_test_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698