Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(268)

Side by Side Diff: net/quic/test_tools/quic_stream_sequencer_peer.h

Issue 1414573004: Introduces QuicStreamSequencerBufferInterface with one implementation. Refactor, no behavior change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing the build file (previously missing a comma) Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698