/external/chromium_org/net/quic/ |
quic_time_test.cc | 13 EXPECT_TRUE(QuicTime::Delta::Zero().IsZero()); 14 EXPECT_FALSE(QuicTime::Delta::Zero().IsInfinite()); 15 EXPECT_FALSE(QuicTime::Delta::FromMilliseconds(1).IsZero()); 19 EXPECT_TRUE(QuicTime::Delta::Infinite().IsInfinite()); 20 EXPECT_FALSE(QuicTime::Delta::Zero().IsInfinite()); 21 EXPECT_FALSE(QuicTime::Delta::FromMilliseconds(1).IsInfinite()); 25 EXPECT_EQ(QuicTime::Delta::FromMilliseconds(1), 26 QuicTime::Delta::FromMicroseconds(1000)); 27 EXPECT_EQ(QuicTime::Delta::FromSeconds(1), 28 QuicTime::Delta::FromMilliseconds(1000)) [all...] |
quic_time.h | 5 // QuicTime represents one point in time, stored in microsecond resolution. 6 // QuicTime is monotonically increasing, even across system clock adjustments. 7 // The epoch (time 0) of QuicTime is unspecified. 22 // A QuicTime is a purely relative time. QuicTime values from different clocks 25 class NET_EXPORT_PRIVATE QuicTime { 27 // A QuicTime::Delta represents the signed difference between two points in 68 friend class QuicTime; 72 explicit QuicTime(base::TimeTicks ticks); 74 // Creates a new QuicTime with an internal value of 0. IsInitialized( [all...] |
quic_time.cc | 14 QuicTime::Delta::Delta(base::TimeDelta delta) 19 QuicTime::Delta QuicTime::Delta::Zero() { 20 return QuicTime::Delta::FromMicroseconds(0); 24 QuicTime::Delta QuicTime::Delta::Infinite() { 25 return QuicTime::Delta::FromMicroseconds(kQuicInfiniteTimeUs); 29 QuicTime::Delta QuicTime::Delta::FromSeconds(int64 seconds) { 30 return QuicTime::Delta(base::TimeDelta::FromSeconds(seconds)) [all...] |
quic_clock.h | 23 // Returns the approximate current time as a QuicTime object. 24 virtual QuicTime ApproximateNow() const; 26 // Returns the current time as a QuicTime object. 28 virtual QuicTime Now() const;
|
quic_alarm_test.cc | 20 MOCK_METHOD0(OnAlarm, QuicTime()); 54 deadline_(QuicTime::Zero().Add(QuicTime::Delta::FromSeconds(7))), 55 deadline2_(QuicTime::Zero().Add(QuicTime::Delta::FromSeconds(14))), 56 new_deadline_(QuicTime::Zero()) { 65 QuicTime deadline_; 66 QuicTime deadline2_; 67 QuicTime new_deadline_; 75 QuicTime deadline = QuicTime::Zero().Add(QuicTime::Delta::FromSeconds(7)) [all...] |
quic_alarm.h | 28 virtual QuicTime OnAlarm() = 0; 37 void Set(QuicTime deadline); 47 QuicTime deadline() const { return deadline_; } 70 QuicTime deadline_;
|
quic_clock.cc | 16 QuicTime QuicClock::ApproximateNow() const { 21 QuicTime QuicClock::Now() const { 22 return QuicTime(base::TimeTicks::Now());
|
/external/chromium_org/net/tools/quic/ |
quic_epoll_clock.cc | 18 QuicTime QuicEpollClock::ApproximateNow() const { 19 return QuicTime::Zero().Add( 20 QuicTime::Delta::FromMicroseconds(epoll_server_->ApproximateNowInUsec())); 23 QuicTime QuicEpollClock::Now() const { 24 return QuicTime::Zero().Add( 25 QuicTime::Delta::FromMicroseconds(epoll_server_->NowInUsec()));
|
quic_epoll_clock.h | 25 // Returns the approximate current time as a QuicTime object. 26 virtual QuicTime ApproximateNow() const OVERRIDE; 28 // Returns the current time as a QuicTime object. 30 virtual QuicTime Now() const OVERRIDE;
|
/external/chromium_org/net/quic/congestion_control/ |
leaky_bucket.h | 27 void SetDrainingRate(QuicTime now, QuicBandwidth draining_rate); 30 void Add(QuicTime now, QuicByteCount bytes); 33 QuicTime::Delta TimeRemaining(QuicTime now); 36 QuicByteCount BytesPending(QuicTime now); 39 void Update(QuicTime now); 42 QuicTime time_last_updated_;
|
available_channel_estimator.h | 36 QuicTime first_send_time, 37 QuicTime first_receive_time); 43 QuicTime sent_time, 44 QuicTime receive_time); 54 const QuicTime first_send_time_; 55 const QuicTime first_receive_time_; 57 QuicTime last_time_sent_; 58 QuicTime last_receive_time_;
|
inter_arrival_sender.h | 32 QuicTime feedback_receive_time); 39 QuicTime feedback_receive_time, 43 QuicTime::Delta rtt) OVERRIDE; 45 QuicTime ack_receive_time) OVERRIDE; 47 QuicTime sent_time, 55 virtual QuicTime::Delta TimeUntilSend( 56 QuicTime now, 61 virtual QuicTime::Delta SmoothedRtt() const OVERRIDE; 62 virtual QuicTime::Delta RetransmissionDelay() const OVERRIDE; 67 void EstimateDelayBandwidth(QuicTime feedback_receive_time [all...] |
paced_sender.h | 25 void UpdateBandwidthEstimate(QuicTime now, QuicBandwidth bandwidth_estimate); 28 void OnPacketSent(QuicTime now, QuicByteCount bytes); 31 QuicTime::Delta TimeUntilSend(QuicTime now, QuicTime::Delta time_until_send);
|
inter_arrival_overuse_detector_test.cc | 24 QuicTime::Delta GaussianRandom(QuicTime::Delta mean, 25 QuicTime::Delta standard_deviation); 28 QuicTime::Delta mean, 29 QuicTime::Delta standard_deviation); 32 QuicTime::Delta mean, 33 QuicTime::Delta standard_deviation, 34 QuicTime::Delta drift_per_burst, 35 QuicTime::Delta *estimated_buffer_delay); 38 QuicTime::Delta mean [all...] |
leaky_bucket.cc | 13 time_last_updated_(QuicTime::Zero()), 17 void LeakyBucket::SetDrainingRate(QuicTime now, QuicBandwidth draining_rate) { 22 void LeakyBucket::Add(QuicTime now, QuicByteCount bytes) { 27 QuicTime::Delta LeakyBucket::TimeRemaining(QuicTime now) { 29 return QuicTime::Delta::FromMicroseconds( 34 QuicByteCount LeakyBucket::BytesPending(QuicTime now) { 39 void LeakyBucket::Update(QuicTime now) { 40 QuicTime::Delta elapsed_time = now.Subtract(time_last_updated_);
|
inter_arrival_overuse_detector.h | 92 QuicTime send_time, 94 QuicTime receive_time); 107 BandwidthUsage GetState(QuicTime::Delta* estimated_congestion_delay); 112 : send_time(QuicTime::Zero()), 113 last_receive_time(QuicTime::Zero()) { 115 QuicTime send_time; 116 QuicTime last_receive_time; 121 void UpdateSendReceiveTimeOffset(QuicTime::Delta offset); 124 void UpdateFilter(QuicTime::Delta received_delta, 125 QuicTime::Delta sent_delta) [all...] |
inter_arrival_state_machine.h | 64 void set_rtt(QuicTime::Delta rtt); 76 QuicTime::Delta smoothed_rtt_; 79 QuicTime last_decrease_event_; 82 QuicTime last_increase_event_; 85 QuicTime last_loss_event_; 88 QuicTime last_delay_event_;
|
pacing_sender.h | 30 QuicTime::Delta alarm_granularity); 38 QuicTime feedback_receive_time, 42 QuicTime::Delta rtt) OVERRIDE; 44 QuicTime ack_receive_time) OVERRIDE; 45 virtual bool OnPacketSent(QuicTime sent_time, 53 virtual QuicTime::Delta TimeUntilSend( 54 QuicTime now, 59 virtual QuicTime::Delta SmoothedRtt() const OVERRIDE; 60 virtual QuicTime::Delta RetransmissionDelay() const OVERRIDE; 64 QuicTime::Delta GetTransferTime(QuicByteCount bytes) [all...] |
channel_estimator_test.cc | 32 QuicTime::Delta delta = QuicTime::Delta::FromMilliseconds(10); 35 QuicTime send_time = send_clock_.ApproximateNow(); 36 QuicTime receive_time = receive_clock_.ApproximateNow(); 55 QuicTime::Delta received_delta = QuicTime::Delta::FromMilliseconds(5); 56 QuicTime::Delta send_delta = QuicTime::Delta::FromMilliseconds(10); 60 QuicTime receive_time = receive_clock_.ApproximateNow(); 61 QuicTime send_time = send_clock_.ApproximateNow() [all...] |
available_channel_estimator_test.cc | 20 QuicTime receive_time = receive_clock_.Now(); 21 QuicTime sent_time = send_clock_.Now(); 36 QuicTime::Delta received_delta = QuicTime::Delta::FromMilliseconds(10); 37 QuicTime::Delta send_delta = QuicTime::Delta::FromMilliseconds(1); 40 QuicTime receive_time = receive_clock_.Now(); 41 QuicTime sent_time = send_clock_.Now(); 67 QuicTime::Delta received_delta = QuicTime::Delta::FromMilliseconds(10) [all...] |
channel_estimator.h | 40 QuicTime send_time, 41 QuicTime receive_time); 48 void UpdateFilter(QuicTime::Delta received_delta, QuicByteCount size_delta, 52 QuicTime last_send_time_; 53 QuicTime last_receive_time_;
|
cubic.h | 40 QuicTime::Delta delay_min); 48 static const QuicTime::Delta MaxCubicTimeInterval() { 49 return QuicTime::Delta::FromMilliseconds(30); 55 QuicTime epoch_; 58 QuicTime last_update_time_;
|
hybrid_slow_start.h | 42 void Update(QuicTime::Delta rtt, QuicTime::Delta delay_min); 54 QuicTime round_start_; // Beginning of each slow start round. 56 QuicTime last_time_; // Last time when the ACK spacing was close. 58 QuicTime::Delta current_rtt_; // The minimum rtt of current round.
|
/external/chromium_org/net/quic/test_tools/ |
mock_clock.h | 22 void AdvanceTime(QuicTime::Delta delta); 24 virtual QuicTime Now() const OVERRIDE; 26 virtual QuicTime ApproximateNow() const OVERRIDE; 33 QuicTime now_;
|
mock_clock.cc | 9 MockClock::MockClock() : now_(QuicTime::Zero()) { 15 void MockClock::AdvanceTime(QuicTime::Delta delta) { 19 QuicTime MockClock::Now() const { 23 QuicTime MockClock::ApproximateNow() const { 29 now_.Subtract(QuicTime::Zero()).ToSeconds()); 35 now_.Subtract(QuicTime::Zero()).ToMicroseconds());
|