| 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_RELIABLE_QUIC_STREAM_PEER_H_ | 5 #ifndef NET_QUIC_TEST_TOOLS_RELIABLE_QUIC_STREAM_PEER_H_ |
| 6 #define NET_QUIC_TEST_TOOLS_RELIABLE_QUIC_STREAM_PEER_H_ | 6 #define NET_QUIC_TEST_TOOLS_RELIABLE_QUIC_STREAM_PEER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 static bool FinSent(ReliableQuicStream* stream); | 28 static bool FinSent(ReliableQuicStream* stream); |
| 29 static bool FinReceived(ReliableQuicStream* stream); | 29 static bool FinReceived(ReliableQuicStream* stream); |
| 30 static bool RstSent(ReliableQuicStream* stream); | 30 static bool RstSent(ReliableQuicStream* stream); |
| 31 static bool RstReceived(ReliableQuicStream* stream); | 31 static bool RstReceived(ReliableQuicStream* stream); |
| 32 | 32 |
| 33 static bool ReadSideClosed(ReliableQuicStream* stream); | 33 static bool ReadSideClosed(ReliableQuicStream* stream); |
| 34 static bool WriteSideClosed(ReliableQuicStream* stream); | 34 static bool WriteSideClosed(ReliableQuicStream* stream); |
| 35 | 35 |
| 36 static uint32_t SizeOfQueuedData(ReliableQuicStream* stream); | 36 static uint32_t SizeOfQueuedData(ReliableQuicStream* stream); |
| 37 | 37 |
| 38 static void SetFecPolicy(ReliableQuicStream* stream, FecPolicy fec_policy); | |
| 39 | |
| 40 static bool StreamContributesToConnectionFlowControl( | 38 static bool StreamContributesToConnectionFlowControl( |
| 41 ReliableQuicStream* stream); | 39 ReliableQuicStream* stream); |
| 42 | 40 |
| 43 static void WriteOrBufferData( | 41 static void WriteOrBufferData( |
| 44 ReliableQuicStream* stream, | 42 ReliableQuicStream* stream, |
| 45 base::StringPiece data, | 43 base::StringPiece data, |
| 46 bool fin, | 44 bool fin, |
| 47 QuicAckListenerInterface* ack_notifier_delegate); | 45 QuicAckListenerInterface* ack_notifier_delegate); |
| 48 | 46 |
| 49 private: | 47 private: |
| 50 DISALLOW_COPY_AND_ASSIGN(ReliableQuicStreamPeer); | 48 DISALLOW_COPY_AND_ASSIGN(ReliableQuicStreamPeer); |
| 51 }; | 49 }; |
| 52 | 50 |
| 53 } // namespace test | 51 } // namespace test |
| 54 } // namespace net | 52 } // namespace net |
| 55 | 53 |
| 56 #endif // NET_QUIC_TEST_TOOLS_RELIABLE_QUIC_STREAM_PEER_H_ | 54 #endif // NET_QUIC_TEST_TOOLS_RELIABLE_QUIC_STREAM_PEER_H_ |
| OLD | NEW |