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

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

Issue 2430973004: Landing Recent QUIC changes until 10:38 AM, Oct 17, 2016 UTC-4 (Closed)
Patch Set: Improving flagsaver logging Created 4 years, 2 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/quic/test_tools/quic_test_utils.cc » ('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/core/quic_session.h" 8 #include "net/quic/core/quic_session.h"
9 #include "net/quic/core/reliable_quic_stream.h" 9 #include "net/quic/core/reliable_quic_stream.h"
10 10
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
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::StaticStreamMap& QuicSessionPeer::static_streams( 64 QuicSession::StaticStreamMap& QuicSessionPeer::static_streams(
65 QuicSession* session) { 65 QuicSession* session) {
66 return session->static_streams(); 66 return session->static_streams();
67 } 67 }
68 68
69 // static 69 // static
70 QuicSession::DynamicStreamMap& QuicSessionPeer::dynamic_streams(
71 QuicSession* session) {
72 return session->dynamic_streams();
73 }
74
75 // static
70 std::unordered_set<QuicStreamId>* QuicSessionPeer::GetDrainingStreams( 76 std::unordered_set<QuicStreamId>* QuicSessionPeer::GetDrainingStreams(
71 QuicSession* session) { 77 QuicSession* session) {
72 return &session->draining_streams_; 78 return &session->draining_streams_;
73 } 79 }
74 80
75 // static 81 // static
76 void QuicSessionPeer::ActivateStream( 82 void QuicSessionPeer::ActivateStream(
77 QuicSession* session, 83 QuicSession* session,
78 std::unique_ptr<ReliableQuicStream> stream) { 84 std::unique_ptr<ReliableQuicStream> stream) {
79 return session->ActivateStream(std::move(stream)); 85 return session->ActivateStream(std::move(stream));
(...skipping 24 matching lines...) Expand all
104 // locally-created stream. 110 // locally-created stream.
105 return id >= session->next_outgoing_stream_id_; 111 return id >= session->next_outgoing_stream_id_;
106 } else { 112 } else {
107 // peer-created stream. 113 // peer-created stream.
108 return id > session->largest_peer_created_stream_id_; 114 return id > session->largest_peer_created_stream_id_;
109 } 115 }
110 } 116 }
111 117
112 } // namespace test 118 } // namespace test
113 } // namespace net 119 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_session_peer.h ('k') | net/quic/test_tools/quic_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698