Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Side by Side Diff: net/quic/test_tools/quic_session_peer.cc

Issue 1660593004: Landing Recent QUIC changes until 01/28/2016 18:41 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Final_0202
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/test_tools/quic_session_peer.h ('k') | net/tools/quic/quic_dispatcher.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 QuicSession::StreamMap& QuicSessionPeer::static_streams(QuicSession* session) { 64 QuicSession::StreamMap& QuicSessionPeer::static_streams(QuicSession* session) {
65 return session->static_streams(); 65 return session->static_streams();
66 } 66 }
67 67
68 // static 68 // static
69 QuicSession::StreamMap& QuicSessionPeer::dynamic_streams(QuicSession* session) { 69 QuicSession::StreamMap& QuicSessionPeer::dynamic_streams(QuicSession* session) {
70 return session->dynamic_streams(); 70 return session->dynamic_streams();
71 } 71 }
72 72
73 // static 73 // static
74 base::hash_set<QuicStreamId>* QuicSessionPeer::GetDrainingStreams( 74 std::unordered_set<QuicStreamId>* QuicSessionPeer::GetDrainingStreams(
75 QuicSession* session) { 75 QuicSession* session) {
76 return &session->draining_streams_; 76 return &session->draining_streams_;
77 } 77 }
78 78
79 // static 79 // static
80 bool QuicSessionPeer::IsStreamClosed(QuicSession* session, QuicStreamId id) { 80 bool QuicSessionPeer::IsStreamClosed(QuicSession* session, QuicStreamId id) {
81 DCHECK_NE(0u, id); 81 DCHECK_NE(0u, id);
82 return session->IsClosedStream(id); 82 return session->IsClosedStream(id);
83 } 83 }
84 84
(...skipping 16 matching lines...) Expand all
101 // locally-created stream. 101 // locally-created stream.
102 return id >= session->next_outgoing_stream_id_; 102 return id >= session->next_outgoing_stream_id_;
103 } else { 103 } else {
104 // peer-created stream. 104 // peer-created stream.
105 return id > session->largest_peer_created_stream_id_; 105 return id > session->largest_peer_created_stream_id_;
106 } 106 }
107 } 107 }
108 108
109 } // namespace test 109 } // namespace test
110 } // namespace net 110 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_session_peer.h ('k') | net/tools/quic/quic_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698