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