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

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

Issue 740793002: Record the last packet send time before we start sending the packet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Remove_QUIC_LOG_80124025
Patch Set: Created 6 years, 1 month 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
« net/quic/quic_flags.cc ('K') | « net/quic/quic_flags.cc ('k') | no next file » | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_session.h" 5 #include "net/quic/quic_session.h"
6 6
7 #include <set> 7 #include <set>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 "SICAID=AJKiYcHdKgxum7KMXG0ei2t1-W4OD1uW-ecNsCqC0wDuAXiDGIcT_HA2o1" 213 "SICAID=AJKiYcHdKgxum7KMXG0ei2t1-W4OD1uW-ecNsCqC0wDuAXiDGIcT_HA2o1"
214 "3Rs1UKCuBAF9g8rWNOFbxt8PSNSHFuIhOo2t6bJAVpCsMU5Laa6lewuTMYI8MzdQP" 214 "3Rs1UKCuBAF9g8rWNOFbxt8PSNSHFuIhOo2t6bJAVpCsMU5Laa6lewuTMYI8MzdQP"
215 "ARHKyW-koxuhMZHUnGBJAM1gJODe0cATO_KGoX4pbbFxxJ5IicRxOrWK_5rU3cdy6" 215 "ARHKyW-koxuhMZHUnGBJ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CheckClosedStreams() { 226 void CheckClosedStreams() {
226 for (int i = kCryptoStreamId; i < 100; i++) { 227 for (int i = kCryptoStreamId; i < 100; i++) {
227 if (!ContainsKey(closed_streams_, i)) { 228 if (!ContainsKey(closed_streams_, i)) {
228 EXPECT_FALSE(session_.IsClosedStream(i)) << " stream id: " << i; 229 EXPECT_FALSE(session_.IsClosedStream(i)) << " stream id: " << i;
229 } else { 230 } else {
230 EXPECT_TRUE(session_.IsClosedStream(i)) << " stream id: " << i; 231 EXPECT_TRUE(session_.IsClosedStream(i)) << " stream id: " << i;
231 } 232 }
232 } 233 }
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after
1013 } 1014 }
1014 1015
1015 // Called after any new data is received by the session, and triggers the call 1016 // Called after any new data is received by the session, and triggers the call
1016 // to close the connection. 1017 // to close the connection.
1017 session_.PostProcessAfterData(); 1018 session_.PostProcessAfterData();
1018 } 1019 }
1019 1020
1020 } // namespace 1021 } // namespace
1021 } // namespace test 1022 } // namespace test
1022 } // namespace net 1023 } // namespace net
OLDNEW
« net/quic/quic_flags.cc ('K') | « net/quic/quic_flags.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698