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

Side by Side Diff: net/quic/congestion_control/tcp_cubic_sender_bytes_test.cc

Issue 1911653002: 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@119576588
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
« no previous file with comments | « no previous file | net/quic/test_tools/crypto_test_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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/congestion_control/tcp_cubic_sender_bytes.h" 5 #include "net/quic/congestion_control/tcp_cubic_sender_bytes.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cstdint>
8 #include <memory> 9 #include <memory>
9 10
10 #include "base/logging.h" 11 #include "base/logging.h"
11 #include "net/quic/congestion_control/rtt_stats.h" 12 #include "net/quic/congestion_control/rtt_stats.h"
12 #include "net/quic/crypto/crypto_protocol.h" 13 #include "net/quic/crypto/crypto_protocol.h"
13 #include "net/quic/proto/cached_network_parameters.pb.h" 14 #include "net/quic/proto/cached_network_parameters.pb.h"
14 #include "net/quic/quic_flags.h" 15 #include "net/quic/quic_flags.h"
15 #include "net/quic/quic_protocol.h" 16 #include "net/quic/quic_protocol.h"
16 #include "net/quic/quic_utils.h" 17 #include "net/quic/quic_utils.h"
17 #include "net/quic/test_tools/mock_clock.h" 18 #include "net/quic/test_tools/mock_clock.h"
(...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after
757 // Resets cwnd and slow start threshold on connection migrations. 758 // Resets cwnd and slow start threshold on connection migrations.
758 sender_->OnConnectionMigration(); 759 sender_->OnConnectionMigration();
759 EXPECT_EQ(kDefaultWindowTCP, sender_->GetCongestionWindow()); 760 EXPECT_EQ(kDefaultWindowTCP, sender_->GetCongestionWindow());
760 EXPECT_EQ(kMaxCongestionWindow * kDefaultTCPMSS, 761 EXPECT_EQ(kMaxCongestionWindow * kDefaultTCPMSS,
761 sender_->GetSlowStartThreshold()); 762 sender_->GetSlowStartThreshold());
762 EXPECT_FALSE(sender_->hybrid_slow_start().started()); 763 EXPECT_FALSE(sender_->hybrid_slow_start().started());
763 } 764 }
764 765
765 } // namespace test 766 } // namespace test
766 } // namespace net 767 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | net/quic/test_tools/crypto_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698