| OLD | NEW |
| 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/quic_multipath_transmissions_map.h" | 5 #include "net/quic/quic_multipath_transmissions_map.h" |
| 6 #include "testing/gtest/include/gtest/gtest.h" | 6 #include "testing/gtest/include/gtest/gtest.h" |
| 7 | 7 |
| 8 namespace net_quic { | 8 namespace net { |
| 9 namespace test { | 9 namespace test { |
| 10 namespace { | 10 namespace { |
| 11 | 11 |
| 12 TEST(QuicAcrossPathsTransmissionMapTest, OnPacketRetransmittedOnDifferentPath) { | 12 TEST(QuicAcrossPathsTransmissionMapTest, OnPacketRetransmittedOnDifferentPath) { |
| 13 QuicMultipathTransmissionsMap transmission_map; | 13 QuicMultipathTransmissionsMap transmission_map; |
| 14 // Packet0's original transmission sent on path 1 with packet number 1. | 14 // Packet0's original transmission sent on path 1 with packet number 1. |
| 15 QuicPathIdPacketNumber packet0_0(1, 1); | 15 QuicPathIdPacketNumber packet0_0(1, 1); |
| 16 // Packet0's retransmission sent on path 2 with packet number 1. | 16 // Packet0's retransmission sent on path 2 with packet number 1. |
| 17 QuicPathIdPacketNumber packet0_1(2, 1); | 17 QuicPathIdPacketNumber packet0_1(2, 1); |
| 18 // packet0's 2nd retransmission sent on path 3 with packet number 1. | 18 // packet0's 2nd retransmission sent on path 3 with packet number 1. |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 transmission_map.OnPacketHandled(packet1_1); | 104 transmission_map.OnPacketHandled(packet1_1); |
| 105 EXPECT_EQ(nullptr, | 105 EXPECT_EQ(nullptr, |
| 106 transmission_map.MaybeGetTransmissionsOnOtherPaths(packet1_0)); | 106 transmission_map.MaybeGetTransmissionsOnOtherPaths(packet1_0)); |
| 107 EXPECT_EQ(nullptr, | 107 EXPECT_EQ(nullptr, |
| 108 transmission_map.MaybeGetTransmissionsOnOtherPaths(packet1_1)); | 108 transmission_map.MaybeGetTransmissionsOnOtherPaths(packet1_1)); |
| 109 // Make sure there is no memory leakage. | 109 // Make sure there is no memory leakage. |
| 110 } | 110 } |
| 111 | 111 |
| 112 } // namespace | 112 } // namespace |
| 113 } // namespace test | 113 } // namespace test |
| 114 } // namespace net_quic | 114 } // namespace net |
| OLD | NEW |