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

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

Issue 2963763003: In QUIC, send data is copied to streams rather than frames. Protected by FLAGS_quic_reloadable_flag… (Closed)
Patch Set: Rebase Created 3 years, 5 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/core/quic_stream_test.cc ('k') | net/quic/test_tools/quic_stream_peer.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 #ifndef NET_QUIC_TEST_TOOLS_QUIC_STREAM_PEER_H_ 5 #ifndef NET_QUIC_TEST_TOOLS_QUIC_STREAM_PEER_H_
6 #define NET_QUIC_TEST_TOOLS_QUIC_STREAM_PEER_H_ 6 #define NET_QUIC_TEST_TOOLS_QUIC_STREAM_PEER_H_
7 7
8 #include <cstdint> 8 #include <cstdint>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "net/quic/core/quic_packets.h" 11 #include "net/quic/core/quic_packets.h"
12 #include "net/quic/core/quic_stream_send_buffer.h"
12 #include "net/quic/core/quic_stream_sequencer.h" 13 #include "net/quic/core/quic_stream_sequencer.h"
13 #include "net/quic/platform/api/quic_string_piece.h" 14 #include "net/quic/platform/api/quic_string_piece.h"
14 15
15 namespace net { 16 namespace net {
16 17
17 class QuicStream; 18 class QuicStream;
18 class QuicSession; 19 class QuicSession;
19 20
20 namespace test { 21 namespace test {
21 22
(...skipping 14 matching lines...) Expand all
36 37
37 static void WriteOrBufferData( 38 static void WriteOrBufferData(
38 QuicStream* stream, 39 QuicStream* stream,
39 QuicStringPiece data, 40 QuicStringPiece data,
40 bool fin, 41 bool fin,
41 QuicReferenceCountedPointer<QuicAckListenerInterface> ack_listener); 42 QuicReferenceCountedPointer<QuicAckListenerInterface> ack_listener);
42 43
43 static QuicStreamSequencer* sequencer(QuicStream* stream); 44 static QuicStreamSequencer* sequencer(QuicStream* stream);
44 static QuicSession* session(QuicStream* stream); 45 static QuicSession* session(QuicStream* stream);
45 46
47 static QuicStreamSendBuffer& SendBuffer(QuicStream* stream);
48
46 private: 49 private:
47 DISALLOW_COPY_AND_ASSIGN(QuicStreamPeer); 50 DISALLOW_COPY_AND_ASSIGN(QuicStreamPeer);
48 }; 51 };
49 52
50 } // namespace test 53 } // namespace test
51 54
52 } // namespace net 55 } // namespace net
53 56
54 #endif // NET_QUIC_TEST_TOOLS_QUIC_STREAM_PEER_H_ 57 #endif // NET_QUIC_TEST_TOOLS_QUIC_STREAM_PEER_H_
OLDNEW
« no previous file with comments | « net/quic/core/quic_stream_test.cc ('k') | net/quic/test_tools/quic_stream_peer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698