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

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

Issue 288313003: Land Recent QUIC Changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src
Patch Set: implemented rch's comments Created 6 years, 7 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
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 #ifndef NET_QUIC_TEST_TOOLS_QUIC_SESSION_PEER_H_ 5 #ifndef NET_QUIC_TEST_TOOLS_QUIC_SESSION_PEER_H_
6 #define NET_QUIC_TEST_TOOLS_QUIC_SESSION_PEER_H_ 6 #define NET_QUIC_TEST_TOOLS_QUIC_SESSION_PEER_H_
7 7
8 #include "net/quic/quic_protocol.h" 8 #include "net/quic/quic_protocol.h"
9 #include "net/quic/quic_write_blocked_list.h" 9 #include "net/quic/quic_write_blocked_list.h"
10 10
11 namespace net { 11 namespace net {
12 12
13 class QuicDataStream; 13 class QuicDataStream;
14 class QuicHeadersStream; 14 class QuicHeadersStream;
15 class QuicSession; 15 class QuicSession;
16 16
17 namespace test { 17 namespace test {
18 18
19 class QuicSessionPeer { 19 class QuicSessionPeer {
20 public: 20 public:
21 static void SetNextStreamId(QuicSession* session, QuicStreamId id); 21 static void SetNextStreamId(QuicSession* session, QuicStreamId id);
22 static void SetMaxOpenStreams(QuicSession* session, uint32 max_streams); 22 static void SetMaxOpenStreams(QuicSession* session, uint32 max_streams);
23 static QuicHeadersStream* GetHeadersStream(QuicSession* session); 23 static QuicHeadersStream* GetHeadersStream(QuicSession* session);
24 static void SetHeadersStream(QuicSession* session,
25 QuicHeadersStream* headers_stream);
24 static QuicWriteBlockedList* GetWriteblockedStreams(QuicSession* session); 26 static QuicWriteBlockedList* GetWriteblockedStreams(QuicSession* session);
25 static QuicDataStream* GetIncomingDataStream(QuicSession* session, 27 static QuicDataStream* GetIncomingDataStream(QuicSession* session,
26 QuicStreamId stream_id); 28 QuicStreamId stream_id);
27 29
28 private: 30 private:
29 DISALLOW_COPY_AND_ASSIGN(QuicSessionPeer); 31 DISALLOW_COPY_AND_ASSIGN(QuicSessionPeer);
30 }; 32 };
31 33
32 } // namespace test 34 } // namespace test
33 } // namespace net 35 } // namespace net
34 36
35 #endif // NET_QUIC_TEST_TOOLS_QUIC_SESSION_PEER_H_ 37 #endif // NET_QUIC_TEST_TOOLS_QUIC_SESSION_PEER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698