OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/quic_stream_sequencer.h" | 5 #include "net/quic/quic_stream_sequencer.h" |
6 | 6 |
| 7 #include <algorithm> |
| 8 #include <cstdint> |
| 9 #include <memory> |
7 #include <utility> | 10 #include <utility> |
8 #include <vector> | 11 #include <vector> |
9 | 12 |
10 #include "base/logging.h" | 13 #include "base/logging.h" |
11 #include "base/rand_util.h" | 14 #include "base/rand_util.h" |
12 #include "net/base/ip_endpoint.h" | 15 #include "net/base/ip_endpoint.h" |
13 #include "net/quic/quic_flags.h" | 16 #include "net/quic/quic_flags.h" |
14 #include "net/quic/quic_utils.h" | 17 #include "net/quic/quic_utils.h" |
15 #include "net/quic/reliable_quic_stream.h" | 18 #include "net/quic/reliable_quic_stream.h" |
16 #include "net/quic/test_tools/mock_clock.h" | 19 #include "net/quic/test_tools/mock_clock.h" |
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
650 EXPECT_EQ(timestamp, t1); | 653 EXPECT_EQ(timestamp, t1); |
651 QuicStreamSequencerTest::ConsumeData(3); | 654 QuicStreamSequencerTest::ConsumeData(3); |
652 EXPECT_EQ(0u, NumBufferedBytes()); | 655 EXPECT_EQ(0u, NumBufferedBytes()); |
653 EXPECT_EQ(6u, sequencer_->NumBytesConsumed()); | 656 EXPECT_EQ(6u, sequencer_->NumBytesConsumed()); |
654 EXPECT_EQ(0u, sequencer_->NumBytesBuffered()); | 657 EXPECT_EQ(0u, sequencer_->NumBytesBuffered()); |
655 } | 658 } |
656 | 659 |
657 } // namespace | 660 } // namespace |
658 } // namespace test | 661 } // namespace test |
659 } // namespace net | 662 } // namespace net |
OLD | NEW |