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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 QuicDispatcher* dispatcher) { | 66 QuicDispatcher* dispatcher) { |
67 return &(dispatcher->buffered_packets_); | 67 return &(dispatcher->buffered_packets_); |
68 } | 68 } |
69 | 69 |
70 // static | 70 // static |
71 const QuicDispatcher::SessionMap& QuicDispatcherPeer::session_map( | 71 const QuicDispatcher::SessionMap& QuicDispatcherPeer::session_map( |
72 QuicDispatcher* dispatcher) { | 72 QuicDispatcher* dispatcher) { |
73 return dispatcher->session_map(); | 73 return dispatcher->session_map(); |
74 } | 74 } |
75 | 75 |
| 76 // static |
| 77 void QuicDispatcherPeer::set_new_sessions_allowed_per_event_loop( |
| 78 QuicDispatcher* dispatcher, |
| 79 size_t num_session_allowed) { |
| 80 return dispatcher->set_new_sessions_allowed_per_event_loop( |
| 81 num_session_allowed); |
| 82 } |
| 83 |
76 } // namespace test | 84 } // namespace test |
77 } // namespace net | 85 } // namespace net |
OLD | NEW |