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

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

Issue 100173005: Break out the basic reliable QUIC stream functionality from the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « net/quic/test_tools/reliable_quic_stream_peer.h ('k') | net/tools/quic/quic_client.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/reliable_quic_stream_peer.h" 5 #include "net/quic/test_tools/reliable_quic_stream_peer.h"
6 6
7 #include "net/quic/reliable_quic_stream.h" 7 #include "net/quic/reliable_quic_stream.h"
8 8
9 namespace net { 9 namespace net {
10 namespace test { 10 namespace test {
11 11
12 // static 12 // static
13 void ReliableQuicStreamPeer::SetWriteSideClosed(bool value, 13 void ReliableQuicStreamPeer::SetWriteSideClosed(bool value,
14 ReliableQuicStream* stream) { 14 ReliableQuicStream* stream) {
15 stream->write_side_closed_ = value; 15 stream->write_side_closed_ = value;
16 } 16 }
17 17
18 // static 18 // static
19 void ReliableQuicStreamPeer::SetStreamBytesWritten( 19 void ReliableQuicStreamPeer::SetStreamBytesWritten(
20 QuicStreamOffset stream_bytes_written, 20 QuicStreamOffset stream_bytes_written,
21 ReliableQuicStream* stream) { 21 ReliableQuicStream* stream) {
22 stream->stream_bytes_written_ = stream_bytes_written; 22 stream->stream_bytes_written_ = stream_bytes_written;
23 } 23 }
24 24
25 void ReliableQuicStreamPeer::SetHeadersDecompressed(
26 ReliableQuicStream* stream,
27 bool headers_decompressed) {
28 stream->headers_decompressed_ = headers_decompressed;
29 }
30
31 } // namespace test 25 } // namespace test
32 } // namespace net 26 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/reliable_quic_stream_peer.h ('k') | net/tools/quic/quic_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698