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

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

Issue 359653003: Simplify the QuicDispatcher::OnCanWrite logic (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed wtc's comments in Patch Set 1 Created 6 years, 5 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/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 29 matching lines...) Expand all
40 QuicConnection* QuicDispatcherPeer::CreateQuicConnection( 40 QuicConnection* QuicDispatcherPeer::CreateQuicConnection(
41 QuicDispatcher* dispatcher, 41 QuicDispatcher* dispatcher,
42 QuicConnectionId connection_id, 42 QuicConnectionId connection_id,
43 const IPEndPoint& server, 43 const IPEndPoint& server,
44 const IPEndPoint& client) { 44 const IPEndPoint& client) {
45 return dispatcher->CreateQuicConnection(connection_id, 45 return dispatcher->CreateQuicConnection(connection_id,
46 server, 46 server,
47 client); 47 client);
48 } 48 }
49 49
50 // static
51 QuicDispatcher::WriteBlockedList* QuicDispatcherPeer::GetWriteBlockedList(
52 QuicDispatcher* dispatcher) {
53 return &dispatcher->write_blocked_list_;
54 }
55
50 } // namespace test 56 } // namespace test
51 } // namespace tools 57 } // namespace tools
52 } // namespace net 58 } // 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_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698