| 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 #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 Loading... |
| 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_ |
| OLD | NEW |