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

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

Issue 972783002: Remove unnecessary virtual CreateQuicConnection method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cleanup
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_dispatcher_peer.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 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/tools/quic/quic_dispatcher.h" 7 #include "net/tools/quic/quic_dispatcher.h"
8 #include "net/tools/quic/quic_packet_writer_wrapper.h" 8 #include "net/tools/quic/quic_packet_writer_wrapper.h"
9 9
10 namespace net { 10 namespace net {
(...skipping 26 matching lines...) Expand all
37 dispatcher->packet_writer_factory_.reset(packet_writer_factory); 37 dispatcher->packet_writer_factory_.reset(packet_writer_factory);
38 } 38 }
39 39
40 // static 40 // static
41 QuicEpollConnectionHelper* QuicDispatcherPeer::GetHelper( 41 QuicEpollConnectionHelper* QuicDispatcherPeer::GetHelper(
42 QuicDispatcher* dispatcher) { 42 QuicDispatcher* dispatcher) {
43 return dispatcher->helper_.get(); 43 return dispatcher->helper_.get();
44 } 44 }
45 45
46 // static 46 // static
47 QuicConnection* QuicDispatcherPeer::CreateQuicConnection(
48 QuicDispatcher* dispatcher,
49 QuicConnectionId connection_id,
50 const IPEndPoint& server,
51 const IPEndPoint& client) {
52 return dispatcher->CreateQuicConnection(connection_id,
53 server,
54 client);
55 }
56
57 // static
58 QuicDispatcher::WriteBlockedList* QuicDispatcherPeer::GetWriteBlockedList( 47 QuicDispatcher::WriteBlockedList* QuicDispatcherPeer::GetWriteBlockedList(
59 QuicDispatcher* dispatcher) { 48 QuicDispatcher* dispatcher) {
60 return &dispatcher->write_blocked_list_; 49 return &dispatcher->write_blocked_list_;
61 } 50 }
62 51
63 } // namespace test 52 } // namespace test
64 } // namespace tools 53 } // namespace tools
65 } // namespace net 54 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/test_tools/quic_dispatcher_peer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698