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

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

Issue 1805323003: Remove QuicFrameList, because it's unused with the new QuicStreamSequencer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@116712124
Patch Set: Created 4 years, 9 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
« no previous file with comments | « net/quic/test_tools/quic_stream_sequencer_peer.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "net/quic/test_tools/quic_stream_sequencer_peer.h" 5 #include "net/quic/test_tools/quic_stream_sequencer_peer.h"
6 6
7 #include "net/quic/quic_stream_sequencer.h" 7 #include "net/quic/quic_stream_sequencer.h"
8 8
9 using std::map; 9 using std::map;
10 using std::string; 10 using std::string;
11 11
12 namespace net { 12 namespace net {
13 namespace test { 13 namespace test {
14 14
15 // static 15 // static
16 size_t QuicStreamSequencerPeer::GetNumBufferedBytes( 16 size_t QuicStreamSequencerPeer::GetNumBufferedBytes(
17 QuicStreamSequencer* sequencer) { 17 QuicStreamSequencer* sequencer) {
18 return sequencer->buffered_frames_.BytesBuffered(); 18 return sequencer->buffered_frames_.BytesBuffered();
19 } 19 }
20 20
21 // static 21 // static
22 bool QuicStreamSequencerPeer::FrameOverlapsBufferedData(
23 QuicFrameList* buffer,
24 const QuicStreamFrame& frame) {
25 list<QuicFrameList::FrameData>::iterator it =
26 buffer->FindInsertionPoint(frame.offset, frame.frame_length);
27 return buffer->FrameOverlapsBufferedData(frame.offset, frame.frame_length,
28 it);
29 }
30
31 // static
32 QuicStreamOffset QuicStreamSequencerPeer::GetCloseOffset( 22 QuicStreamOffset QuicStreamSequencerPeer::GetCloseOffset(
33 QuicStreamSequencer* sequencer) { 23 QuicStreamSequencer* sequencer) {
34 return sequencer->close_offset_; 24 return sequencer->close_offset_;
35 } 25 }
36 26
37 } // namespace test 27 } // namespace test
38 } // namespace net 28 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_stream_sequencer_peer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698