| 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 <map> |
| 8 |
| 7 #include "net/quic/quic_session.h" | 9 #include "net/quic/quic_session.h" |
| 8 #include "net/quic/reliable_quic_stream.h" | 10 #include "net/quic/reliable_quic_stream.h" |
| 9 | 11 |
| 12 using std::map; |
| 13 |
| 10 namespace net { | 14 namespace net { |
| 11 namespace test { | 15 namespace test { |
| 12 | 16 |
| 13 // static | 17 // static |
| 14 void QuicSessionPeer::SetNextStreamId(QuicSession* session, QuicStreamId id) { | 18 void QuicSessionPeer::SetNextStreamId(QuicSession* session, QuicStreamId id) { |
| 15 session->next_stream_id_ = id; | 19 session->next_stream_id_ = id; |
| 16 } | 20 } |
| 17 | 21 |
| 18 // static | 22 // static |
| 19 void QuicSessionPeer::SetMaxOpenStreams(QuicSession* session, | 23 void QuicSessionPeer::SetMaxOpenStreams(QuicSession* session, |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 } | 55 } |
| 52 | 56 |
| 53 // static | 57 // static |
| 54 map<QuicStreamId, QuicStreamOffset>& | 58 map<QuicStreamId, QuicStreamOffset>& |
| 55 QuicSessionPeer::GetLocallyClosedStreamsHighestOffset(QuicSession* session) { | 59 QuicSessionPeer::GetLocallyClosedStreamsHighestOffset(QuicSession* session) { |
| 56 return session->locally_closed_streams_highest_offset_; | 60 return session->locally_closed_streams_highest_offset_; |
| 57 } | 61 } |
| 58 | 62 |
| 59 } // namespace test | 63 } // namespace test |
| 60 } // namespace net | 64 } // namespace net |
| OLD | NEW |