| OLD | NEW |
| 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::SetOffset(QuicStreamOffset offset, | 19 void ReliableQuicStreamPeer::SetStreamBytesWritten( |
| 20 ReliableQuicStream* stream) { | 20 QuicStreamOffset stream_bytes_written, |
| 21 stream->offset_ = offset; | 21 ReliableQuicStream* stream) { |
| 22 stream->stream_bytes_written_ = stream_bytes_written; |
| 22 } | 23 } |
| 23 | 24 |
| 24 } // namespace test | 25 } // namespace test |
| 25 } // namespace net | 26 } // namespace net |
| OLD | NEW |