Searched refs:QuicBandwidth (Results 1 - 25 of 31) sorted by relevance

12

/external/chromium_org/net/quic/
H A Dquic_bandwidth.cc12 // Highest number that QuicBandwidth can hold.
16 QuicBandwidth QuicBandwidth::Zero() {
17 return QuicBandwidth(0);
21 QuicBandwidth QuicBandwidth::FromBitsPerSecond(int64 bits_per_second) {
22 return QuicBandwidth(bits_per_second);
26 QuicBandwidth QuicBandwidth::FromKBitsPerSecond(int64 k_bits_per_second) {
28 return QuicBandwidth(k_bits_per_secon
[all...]
H A Dquic_bandwidth.h5 // QuicBandwidth represents a bandwidth, stored in bits per second resolution.
17 class NET_EXPORT_PRIVATE QuicBandwidth { class in namespace:net
19 // Creates a new QuicBandwidth with an internal value of 0.
20 static QuicBandwidth Zero();
22 // Create a new QuicBandwidth holding the bits per second.
23 static QuicBandwidth FromBitsPerSecond(int64 bits_per_second);
25 // Create a new QuicBandwidth holding the kilo bits per second.
26 static QuicBandwidth FromKBitsPerSecond(int64 k_bits_per_second);
28 // Create a new QuicBandwidth holding the bytes per second.
29 static QuicBandwidth FromBytesPerSecon
[all...]
H A Dquic_bandwidth_test.cc15 EXPECT_EQ(QuicBandwidth::FromKBitsPerSecond(1),
16 QuicBandwidth::FromBitsPerSecond(1000));
17 EXPECT_EQ(QuicBandwidth::FromKBytesPerSecond(1),
18 QuicBandwidth::FromBytesPerSecond(1000));
19 EXPECT_EQ(QuicBandwidth::FromBitsPerSecond(8000),
20 QuicBandwidth::FromBytesPerSecond(1000));
21 EXPECT_EQ(QuicBandwidth::FromKBitsPerSecond(8),
22 QuicBandwidth::FromKBytesPerSecond(1));
24 EXPECT_EQ(0, QuicBandwidth::Zero().ToBitsPerSecond());
25 EXPECT_EQ(0, QuicBandwidth
[all...]
H A Dquic_sustained_bandwidth_recorder.h32 QuicBandwidth bandwidth,
41 QuicBandwidth BandwidthEstimate() const {
46 QuicBandwidth MaxBandwidthEstimate() const {
76 QuicBandwidth bandwidth_estimate_;
79 QuicBandwidth max_bandwidth_estimate_;
H A Dquic_sustained_bandwidth_recorder.cc17 bandwidth_estimate_(QuicBandwidth::Zero()),
18 max_bandwidth_estimate_(QuicBandwidth::Zero()),
24 QuicBandwidth bandwidth,
H A Dquic_sustained_bandwidth_recorder_test.cc23 QuicBandwidth bandwidth =
24 QuicBandwidth::FromBitsPerSecond(kBandwidthBitsPerSecond);
52 QuicBandwidth second_bandwidth =
53 QuicBandwidth::FromBitsPerSecond(2 * kBandwidthBitsPerSecond);
74 QuicBandwidth third_bandwidth =
75 QuicBandwidth::FromBitsPerSecond(0.5 * kBandwidthBitsPerSecond);
103 QuicBandwidth bandwidth =
104 QuicBandwidth::FromBitsPerSecond(kBandwidthBitsPerSecond);
H A Dquic_server_session.cc22 bandwidth_estimate_sent_to_client_(QuicBandwidth::Zero()),
93 QuicBandwidth new_bandwidth_estimate = bandwidth_recorder.BandwidthEstimate();
113 QuicBandwidth max_bandwidth_estimate =
H A Dquic_server_session.h95 QuicBandwidth bandwidth_estimate_sent_to_client_;
H A Dquic_sent_packet_manager.h200 QuicBandwidth BandwidthEstimate() const;
/external/chromium_org/net/quic/test_tools/
H A Dquic_sustained_bandwidth_recorder_peer.cc19 QuicBandwidth::FromKBytesPerSecond(bandwidth_estimate_kbytes_per_second);
28 QuicBandwidth::FromKBytesPerSecond(
/external/chromium_org/net/quic/congestion_control/
H A Dleaky_bucket.h23 explicit LeakyBucket(QuicBandwidth draining_rate);
26 void SetDrainingRate(QuicTime now, QuicBandwidth draining_rate);
42 QuicBandwidth draining_rate_;
H A Dleaky_bucket.cc11 LeakyBucket::LeakyBucket(QuicBandwidth draining_rate)
17 void LeakyBucket::SetDrainingRate(QuicTime now, QuicBandwidth draining_rate) {
H A Dleaky_bucket_test.cc17 leaky_bucket_.reset(new LeakyBucket(QuicBandwidth::Zero()));
24 QuicBandwidth draining_rate = QuicBandwidth::FromBytesPerSecond(200000);
57 QuicBandwidth draining_rate = QuicBandwidth::FromBytesPerSecond(200000);
H A Dsend_algorithm_simulator.h70 QuicBandwidth last_transfer_bandwidth;
118 QuicBandwidth bandwidth,
122 void set_bandwidth(QuicBandwidth bandwidth) {
221 QuicBandwidth bandwidth_;
H A Dpacing_sender.h57 virtual QuicBandwidth BandwidthEstimate() const OVERRIDE;
H A Dsend_algorithm_interface.h83 virtual QuicBandwidth BandwidthEstimate() const = 0;
H A Dpacing_sender_test.cc142 .WillRepeatedly(Return(QuicBandwidth::FromBytesAndTimeDelta(
217 .WillRepeatedly(Return(QuicBandwidth::FromBytesAndTimeDelta(
290 .WillRepeatedly(Return(QuicBandwidth::FromBytesAndTimeDelta(
H A Dtcp_cubic_sender.h60 virtual QuicBandwidth BandwidthEstimate() const OVERRIDE;
H A Dtcp_cubic_sender.cc201 QuicBandwidth TcpCubicSender::BandwidthEstimate() const {
202 return QuicBandwidth::FromBytesAndTimeDelta(GetCongestionWindow(),
H A Dsend_algorithm_simulator.cc38 last_transfer_bandwidth(QuicBandwidth::Zero()),
43 QuicBandwidth bandwidth,
312 QuicBandwidth::FromBytesAndTimeDelta(transfer->num_bytes,
H A Dpacing_sender.cc153 QuicBandwidth PacingSender::BandwidthEstimate() const {
/external/chromium_org/net/tools/quic/
H A Dquic_server_session.cc22 bandwidth_estimate_sent_to_client_(QuicBandwidth::Zero()),
93 QuicBandwidth new_bandwidth_estimate = bandwidth_recorder.BandwidthEstimate();
113 QuicBandwidth max_bandwidth_estimate =
H A Dquic_server_session.h96 QuicBandwidth bandwidth_estimate_sent_to_client_;
/external/chromium_org/net/tools/quic/test_tools/
H A Dpacket_dropping_test_writer.h100 void set_max_bandwidth_and_buffer_size(QuicBandwidth fake_bandwidth,
149 QuicBandwidth fake_bandwidth_;
H A Dpacket_dropping_test_writer.cc56 fake_bandwidth_(QuicBandwidth::Zero()),

Completed in 234 milliseconds

12