OLD | NEW |
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 Loading... |
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 |
OLD | NEW |