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

Side by Side Diff: net/quic/quic_stream_sequencer_test.cc

Issue 1908723002: Cleanup: Migrate references from scoped_ptr to std::unique_ptr. scoped_ptr is now just an alias for… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@119568788
Patch Set: Rebase Created 4 years, 8 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 (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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698