OLD | NEW |
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 20 matching lines...) Expand all Loading... |
31 } | 31 } |
32 | 32 |
33 // static | 33 // static |
34 void QuicDispatcherPeer::SetPacketWriterFactory( | 34 void QuicDispatcherPeer::SetPacketWriterFactory( |
35 QuicDispatcher* dispatcher, | 35 QuicDispatcher* dispatcher, |
36 QuicDispatcher::PacketWriterFactory* packet_writer_factory) { | 36 QuicDispatcher::PacketWriterFactory* packet_writer_factory) { |
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 QuicConnectionHelperInterface* 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 QuicDispatcher::WriteBlockedList* QuicDispatcherPeer::GetWriteBlockedList( | 47 QuicDispatcher::WriteBlockedList* QuicDispatcherPeer::GetWriteBlockedList( |
48 QuicDispatcher* dispatcher) { | 48 QuicDispatcher* dispatcher) { |
49 return &dispatcher->write_blocked_list_; | 49 return &dispatcher->write_blocked_list_; |
50 } | 50 } |
51 | 51 |
52 } // namespace test | 52 } // namespace test |
53 } // namespace tools | 53 } // namespace tools |
54 } // namespace net | 54 } // namespace net |
OLD | NEW |