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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 | 55 |
56 // static | 56 // static |
57 QuicErrorCode QuicDispatcherPeer::GetAndClearLastError( | 57 QuicErrorCode QuicDispatcherPeer::GetAndClearLastError( |
58 QuicDispatcher* dispatcher) { | 58 QuicDispatcher* dispatcher) { |
59 QuicErrorCode ret = dispatcher->last_error_; | 59 QuicErrorCode ret = dispatcher->last_error_; |
60 dispatcher->last_error_ = QUIC_NO_ERROR; | 60 dispatcher->last_error_ = QUIC_NO_ERROR; |
61 return ret; | 61 return ret; |
62 } | 62 } |
63 | 63 |
64 // static | 64 // static |
| 65 QuicBufferedPacketStore* QuicDispatcherPeer::GetBufferedPackets( |
| 66 QuicDispatcher* dispatcher) { |
| 67 return &(dispatcher->buffered_packets_); |
| 68 } |
| 69 |
| 70 // static |
65 const QuicDispatcher::SessionMap& QuicDispatcherPeer::session_map( | 71 const QuicDispatcher::SessionMap& QuicDispatcherPeer::session_map( |
66 QuicDispatcher* dispatcher) { | 72 QuicDispatcher* dispatcher) { |
67 return dispatcher->session_map(); | 73 return dispatcher->session_map(); |
68 } | 74 } |
69 | 75 |
70 } // namespace test | 76 } // namespace test |
71 } // namespace net | 77 } // namespace net |
OLD | NEW |