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

Side by Side Diff: net/tools/quic/end_to_end_test.cc

Issue 530343003: Landing Recent QUIC Changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Final_0828
Patch Set: Created 6 years, 3 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/test_tools/quic_test_utils.h ('k') | net/tools/quic/quic_client_bin.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 (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 <stddef.h> 5 #include <stddef.h>
6 #include <string> 6 #include <string>
7 #include <sys/epoll.h> 7 #include <sys/epoll.h>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 1309 matching lines...) Expand 10 before | Expand all | Expand 10 after
1320 // The special headers and crypto streams should be subject to per-stream flow 1320 // The special headers and crypto streams should be subject to per-stream flow
1321 // control limits, but should not be subject to connection level flow control. 1321 // control limits, but should not be subject to connection level flow control.
1322 const uint32 kStreamIFCW = 123456; 1322 const uint32 kStreamIFCW = 123456;
1323 const uint32 kSessionIFCW = 234567; 1323 const uint32 kSessionIFCW = 234567;
1324 set_client_initial_stream_flow_control_receive_window(kStreamIFCW); 1324 set_client_initial_stream_flow_control_receive_window(kStreamIFCW);
1325 set_client_initial_session_flow_control_receive_window(kSessionIFCW); 1325 set_client_initial_session_flow_control_receive_window(kSessionIFCW);
1326 set_server_initial_stream_flow_control_receive_window(kStreamIFCW); 1326 set_server_initial_stream_flow_control_receive_window(kStreamIFCW);
1327 set_server_initial_session_flow_control_receive_window(kSessionIFCW); 1327 set_server_initial_session_flow_control_receive_window(kSessionIFCW);
1328 1328
1329 ASSERT_TRUE(Initialize()); 1329 ASSERT_TRUE(Initialize());
1330 if (negotiated_version_ <= QUIC_VERSION_20) { 1330 if (negotiated_version_ < QUIC_VERSION_21) {
1331 return; 1331 return;
1332 } 1332 }
1333 1333
1334 // Wait for crypto handshake to finish. This should have contributed to the 1334 // Wait for crypto handshake to finish. This should have contributed to the
1335 // crypto stream flow control window, but not affected the session flow 1335 // crypto stream flow control window, but not affected the session flow
1336 // control window. 1336 // control window.
1337 client_->client()->WaitForCryptoHandshakeConfirmed(); 1337 client_->client()->WaitForCryptoHandshakeConfirmed();
1338 server_thread_->WaitForCryptoHandshakeConfirmed(); 1338 server_thread_->WaitForCryptoHandshakeConfirmed();
1339 1339
1340 QuicCryptoStream* crypto_stream = 1340 QuicCryptoStream* crypto_stream =
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
1388 QuicSession* session = dispatcher->session_map().begin()->second; 1388 QuicSession* session = dispatcher->session_map().begin()->second;
1389 EXPECT_EQ(0u, QuicSessionPeer::GetLocallyClosedStreamsHighestOffset( 1389 EXPECT_EQ(0u, QuicSessionPeer::GetLocallyClosedStreamsHighestOffset(
1390 session).size()); 1390 session).size());
1391 server_thread_->Resume(); 1391 server_thread_->Resume();
1392 } 1392 }
1393 1393
1394 } // namespace 1394 } // namespace
1395 } // namespace test 1395 } // namespace test
1396 } // namespace tools 1396 } // namespace tools
1397 } // namespace net 1397 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_test_utils.h ('k') | net/tools/quic/quic_client_bin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698