Home
last modified time | relevance | path

Searched refs:QuicBandwidth (Results 1 – 25 of 58) sorted by relevance

123

/external/cronet/net/third_party/quiche/src/quiche/quic/core/
Dquic_bandwidth_test.cc18 EXPECT_EQ(QuicBandwidth::FromKBitsPerSecond(1), in TEST_F()
19 QuicBandwidth::FromBitsPerSecond(1000)); in TEST_F()
20 EXPECT_EQ(QuicBandwidth::FromKBytesPerSecond(1), in TEST_F()
21 QuicBandwidth::FromBytesPerSecond(1000)); in TEST_F()
22 EXPECT_EQ(QuicBandwidth::FromBitsPerSecond(8000), in TEST_F()
23 QuicBandwidth::FromBytesPerSecond(1000)); in TEST_F()
24 EXPECT_EQ(QuicBandwidth::FromKBitsPerSecond(8), in TEST_F()
25 QuicBandwidth::FromKBytesPerSecond(1)); in TEST_F()
27 EXPECT_EQ(0, QuicBandwidth::Zero().ToBitsPerSecond()); in TEST_F()
28 EXPECT_EQ(0, QuicBandwidth::Zero().ToKBitsPerSecond()); in TEST_F()
[all …]
Dquic_bandwidth.h24 class QUIC_EXPORT_PRIVATE QuicBandwidth {
27 static constexpr QuicBandwidth Zero() { return QuicBandwidth(0); } in Zero()
30 static constexpr QuicBandwidth Infinite() { in Infinite()
31 return QuicBandwidth(std::numeric_limits<int64_t>::max()); in Infinite()
35 static constexpr QuicBandwidth FromBitsPerSecond(int64_t bits_per_second) { in FromBitsPerSecond()
36 return QuicBandwidth(bits_per_second); in FromBitsPerSecond()
40 static constexpr QuicBandwidth FromKBitsPerSecond(int64_t k_bits_per_second) { in FromKBitsPerSecond()
41 return QuicBandwidth(k_bits_per_second * 1000); in FromKBitsPerSecond()
45 static constexpr QuicBandwidth FromBytesPerSecond(int64_t bytes_per_second) { in FromBytesPerSecond()
46 return QuicBandwidth(bytes_per_second * 8); in FromBytesPerSecond()
[all …]
Dquic_sustained_bandwidth_recorder_test.cc25 QuicBandwidth bandwidth = in TEST_F()
26 QuicBandwidth::FromBitsPerSecond(kBandwidthBitsPerSecond); in TEST_F()
54 QuicBandwidth second_bandwidth = in TEST_F()
55 QuicBandwidth::FromBitsPerSecond(2 * kBandwidthBitsPerSecond); in TEST_F()
76 QuicBandwidth third_bandwidth = in TEST_F()
77 QuicBandwidth::FromBitsPerSecond(0.5 * kBandwidthBitsPerSecond); in TEST_F()
105 QuicBandwidth bandwidth = in TEST_F()
106 QuicBandwidth::FromBitsPerSecond(kBandwidthBitsPerSecond); in TEST_F()
Dquic_sustained_bandwidth_recorder.h38 QuicBandwidth bandwidth, QuicTime estimate_time,
43 QuicBandwidth BandwidthEstimate() const { in BandwidthEstimate()
48 QuicBandwidth MaxBandwidthEstimate() const { in MaxBandwidthEstimate()
78 QuicBandwidth bandwidth_estimate_;
81 QuicBandwidth max_bandwidth_estimate_;
Dquic_sustained_bandwidth_recorder.cc17 bandwidth_estimate_(QuicBandwidth::Zero()), in QuicSustainedBandwidthRecorder()
18 max_bandwidth_estimate_(QuicBandwidth::Zero()), in QuicSustainedBandwidthRecorder()
23 bool in_recovery, bool in_slow_start, QuicBandwidth bandwidth, in RecordEstimate()
/external/cronet/net/third_party/quiche/src/quiche/quic/core/congestion_control/
Dwindowed_filter_test.cc23 QuicBandwidth::Zero(), QuicTime::Zero()) {} in WindowedFilterTest()
56 QuicBandwidth bw_sample = QuicBandwidth::FromBitsPerSecond(1000); in InitializeMaxFilter()
65 bw_sample = bw_sample - QuicBandwidth::FromBitsPerSecond(100); in InitializeMaxFilter()
67 EXPECT_EQ(QuicBandwidth::FromBitsPerSecond(900), in InitializeMaxFilter()
69 EXPECT_EQ(QuicBandwidth::FromBitsPerSecond(700), in InitializeMaxFilter()
71 EXPECT_EQ(QuicBandwidth::FromBitsPerSecond(600), in InitializeMaxFilter()
79 WindowedFilter<QuicBandwidth, MaxFilter<QuicBandwidth>, QuicTime,
100 EXPECT_EQ(QuicBandwidth::Zero(), windowed_max_bw_.GetBest()); in TEST_F()
101 EXPECT_EQ(QuicBandwidth::Zero(), windowed_max_bw_.GetSecondBest()); in TEST_F()
102 EXPECT_EQ(QuicBandwidth::Zero(), windowed_max_bw_.GetThirdBest()); in TEST_F()
[all …]
Dbandwidth_sampler_test.cc55 max_bandwidth_(QuicBandwidth::Zero()), in BandwidthSamplerTest()
56 est_bandwidth_upper_bound_(QuicBandwidth::Infinite()), in BandwidthSamplerTest()
69 QuicBandwidth max_bandwidth_; // Max observed bandwidth from acks.
70 QuicBandwidth est_bandwidth_upper_bound_;
120 QuicBandwidth AckPacket(uint64_t packet_number) { in AckPacket()
158 EXPECT_EQ(sample.sample_max_bandwidth, QuicBandwidth::Zero()); in LosePacket()
191 QuicBandwidth expected_bandwidth = in TEST_P()
192 QuicBandwidth::FromBytesPerSecond(kRegularPacketSize * 100); in TEST_P()
198 QuicBandwidth current_sample = AckPacket(i); in TEST_P()
209 QuicBandwidth current_sample = AckPacket(i); in TEST_P()
[all …]
Dbbr2_misc.h271 void Update(QuicBandwidth sample) { in Update()
281 max_bandwidth_[1] = QuicBandwidth::Zero(); in Advance()
284 QuicBandwidth Get() const { in Get()
289 QuicBandwidth max_bandwidth_[2] = {QuicBandwidth::Zero(),
290 QuicBandwidth::Zero()};
326 QuicBandwidth sample_max_bandwidth = QuicBandwidth::Zero();
372 QuicByteCount BDP(QuicBandwidth bandwidth) const { in BDP()
376 QuicByteCount BDP(QuicBandwidth bandwidth, float gain) const { in BDP()
390 QuicBandwidth MaxBandwidth() const { return max_bandwidth_filter_.Get(); } in MaxBandwidth()
439 QuicBandwidth BandwidthEstimate() const { in BandwidthEstimate()
[all …]
Dbbr2_sender.h74 QuicBandwidth PacingRate(QuicByteCount bytes_in_flight) const override;
76 QuicBandwidth BandwidthEstimate() const override { in BandwidthEstimate()
120 QuicBandwidth bandwidth_hi = QuicBandwidth::Zero();
121 QuicBandwidth bandwidth_lo = QuicBandwidth::Zero();
122 QuicBandwidth bandwidth_est = QuicBandwidth::Zero();
129 QuicBandwidth pacing_rate = QuicBandwidth::Zero();
193 QuicBandwidth pacing_rate_;
Dbbr2_simulator_test.cc57 : bandwidth(QuicBandwidth::FromKBitsPerSecond(kilo_bits_per_sec)), in LinkParams()
59 QuicBandwidth bandwidth;
67 QuicBandwidth target_bandwidth = QuicBandwidth::Zero();
95 QuicBandwidth BottleneckBandwidth() const { in BottleneckBandwidth()
365 QuicBandwidth max_bw(QuicBandwidth::Zero()); in TEST_F()
395 QuicBandwidth max_bw(QuicBandwidth::Zero()); in TEST_F()
426 QuicBandwidth max_bw(QuicBandwidth::Zero()); in TEST_F()
457 QuicBandwidth max_bw(QuicBandwidth::Zero()); in TEST_F()
495 QuicBandwidth expected_pacing_rate = QuicBandwidth::FromBytesAndTimeDelta( in TEST_F()
759 params.local_link.bandwidth = QuicBandwidth::FromKBitsPerSecond(15000); in TEST_F()
[all …]
Dsend_algorithm_test.cc54 const QuicBandwidth kLocalLinkBandwidth =
55 QuicBandwidth::FromKBitsPerSecond(10000);
61 const QuicBandwidth kTestLinkWiredBandwidth =
62 QuicBandwidth::FromKBitsPerSecond(4000);
78 const QuicBandwidth kTestLinkLowBdpBandwidth =
79 QuicBandwidth::FromKBitsPerSecond(200);
93 const QuicBandwidth kTestLink2GBandwidth =
94 QuicBandwidth::FromKBitsPerSecond(100);
95 const QuicBandwidth kTestLink3GBandwidth =
96 QuicBandwidth::FromKBitsPerSecond(1500);
[all …]
Dbandwidth_sampler.h100 QuicBandwidth bandwidth = QuicBandwidth::Zero();
108 QuicBandwidth send_rate = QuicBandwidth::Infinite();
125 QuicByteCount Update(QuicBandwidth bandwidth_estimate,
205 QuicBandwidth sample_max_bandwidth = QuicBandwidth::Zero();
231 const LostPacketVector& lost_packets, QuicBandwidth max_bandwidth,
232 QuicBandwidth est_bandwidth_upper_bound,
352 const LostPacketVector& lost_packets, QuicBandwidth max_bandwidth,
353 QuicBandwidth est_bandwidth_upper_bound,
355 QuicByteCount OnAckEventEnd(QuicBandwidth bandwidth_estimate,
Dbbr_sender.h72 QuicBandwidth max_bandwidth;
78 QuicBandwidth bandwidth_at_last_round;
124 QuicBandwidth PacingRate(QuicByteCount bytes_in_flight) const override;
125 QuicBandwidth BandwidthEstimate() const override;
180 WindowedFilter<QuicBandwidth, MaxFilter<QuicBandwidth>,
300 QuicBandwidth pacing_rate_;
324 QuicBandwidth bandwidth_at_last_round_;
Dsend_algorithm_interface.h37 NetworkParams(const QuicBandwidth& bandwidth, const QuicTime::Delta& rtt, in NetworkParams()
51 QuicBandwidth bandwidth = QuicBandwidth::Zero();
118 virtual QuicBandwidth PacingRate(QuicByteCount bytes_in_flight) const = 0;
122 virtual QuicBandwidth BandwidthEstimate() const = 0;
Dbbr_sender_test.cc70 const QuicBandwidth kTestLinkBandwidth =
71 QuicBandwidth::FromKBitsPerSecond(4000);
72 const QuicBandwidth kLocalLinkBandwidth =
73 QuicBandwidth::FromKBitsPerSecond(10000);
301 QuicBandwidth expected_pacing_rate = QuicBandwidth::FromBytesAndTimeDelta( in TEST_F()
333 QuicBandwidth expected_pacing_rate = QuicBandwidth::FromBytesAndTimeDelta( in TEST_F()
775 QuicBandwidth target_bandwidth = 0.1f * kTestLinkBandwidth; in TEST_F()
806 QuicBandwidth initial_rate = QuicBandwidth::FromBytesAndTimeDelta( in TEST_F()
840 QuicBandwidth max_bw(QuicBandwidth::Zero()); in TEST_F()
868 QuicBandwidth max_bw(QuicBandwidth::Zero()); in TEST_F()
[all …]
Dbbr2_startup.h49 QuicBandwidth full_bandwidth_baseline = QuicBandwidth::Zero();
60 QuicBandwidth max_bw_at_round_beginning_ = QuicBandwidth::Zero();
Dpacing_sender_test.cc55 void InitPacingRate(QuicPacketCount burst_size, QuicBandwidth bandwidth) { in InitPacingRate()
165 0, QuicBandwidth::FromBytesAndTimeDelta( in TEST_F()
221 10, QuicBandwidth::FromBytesAndTimeDelta( in TEST_F()
258 10, QuicBandwidth::FromBytesAndTimeDelta( in TEST_F()
293 InitPacingRate(10, QuicBandwidth::FromBytesAndTimeDelta( in TEST_F()
332 0, QuicBandwidth::FromBytesAndTimeDelta( in TEST_F()
361 0, QuicBandwidth::FromBytesAndTimeDelta( in TEST_F()
375 0, QuicBandwidth::FromBytesAndTimeDelta( in TEST_F()
408 10, QuicBandwidth::FromBytesAndTimeDelta( in TEST_F()
467 QuicBandwidth::FromBytesAndTimeDelta(kMaxOutgoingPacketSize, in TEST_F()
[all …]
Dpacing_sender.h43 void set_max_pacing_rate(QuicBandwidth max_pacing_rate) { in set_max_pacing_rate()
51 QuicBandwidth max_pacing_rate() const { return max_pacing_rate_; } in max_pacing_rate()
73 QuicBandwidth PacingRate(QuicByteCount bytes_in_flight) const;
91 QuicBandwidth max_pacing_rate_;
Dbandwidth_sampler.cc27 QuicBandwidth bandwidth_estimate, bool is_new_max_bandwidth, in Update()
280 QuicBandwidth max_bandwidth, in OnCongestionEvent()
281 QuicBandwidth est_bandwidth_upper_bound, in OnCongestionEvent()
302 QuicBandwidth max_send_rate = QuicBandwidth::Zero(); in OnCongestionEvent()
358 QuicBandwidth bandwidth_estimate, bool is_new_max_bandwidth, in OnAckEventEnd()
430 QuicBandwidth send_rate = QuicBandwidth::Infinite(); in OnPacketAcknowledgedInner()
432 send_rate = QuicBandwidth::FromBytesAndTimeDelta( in OnPacketAcknowledgedInner()
470 QuicBandwidth ack_rate = QuicBandwidth::FromBytesAndTimeDelta( in OnPacketAcknowledgedInner()
Dbbr_sender.cc86 max_bandwidth_(kBandwidthWindowSize, QuicBandwidth::Zero(), 0), in BbrSender()
97 pacing_rate_(QuicBandwidth::Zero()), in BbrSender()
107 bandwidth_at_last_round_(QuicBandwidth::Zero()), in BbrSender()
177 QuicBandwidth BbrSender::PacingRate(QuicByteCount /*bytes_in_flight*/) const { in PacingRate()
179 return high_gain_ * QuicBandwidth::FromBytesAndTimeDelta( in PacingRate()
185 QuicBandwidth BbrSender::BandwidthEstimate() const { in BandwidthEstimate()
273 const QuicBandwidth& bandwidth = params.bandwidth; in AdjustNetworkParameters()
319 QuicBandwidth new_pacing_rate = in AdjustNetworkParameters()
320 QuicBandwidth::FromBytesAndTimeDelta(congestion_window_, GetMinRtt()); in AdjustNetworkParameters()
356 QuicBandwidth::Infinite(), round_trip_count_); in OnCongestionEvent()
[all …]
Dtcp_cubic_sender_bytes.cc167 QuicBandwidth TcpCubicSenderBytes::PacingRate( in PacingRate()
173 const QuicBandwidth bandwidth = in PacingRate()
174 QuicBandwidth::FromBytesAndTimeDelta(GetCongestionWindow(), srtt); in PacingRate()
178 QuicBandwidth TcpCubicSenderBytes::BandwidthEstimate() const { in BandwidthEstimate()
182 return QuicBandwidth::Zero(); in BandwidthEstimate()
184 return QuicBandwidth::FromBytesAndTimeDelta(GetCongestionWindow(), srtt); in BandwidthEstimate()
223 QuicBandwidth bandwidth, QuicTime::Delta rtt) { in SetCongestionWindowFromBandwidthAndRtt()
/external/cronet/net/third_party/quiche/src/quiche/quic/test_tools/simulator/
Dlink.h25 UnconstrainedPortInterface* sink, QuicBandwidth bandwidth,
35 QuicBandwidth bandwidth() const { return bandwidth_; } in bandwidth()
36 void set_bandwidth(QuicBandwidth new_bandwidth) { in set_bandwidth()
64 QuicBandwidth bandwidth_;
76 UnconstrainedPortInterface* sink_b, QuicBandwidth bandwidth,
79 QuicBandwidth bandwidth, QuicTime::Delta propagation_delay);
83 QuicBandwidth bandwidth() { return a_to_b_link_.bandwidth(); } in bandwidth()
84 void set_bandwidth(QuicBandwidth new_bandwidth) { in set_bandwidth()
Dsimulator_test.cc174 QuicBandwidth::FromKBytesPerSecond(1000), in TEST_F()
224 const QuicBandwidth observed_bandwidth = QuicBandwidth::FromBytesAndTimeDelta( in TEST_F()
291 const QuicBandwidth local_bandwidth = in TEST_F()
292 QuicBandwidth::FromKBytesPerSecond(1000); in TEST_F()
293 const QuicBandwidth bottleneck_bandwidth = 0.1f * local_bandwidth; in TEST_F()
327 const QuicBandwidth local_bandwidth = in TEST_F()
328 QuicBandwidth::FromKBytesPerSecond(1000); in TEST_F()
329 const QuicBandwidth bottleneck_bandwidth = 0.1f * local_bandwidth; in TEST_F()
363 const QuicBandwidth bandwidth = QuicBandwidth::FromBytesPerSecond(10000); in TEST_F()
390 const QuicBandwidth observed_bandwidth = QuicBandwidth::FromBytesAndTimeDelta( in TEST_F()
[all …]
Dtest_harness.h36 static constexpr QuicBandwidth kClientBandwidth =
37 QuicBandwidth::FromKBitsPerSecond(10000);
40 static constexpr QuicBandwidth kServerBandwidth =
41 QuicBandwidth::FromKBitsPerSecond(4000);
/external/cronet/net/third_party/quiche/src/quiche/quic/test_tools/
Dquic_test_utils_test.cc42 TEST_F(QuicTestUtilsTest, QuicBandwidth) { in TEST_F() argument
43 EXPECT_APPROX_EQ(QuicBandwidth::FromBytesPerSecond(1000), in TEST_F()
44 QuicBandwidth::FromBitsPerSecond(8005), 0.01f); in TEST_F()
46 EXPECT_APPROX_EQ(QuicBandwidth::FromBytesPerSecond(1000), in TEST_F()
47 QuicBandwidth::FromBitsPerSecond(9005), 0.01f), in TEST_F()

123