| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/quic/test_tools/quic_session_peer.h" | 5 #include "net/quic/test_tools/quic_session_peer.h" |
| 6 | 6 |
| 7 #include "base/stl_util.h" | 7 #include "base/stl_util.h" |
| 8 #include "net/quic/quic_session.h" | 8 #include "net/quic/quic_session.h" |
| 9 #include "net/quic/reliable_quic_stream.h" | 9 #include "net/quic/reliable_quic_stream.h" |
| 10 | 10 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 return session->GetOrCreateDynamicStream(stream_id); | 54 return session->GetOrCreateDynamicStream(stream_id); |
| 55 } | 55 } |
| 56 | 56 |
| 57 // static | 57 // static |
| 58 map<QuicStreamId, QuicStreamOffset>& | 58 map<QuicStreamId, QuicStreamOffset>& |
| 59 QuicSessionPeer::GetLocallyClosedStreamsHighestOffset(QuicSession* session) { | 59 QuicSessionPeer::GetLocallyClosedStreamsHighestOffset(QuicSession* session) { |
| 60 return session->locally_closed_streams_highest_offset_; | 60 return session->locally_closed_streams_highest_offset_; |
| 61 } | 61 } |
| 62 | 62 |
| 63 // static | 63 // static |
| 64 QuicSession::StreamMap& QuicSessionPeer::static_streams(QuicSession* session) { | 64 QuicSession::StaticStreamMap& QuicSessionPeer::static_streams( |
| 65 QuicSession* session) { |
| 65 return session->static_streams(); | 66 return session->static_streams(); |
| 66 } | 67 } |
| 67 | 68 |
| 68 // static | 69 // static |
| 69 std::unordered_set<QuicStreamId>* QuicSessionPeer::GetDrainingStreams( | 70 std::unordered_set<QuicStreamId>* QuicSessionPeer::GetDrainingStreams( |
| 70 QuicSession* session) { | 71 QuicSession* session) { |
| 71 return &session->draining_streams_; | 72 return &session->draining_streams_; |
| 72 } | 73 } |
| 73 | 74 |
| 74 // static | 75 // static |
| (...skipping 27 matching lines...) Expand all Loading... |
| 102 // locally-created stream. | 103 // locally-created stream. |
| 103 return id >= session->next_outgoing_stream_id_; | 104 return id >= session->next_outgoing_stream_id_; |
| 104 } else { | 105 } else { |
| 105 // peer-created stream. | 106 // peer-created stream. |
| 106 return id > session->largest_peer_created_stream_id_; | 107 return id > session->largest_peer_created_stream_id_; |
| 107 } | 108 } |
| 108 } | 109 } |
| 109 | 110 |
| 110 } // namespace test | 111 } // namespace test |
| 111 } // namespace net | 112 } // namespace net |
| OLD | NEW |