| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_buffer_peer.h" | 5 #include "net/quic/test_tools/quic_stream_sequencer_buffer_peer.h" |
| 6 | 6 |
| 7 #include "net/quic/platform/api/quic_flags.h" | 7 #include "net/quic/platform/api/quic_flags.h" |
| 8 #include "net/quic/platform/api/quic_logging.h" | 8 #include "net/quic/platform/api/quic_logging.h" |
| 9 #include "net/quic/platform/api/quic_test.h" |
| 9 #include "net/test/gtest_util.h" | 10 #include "net/test/gtest_util.h" |
| 10 | 11 |
| 11 typedef net::QuicStreamSequencerBuffer::BufferBlock BufferBlock; | 12 typedef net::QuicStreamSequencerBuffer::BufferBlock BufferBlock; |
| 12 typedef net::QuicStreamSequencerBuffer::FrameInfo FrameInfo; | 13 typedef net::QuicStreamSequencerBuffer::FrameInfo FrameInfo; |
| 13 typedef net::QuicStreamSequencerBuffer::Gap Gap; | 14 typedef net::QuicStreamSequencerBuffer::Gap Gap; |
| 14 | 15 |
| 15 static const size_t kBlockSizeBytes = | 16 static const size_t kBlockSizeBytes = |
| 16 net::QuicStreamSequencerBuffer::kBlockSizeBytes; | 17 net::QuicStreamSequencerBuffer::kBlockSizeBytes; |
| 17 | 18 |
| 18 namespace net { | 19 namespace net { |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 void QuicStreamSequencerBufferPeer::set_gaps(const std::list<Gap>& gaps) { | 134 void QuicStreamSequencerBufferPeer::set_gaps(const std::list<Gap>& gaps) { |
| 134 buffer_->gaps_ = gaps; | 135 buffer_->gaps_ = gaps; |
| 135 } | 136 } |
| 136 | 137 |
| 137 bool QuicStreamSequencerBufferPeer::IsBufferAllocated() { | 138 bool QuicStreamSequencerBufferPeer::IsBufferAllocated() { |
| 138 return buffer_->blocks_ != nullptr; | 139 return buffer_->blocks_ != nullptr; |
| 139 } | 140 } |
| 140 | 141 |
| 141 } // namespace test | 142 } // namespace test |
| 142 } // namespace net | 143 } // namespace net |
| OLD | NEW |