| 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 24 matching lines...) Expand all Loading... |
| 35 return dispatcher->compressed_certs_cache(); | 35 return dispatcher->compressed_certs_cache(); |
| 36 } | 36 } |
| 37 | 37 |
| 38 // static | 38 // static |
| 39 QuicConnectionHelperInterface* QuicDispatcherPeer::GetHelper( | 39 QuicConnectionHelperInterface* QuicDispatcherPeer::GetHelper( |
| 40 QuicDispatcher* dispatcher) { | 40 QuicDispatcher* dispatcher) { |
| 41 return dispatcher->helper_.get(); | 41 return dispatcher->helper_.get(); |
| 42 } | 42 } |
| 43 | 43 |
| 44 // static | 44 // static |
| 45 QuicAlarmFactory* QuicDispatcherPeer::GetAlarmFactory( |
| 46 QuicDispatcher* dispatcher) { |
| 47 return dispatcher->alarm_factory_.get(); |
| 48 } |
| 49 |
| 50 // static |
| 45 QuicDispatcher::WriteBlockedList* QuicDispatcherPeer::GetWriteBlockedList( | 51 QuicDispatcher::WriteBlockedList* QuicDispatcherPeer::GetWriteBlockedList( |
| 46 QuicDispatcher* dispatcher) { | 52 QuicDispatcher* dispatcher) { |
| 47 return &dispatcher->write_blocked_list_; | 53 return &dispatcher->write_blocked_list_; |
| 48 } | 54 } |
| 49 | 55 |
| 50 // static | 56 // static |
| 51 QuicErrorCode QuicDispatcherPeer::GetAndClearLastError( | 57 QuicErrorCode QuicDispatcherPeer::GetAndClearLastError( |
| 52 QuicDispatcher* dispatcher) { | 58 QuicDispatcher* dispatcher) { |
| 53 QuicErrorCode ret = dispatcher->last_error_; | 59 QuicErrorCode ret = dispatcher->last_error_; |
| 54 dispatcher->last_error_ = QUIC_NO_ERROR; | 60 dispatcher->last_error_ = QUIC_NO_ERROR; |
| 55 return ret; | 61 return ret; |
| 56 } | 62 } |
| 57 | 63 |
| 58 // static | 64 // static |
| 59 const QuicDispatcher::SessionMap& QuicDispatcherPeer::session_map( | 65 const QuicDispatcher::SessionMap& QuicDispatcherPeer::session_map( |
| 60 QuicDispatcher* dispatcher) { | 66 QuicDispatcher* dispatcher) { |
| 61 return dispatcher->session_map(); | 67 return dispatcher->session_map(); |
| 62 } | 68 } |
| 63 | 69 |
| 64 } // namespace test | 70 } // namespace test |
| 65 } // namespace net | 71 } // namespace net |
| OLD | NEW |