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

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

Issue 1660593004: Landing Recent QUIC changes until 01/28/2016 18:41 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Final_0202
Patch Set: Created 4 years, 10 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_multipath_transmissions_map.cc ('k') | net/quic/quic_packet_creator.h » ('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/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
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
OLDNEW
« no previous file with comments | « net/quic/quic_multipath_transmissions_map.cc ('k') | net/quic/quic_packet_creator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698