| 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/core/quic_session.h" |
| 9 #include "net/quic/reliable_quic_stream.h" | 9 #include "net/quic/core/reliable_quic_stream.h" |
| 10 | 10 |
| 11 using std::map; | 11 using std::map; |
| 12 | 12 |
| 13 namespace net { | 13 namespace net { |
| 14 namespace test { | 14 namespace test { |
| 15 | 15 |
| 16 // static | 16 // static |
| 17 QuicStreamId QuicSessionPeer::GetNextOutgoingStreamId(QuicSession* session) { | 17 QuicStreamId QuicSessionPeer::GetNextOutgoingStreamId(QuicSession* session) { |
| 18 return session->GetNextOutgoingStreamId(); | 18 return session->GetNextOutgoingStreamId(); |
| 19 } | 19 } |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 // locally-created stream. | 103 // locally-created stream. |
| 104 return id >= session->next_outgoing_stream_id_; | 104 return id >= session->next_outgoing_stream_id_; |
| 105 } else { | 105 } else { |
| 106 // peer-created stream. | 106 // peer-created stream. |
| 107 return id > session->largest_peer_created_stream_id_; | 107 return id > session->largest_peer_created_stream_id_; |
| 108 } | 108 } |
| 109 } | 109 } |
| 110 | 110 |
| 111 } // namespace test | 111 } // namespace test |
| 112 } // namespace net | 112 } // namespace net |
| OLD | NEW |