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

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

Issue 687093002: Move receive_window_ from BbrTcpSender and TcpCubicSender to (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Gathering_ClientConnectionStats_78688302
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
« no previous file with comments | « net/quic/test_tools/quic_sent_packet_manager_peer.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 <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 884 matching lines...) Expand 10 before | Expand all | Expand 10 after
895 expected_congestion_control_type = kBBR; 895 expected_congestion_control_type = kBBR;
896 break; 896 break;
897 case kQBIC: 897 case kQBIC:
898 expected_congestion_control_type = kCubic; 898 expected_congestion_control_type = kCubic;
899 break; 899 break;
900 default: 900 default:
901 DLOG(FATAL) << "Unexpected congestion control tag"; 901 DLOG(FATAL) << "Unexpected congestion control tag";
902 } 902 }
903 903
904 EXPECT_EQ(expected_congestion_control_type, 904 EXPECT_EQ(expected_congestion_control_type,
905 QuicSentPacketManagerPeer::GetCongestionControlAlgorithm( 905 QuicSentPacketManagerPeer::GetSendAlgorithm(
906 *GetSentPacketManagerFromFirstServerSession()) 906 *GetSentPacketManagerFromFirstServerSession())
907 ->GetCongestionControlType()); 907 ->GetCongestionControlType());
908 } 908 }
909 909
910 TEST_P(EndToEndTest, LimitMaxOpenStreams) { 910 TEST_P(EndToEndTest, LimitMaxOpenStreams) {
911 // Server limits the number of max streams to 2. 911 // Server limits the number of max streams to 2.
912 server_config_.SetMaxStreamsPerConnection(2, 2); 912 server_config_.SetMaxStreamsPerConnection(2, 2);
913 // Client tries to negotiate for 10. 913 // Client tries to negotiate for 10.
914 client_config_.SetMaxStreamsPerConnection(10, 5); 914 client_config_.SetMaxStreamsPerConnection(10, 5);
915 915
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
1359 QuicSession* session = dispatcher->session_map().begin()->second; 1359 QuicSession* session = dispatcher->session_map().begin()->second;
1360 EXPECT_EQ(0u, QuicSessionPeer::GetLocallyClosedStreamsHighestOffset( 1360 EXPECT_EQ(0u, QuicSessionPeer::GetLocallyClosedStreamsHighestOffset(
1361 session).size()); 1361 session).size());
1362 server_thread_->Resume(); 1362 server_thread_->Resume();
1363 } 1363 }
1364 1364
1365 } // namespace 1365 } // namespace
1366 } // namespace test 1366 } // namespace test
1367 } // namespace tools 1367 } // namespace tools
1368 } // namespace net 1368 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_sent_packet_manager_peer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698