diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2019-05-24 11:40:17 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2019-05-24 12:42:11 +0000 |
commit | 5d87695f37678f96492b258bbab36486c59866b4 (patch) | |
tree | be9783bbaf04fb930c4d74ca9c00b5e7954c8bc6 /chromium/net/third_party/quiche/src/quic/test_tools/quic_stream_sequencer_peer.cc | |
parent | 6c11fb357ec39bf087b8b632e2b1e375aef1b38b (diff) | |
download | qtwebengine-chromium-5d87695f37678f96492b258bbab36486c59866b4.tar.gz |
BASELINE: Update Chromium to 75.0.3770.56
Change-Id: I86d2007fd27a45d5797eee06f4c9369b8b50ac4f
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'chromium/net/third_party/quiche/src/quic/test_tools/quic_stream_sequencer_peer.cc')
-rw-r--r-- | chromium/net/third_party/quiche/src/quic/test_tools/quic_stream_sequencer_peer.cc | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/chromium/net/third_party/quiche/src/quic/test_tools/quic_stream_sequencer_peer.cc b/chromium/net/third_party/quiche/src/quic/test_tools/quic_stream_sequencer_peer.cc new file mode 100644 index 00000000000..05cf35cdf5d --- /dev/null +++ b/chromium/net/third_party/quiche/src/quic/test_tools/quic_stream_sequencer_peer.cc @@ -0,0 +1,40 @@ +// Copyright 2014 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "net/third_party/quiche/src/quic/test_tools/quic_stream_sequencer_peer.h" + +#include "net/third_party/quiche/src/quic/core/quic_stream_sequencer.h" +#include "net/third_party/quiche/src/quic/test_tools/quic_stream_sequencer_buffer_peer.h" + +namespace quic { +namespace test { + +// static +size_t QuicStreamSequencerPeer::GetNumBufferedBytes( + QuicStreamSequencer* sequencer) { + return sequencer->buffered_frames_.BytesBuffered(); +} + +// static +QuicStreamOffset QuicStreamSequencerPeer::GetCloseOffset( + QuicStreamSequencer* sequencer) { + return sequencer->close_offset_; +} + +// static +bool QuicStreamSequencerPeer::IsUnderlyingBufferAllocated( + QuicStreamSequencer* sequencer) { + QuicStreamSequencerBufferPeer buffer_peer(&(sequencer->buffered_frames_)); + return buffer_peer.IsBufferAllocated(); +} + +// static +void QuicStreamSequencerPeer::SetFrameBufferTotalBytesRead( + QuicStreamSequencer* sequencer, + QuicStreamOffset total_bytes_read) { + QuicStreamSequencerBufferPeer buffer_peer(&(sequencer->buffered_frames_)); + buffer_peer.set_total_bytes_read(total_bytes_read); +} +} // namespace test +} // namespace quic |