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

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

Issue 1908103002: Landing Recent QUIC changes until 4/15/2016 17:20 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix 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 | « net/quic/quic_packet_generator_test.cc ('k') | net/quic/quic_session_test.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_sent_packet_manager.h" 5 #include "net/quic/quic_sent_packet_manager.h"
6 6
7 #include <memory>
8
7 #include "base/stl_util.h" 9 #include "base/stl_util.h"
8 #include "net/quic/quic_flags.h" 10 #include "net/quic/quic_flags.h"
9 #include "net/quic/test_tools/quic_config_peer.h" 11 #include "net/quic/test_tools/quic_config_peer.h"
10 #include "net/quic/test_tools/quic_sent_packet_manager_peer.h" 12 #include "net/quic/test_tools/quic_sent_packet_manager_peer.h"
11 #include "net/quic/test_tools/quic_test_utils.h" 13 #include "net/quic/test_tools/quic_test_utils.h"
12 #include "testing/gmock/include/gmock/gmock.h" 14 #include "testing/gmock/include/gmock/gmock.h"
13 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
14 16
15 using std::vector; 17 using std::vector;
16 using testing::AnyNumber; 18 using testing::AnyNumber;
(...skipping 1615 matching lines...) Expand 10 before | Expand all | Expand 10 after
1632 manager_.OnConnectionMigration(PORT_CHANGE); 1634 manager_.OnConnectionMigration(PORT_CHANGE);
1633 1635
1634 EXPECT_EQ(2 * default_init_rtt, rtt_stats->initial_rtt_us()); 1636 EXPECT_EQ(2 * default_init_rtt, rtt_stats->initial_rtt_us());
1635 EXPECT_EQ(1u, manager_.consecutive_rto_count()); 1637 EXPECT_EQ(1u, manager_.consecutive_rto_count());
1636 EXPECT_EQ(2u, manager_.consecutive_tlp_count()); 1638 EXPECT_EQ(2u, manager_.consecutive_tlp_count());
1637 } 1639 }
1638 1640
1639 } // namespace 1641 } // namespace
1640 } // namespace test 1642 } // namespace test
1641 } // namespace net 1643 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_packet_generator_test.cc ('k') | net/quic/quic_session_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698