/aosp_15_r20/external/cronet/net/third_party/quiche/src/quiche/quic/core/ |
H A D | quic_connection_test.cc | 610 send_algorithm_(new StrictMock<MockSendAlgorithm>), in QuicConnectionTest() 670 connection_.SetSendAlgorithm(send_algorithm_); in QuicConnectionTest() 672 EXPECT_CALL(*send_algorithm_, CanSend(_)).WillRepeatedly(Return(true)); in QuicConnectionTest() 673 EXPECT_CALL(*send_algorithm_, OnPacketSent(_, _, _, _, _)) in QuicConnectionTest() 675 EXPECT_CALL(*send_algorithm_, OnPacketNeutered(_)).Times(AnyNumber()); in QuicConnectionTest() 676 EXPECT_CALL(*send_algorithm_, GetCongestionWindow()) in QuicConnectionTest() 678 EXPECT_CALL(*send_algorithm_, PacingRate(_)) in QuicConnectionTest() 680 EXPECT_CALL(*send_algorithm_, BandwidthEstimate()) in QuicConnectionTest() 683 EXPECT_CALL(*send_algorithm_, PopulateConnectionStats(_)) in QuicConnectionTest() 685 EXPECT_CALL(*send_algorithm_, InSlowStart()).Times(AnyNumber()); in QuicConnectionTest() [all …]
|
H A D | quic_sent_packet_manager_test.cc | 67 *send_algorithm_, in RetransmitCryptoPacket() 82 *send_algorithm_, in RetransmitDataPacket() 101 send_algorithm_(new StrictMock<MockSendAlgorithm>), in QuicSentPacketManagerTest() 103 QuicSentPacketManagerPeer::SetSendAlgorithm(&manager_, send_algorithm_); in QuicSentPacketManagerTest() 109 EXPECT_CALL(*send_algorithm_, GetCongestionControlType()) in QuicSentPacketManagerTest() 111 EXPECT_CALL(*send_algorithm_, BandwidthEstimate()) in QuicSentPacketManagerTest() 114 EXPECT_CALL(*send_algorithm_, InSlowStart()).Times(AnyNumber()); in QuicSentPacketManagerTest() 115 EXPECT_CALL(*send_algorithm_, InRecovery()).Times(AnyNumber()); in QuicSentPacketManagerTest() 116 EXPECT_CALL(*send_algorithm_, OnPacketNeutered(_)).Times(AnyNumber()); in QuicSentPacketManagerTest() 159 *send_algorithm_, in ExpectAck() [all …]
|
H A D | quic_sent_packet_manager.cc | 155 send_algorithm_->SetInitialCongestionWindowInPackets(3); in SetFromConfig() 159 send_algorithm_->SetInitialCongestionWindowInPackets(10); in SetFromConfig() 163 send_algorithm_->SetInitialCongestionWindowInPackets(20); in SetFromConfig() 167 send_algorithm_->SetInitialCongestionWindowInPackets(50); in SetFromConfig() 171 send_algorithm_->SetInitialCongestionWindowInPackets(10); in SetFromConfig() 210 send_algorithm_->SetFromConfig(config, perspective); in SetFromConfig() 220 send_algorithm_->GetCongestionControlType(); in SetFromConfig() 244 send_algorithm_->ApplyConnectionOptions(connection_options); in ApplyConnectionOptions() 284 const QuicByteCount old_cwnd = send_algorithm_->GetCongestionWindow(); in AdjustNetworkParameters() 290 send_algorithm_->AdjustNetworkParameters(params); in AdjustNetworkParameters() [all …]
|
H A D | quic_sent_packet_manager.h | 270 return send_algorithm_->BandwidthEstimate(); in BandwidthEstimate() 281 return send_algorithm_->GetCongestionWindow() / kDefaultTCPMSS; in GetCongestionWindowInTcpMss() 290 return send_algorithm_->GetCongestionWindow() / max_packet_length; in EstimateMaxPacketsInFlight() 295 return send_algorithm_->GetCongestionWindow(); in GetCongestionWindowInBytes() 304 return send_algorithm_->PacingRate(GetBytesInFlight()); in GetPacingRate() 311 return send_algorithm_->GetSlowStartThreshold() / kDefaultTCPMSS; in GetSlowStartThresholdInTcpMss() 387 bool InSlowStart() const { return send_algorithm_->InSlowStart(); } in InSlowStart() 394 return send_algorithm_.get(); in GetSendAlgorithm() 399 bool EnableECT0() { return send_algorithm_->EnableECT0(); } in EnableECT0() 400 bool EnableECT1() { return send_algorithm_->EnableECT1(); } in EnableECT1() [all …]
|
/aosp_15_r20/external/cronet/net/quic/ |
H A D | quic_proxy_client_socket_test_base.cc | 121 send_algorithm_ = new quic::test::MockSendAlgorithm(); in InitializeSession() 122 EXPECT_CALL(*send_algorithm_, InRecovery()).WillRepeatedly(Return(false)); in InitializeSession() 123 EXPECT_CALL(*send_algorithm_, InSlowStart()).WillRepeatedly(Return(false)); in InitializeSession() 124 EXPECT_CALL(*send_algorithm_, OnPacketSent(_, _, _, _, _)) in InitializeSession() 126 EXPECT_CALL(*send_algorithm_, GetCongestionWindow()) in InitializeSession() 128 EXPECT_CALL(*send_algorithm_, PacingRate(_)) in InitializeSession() 130 EXPECT_CALL(*send_algorithm_, CanSend(_)).WillRepeatedly(Return(true)); in InitializeSession() 131 EXPECT_CALL(*send_algorithm_, BandwidthEstimate()) in InitializeSession() 133 EXPECT_CALL(*send_algorithm_, SetFromConfig(_, _)).Times(AnyNumber()); in InitializeSession() 134 EXPECT_CALL(*send_algorithm_, OnApplicationLimited(_)).Times(AnyNumber()); in InitializeSession() [all …]
|
H A D | quic_http_stream_test.cc | 364 send_algorithm_ = new quic::test::MockSendAlgorithm(); in Initialize() 365 EXPECT_CALL(*send_algorithm_, InRecovery()).WillRepeatedly(Return(false)); in Initialize() 366 EXPECT_CALL(*send_algorithm_, InSlowStart()).WillRepeatedly(Return(false)); in Initialize() 367 EXPECT_CALL(*send_algorithm_, OnPacketSent(_, _, _, _, _)) in Initialize() 369 EXPECT_CALL(*send_algorithm_, OnCongestionEvent(_, _, _, _, _, _, _)) in Initialize() 371 EXPECT_CALL(*send_algorithm_, GetCongestionWindow()) in Initialize() 373 EXPECT_CALL(*send_algorithm_, PacingRate(_)) in Initialize() 375 EXPECT_CALL(*send_algorithm_, CanSend(_)).WillRepeatedly(Return(true)); in Initialize() 376 EXPECT_CALL(*send_algorithm_, BandwidthEstimate()) in Initialize() 378 EXPECT_CALL(*send_algorithm_, SetFromConfig(_, _)).Times(AnyNumber()); in Initialize() [all …]
|
H A D | quic_proxy_client_socket_test_base.h | 259 raw_ptr<quic::test::MockSendAlgorithm> send_algorithm_; variable
|
/aosp_15_r20/external/cronet/net/third_party/quiche/src/quiche/quic/test_tools/ |
H A D | quic_sent_packet_manager_peer.cc | 28 return sent_packet_manager.send_algorithm_.get(); in GetSendAlgorithm()
|