OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SEQUENCER_PEER_H_ | 5 #ifndef NET_QUIC_TEST_TOOLS_QUIC_STREAM_SEQUENCER_PEER_H_ |
6 #define NET_QUIC_TEST_TOOLS_QUIC_STREAM_SEQUENCER_PEER_H_ | 6 #define NET_QUIC_TEST_TOOLS_QUIC_STREAM_SEQUENCER_PEER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "net/quic/quic_frame_list.h" |
9 #include "net/quic/quic_protocol.h" | 10 #include "net/quic/quic_protocol.h" |
10 | 11 |
11 namespace net { | 12 namespace net { |
12 | 13 |
13 class QuicStreamSequencer; | 14 class QuicStreamSequencer; |
14 | 15 |
15 namespace test { | 16 namespace test { |
16 | 17 |
17 class QuicStreamSequencerPeer { | 18 class QuicStreamSequencerPeer { |
18 public: | 19 public: |
19 static size_t GetNumBufferedFrames(QuicStreamSequencer* sequencer); | 20 static size_t GetNumBufferedBytes(QuicStreamSequencer* sequencer); |
20 | 21 |
21 static bool FrameOverlapsBufferedData(QuicStreamSequencer* sequencer, | 22 static bool FrameOverlapsBufferedData(QuicFrameList* buffer, |
22 const QuicStreamFrame& frame); | 23 const QuicStreamFrame& frame); |
23 | 24 |
24 static QuicStreamOffset GetCloseOffset(QuicStreamSequencer* sequencer); | 25 static QuicStreamOffset GetCloseOffset(QuicStreamSequencer* sequencer); |
25 | 26 |
26 private: | 27 private: |
27 DISALLOW_COPY_AND_ASSIGN(QuicStreamSequencerPeer); | 28 DISALLOW_COPY_AND_ASSIGN(QuicStreamSequencerPeer); |
28 }; | 29 }; |
29 | 30 |
30 } // namespace test | 31 } // namespace test |
31 } // namespace net | 32 } // namespace net |
32 | 33 |
33 #endif // NET_QUIC_TEST_TOOLS_QUIC_STREAM_SEQUENCER_PEER_H_ | 34 #endif // NET_QUIC_TEST_TOOLS_QUIC_STREAM_SEQUENCER_PEER_H_ |
OLD | NEW |