/external/chromium_org/net/quic/congestion_control/ |
leaky_bucket_test.cc | 19 MockClock clock_; member in class:net::test::LeakyBucketTest 25 leaky_bucket_->SetDrainingRate(clock_.Now(), draining_rate); 26 leaky_bucket_->Add(clock_.Now(), 2000); 27 EXPECT_EQ(2000u, leaky_bucket_->BytesPending(clock_.Now())); 29 leaky_bucket_->TimeRemaining(clock_.Now())); 30 clock_.AdvanceTime(QuicTime::Delta::FromMilliseconds(5)); 31 EXPECT_EQ(1000u, leaky_bucket_->BytesPending(clock_.Now())); 33 leaky_bucket_->TimeRemaining(clock_.Now())); 34 clock_.AdvanceTime(QuicTime::Delta::FromMilliseconds(5)); 35 EXPECT_EQ(0u, leaky_bucket_->BytesPending(clock_.Now())) [all...] |
paced_sender_test.cc | 27 MockClock clock_; member in class:net::test::PacedSenderTest 32 paced_sender_->UpdateBandwidthEstimate(clock_.Now(), 34 EXPECT_TRUE(paced_sender_->TimeUntilSend(clock_.Now(), zero_time_).IsZero()); 35 paced_sender_->SentPacket(clock_.Now(), kMaxPacketSize); 36 EXPECT_TRUE(paced_sender_->TimeUntilSend(clock_.Now(), zero_time_).IsZero()); 37 paced_sender_->SentPacket(clock_.Now(), kMaxPacketSize); 40 clock_.Now(), zero_time_).ToMicroseconds()); 41 clock_.AdvanceTime(QuicTime::Delta::FromMilliseconds(24)); 42 EXPECT_TRUE(paced_sender_->TimeUntilSend(clock_.Now(), zero_time_).IsZero()); 46 paced_sender_->UpdateBandwidthEstimate(clock_.Now() [all...] |
quic_congestion_control_test.cc | 31 : start_(clock_.ApproximateNow()) { 35 manager_.reset(new QuicCongestionManagerPeer(&clock_, congestion_type)); 38 MockClock clock_; member in class:net::test::QuicCongestionControlTest 49 clock_.Now()); 50 EXPECT_TRUE(manager_->TimeUntilSend(clock_.Now(), 52 manager_->SentPacket(1, clock_.Now(), kMaxPacketSize, NOT_RETRANSMISSION); 54 manager_->TimeUntilSend(clock_.Now(), 56 clock_.AdvanceTime(QuicTime::Delta::FromMilliseconds(35)); 58 manager_->TimeUntilSend(clock_.Now(), 60 clock_.AdvanceTime(QuicTime::Delta::FromMilliseconds(5)) [all...] |
fix_rate_test.cc | 33 sender_(new FixRateSender(&clock_)), 35 start_(clock_.Now()) { 37 clock_.AdvanceTime(QuicTime::Delta::FromMilliseconds(2)); 40 MockClock clock_; member in class:net::test::FixRateTest 61 sender_->OnIncomingQuicCongestionFeedbackFrame(feedback, clock_.Now(), 64 EXPECT_TRUE(sender_->TimeUntilSend(clock_.Now(), 66 sender_->SentPacket(clock_.Now(), 1, kMaxPacketSize, NOT_RETRANSMISSION); 67 EXPECT_TRUE(sender_->TimeUntilSend(clock_.Now(), 69 sender_->SentPacket(clock_.Now(), 2, kMaxPacketSize, NOT_RETRANSMISSION); 70 sender_->SentPacket(clock_.Now(), 3, 600, NOT_RETRANSMISSION) [all...] |
inter_arrival_state_machine_test.cc | 21 state_machine_.reset(new InterArrivalStateMachine(&clock_)); 24 MockClock clock_; member in class:net::test::InterArrivalStateMachineTest 33 clock_.AdvanceTime(rtt); 40 clock_.AdvanceTime(rtt); 47 clock_.AdvanceTime(rtt); 53 clock_.AdvanceTime(rtt); 65 clock_.AdvanceTime(rtt); 72 clock_.AdvanceTime(rtt); 78 clock_.AdvanceTime(rtt); 85 clock_.AdvanceTime(rtt) [all...] |
quic_congestion_manager_test.cc | 42 manager_.reset(new QuicCongestionManagerPeer(&clock_, congestion_type)); 47 MockClock clock_; member in class:net::test::QuicCongestionManagerTest 54 manager_->OnIncomingAckFrame(ack, clock_.Now()); 59 manager_->OnIncomingQuicCongestionFeedbackFrame(feedback, clock_.Now()); 63 clock_.Now(), NOT_RETRANSMISSION, kIgnored, NOT_HANDSHAKE); 64 clock_.AdvanceTime(advance_time); 66 clock_.Now(), NOT_RETRANSMISSION, kIgnored, NOT_HANDSHAKE).IsZero()); 67 manager_->SentPacket(i, clock_.Now(), 1000, NOT_RETRANSMISSION); 70 manager_->OnIncomingAckFrame(ack, clock_.Now()); 76 clock_.Now()).ToKBytesPerSecond() [all...] |
inter_arrival_bitrate_ramp_up_test.cc | 19 bitrate_ramp_up_(&clock_) { 22 clock_.AdvanceTime(one_ms_); 26 MockClock clock_; member in class:net::test::InterArrivalBitrateRampUpTest 44 clock_.AdvanceTime(hundred_ms_); 49 clock_.AdvanceTime(hundred_ms_); 55 clock_.AdvanceTime(hundred_ms_); 60 clock_.AdvanceTime(hundred_ms_); 66 clock_.AdvanceTime(hundred_ms_); 71 clock_.AdvanceTime(hundred_ms_); 77 clock_.AdvanceTime(hundred_ms_) [all...] |
inter_arrival_receiver_test.cc | 16 MockClock clock_; member in class:net::test::InterArrivalReceiverTest 20 QuicTime start = clock_.ApproximateNow(); 22 clock_.AdvanceTime(received_delta); 23 QuicTime receive_timestamp = clock_.ApproximateNow(); 29 clock_.AdvanceTime(received_delta); 30 receive_timestamp = clock_.ApproximateNow(); 33 clock_.AdvanceTime(received_delta); 34 receive_timestamp = clock_.ApproximateNow();
|
tcp_cubic_sender_test.cc | 34 sender_(new TcpCubicSenderPeer(&clock_, true)), 44 sender_->SentPacket(clock_.Now(), sequence_number_++, bytes_in_packet, 48 EXPECT_TRUE(sender_->TimeUntilSend(clock_.Now(), NOT_RETRANSMISSION, 59 clock_.AdvanceTime(one_ms_); // 1 millisecond. 64 MockClock clock_; member in class:net::test::TcpCubicSenderTest 78 EXPECT_TRUE(sender_->TimeUntilSend(clock_.Now(), 82 sender_->OnIncomingQuicCongestionFeedbackFrame(feedback, clock_.Now(), 85 EXPECT_TRUE(sender_->TimeUntilSend(clock_.Now(), 91 EXPECT_TRUE(sender_->TimeUntilSend(clock_.Now(), 99 EXPECT_TRUE(sender_->TimeUntilSend(clock_.Now() [all...] |
cubic_test.cc | 30 cubic_.reset(new CubicPeer(&clock_)); 34 MockClock clock_; member in class:net::test::CubicTest 72 clock_.AdvanceTime(one_ms_); 83 clock_.AdvanceTime(hundred_ms_); 95 clock_.AdvanceTime(hundred_ms_); 109 clock_.AdvanceTime(one_ms_); 126 clock_.AdvanceTime(one_ms_); 142 clock_.AdvanceTime(hundred_ms_);
|
hybrid_slow_start_test.cc | 21 slowStart_.reset(new HybridSlowStart(&clock_)); 25 MockClock clock_; member in class:net::test::HybridSlowStartTest 63 clock_.AdvanceTime(one_ms_); 72 clock_.AdvanceTime(one_ms_); 76 clock_.AdvanceTime(one_ms_);
|
inter_arrival_state_machine.cc | 23 : clock_(clock), 43 QuicTime current_time = clock_->ApproximateNow(); 81 QuicTime current_time = clock_->ApproximateNow(); 132 QuicTime current_time = clock_->ApproximateNow(); 148 QuicTime current_time = clock_->ApproximateNow();
|
/external/chromium_org/media/base/ |
clock_unittest.cc | 33 ClockTest() : clock_(&test_tick_clock_) { 41 clock_.SetDuration(kDuration); 42 EXPECT_EQ(kDuration, clock_.Duration()); 50 Clock clock_; member in class:media::ClockTest 56 EXPECT_EQ(kExpected, clock_.Elapsed()); 63 EXPECT_EQ(kZero, clock_.Play()); 65 EXPECT_EQ(kTimeToAdvance, clock_.Elapsed()); 72 clock_.SetPlaybackRate(2.0f); 73 EXPECT_EQ(kZero, clock_.Play()); 75 EXPECT_EQ(2 * kTimeToAdvance, clock_.Elapsed()) [all...] |
pipeline.cc | 42 clock_(new Clock(&default_tick_clock_)), 154 return clock_->Elapsed(); 164 if (clock_->Duration() == TimeDelta() || total_bytes_ == 0) 170 end = std::min(end, clock_->Duration()); 179 return clock_->Duration(); 206 clock_.reset(clock); 322 if (waiting_for_clock_update_ && time < clock_->Elapsed()) 330 clock_->SetTime(time, max_time); 347 clock_->SetMaxTime(max_time); 358 clock_->SetDuration(duration) [all...] |
clock.cc | 15 Clock::Clock(base::TickClock* clock) : clock_(clock) { 16 DCHECK(clock_); 123 reference_ = clock_->NowTicks(); 127 return ClampToValidTimeRange(ElapsedViaProvidedTime(clock_->NowTicks()));
|
/external/chromium_org/chrome/browser/performance_monitor/ |
database_unittest.cc | 42 database_->key_builder_->CreateMetricKey(database_->clock_->GetTime(), 102 clock_ = new TestingClock(); 106 db_->set_clock(scoped_ptr<Database::Clock>(clock_)); 123 Database::Clock* clock_; member in class:performance_monitor::PerformanceMonitorDatabaseEventTest 133 EVENT_EXTENSION_INSTALL, clock_->GetTime(), "a", "extension 1", 137 EVENT_EXTENSION_INSTALL, clock_->GetTime(), "b", "extension 2", 141 EVENT_EXTENSION_UNINSTALL, clock_->GetTime(), "a", "extension 1", 145 EVENT_EXTENSION_UNINSTALL, clock_->GetTime(), "b", "extension 2", 154 clock_ = new TestingClock(); 158 db_->set_clock(scoped_ptr<Database::Clock>(clock_)); 183 Database::Clock* clock_; member in class:performance_monitor::PerformanceMonitorDatabaseMetricTest [all...] |
/external/chromium_org/chrome/browser/policy/cloud/ |
rate_limiter_unittest.cc | 20 clock_(new base::SimpleTestTickClock()), 29 scoped_ptr<base::TickClock>(clock_).Pass()) {} 38 base::SimpleTestTickClock* clock_; member in class:policy::RateLimiterTest 54 clock_->Advance(small_delta_); 60 clock_->Advance(small_delta_); 66 clock_->Advance(duration_); 81 clock_->Advance(delta); 95 clock_->Advance(small_delta_); 109 clock_->Advance(small_delta_);
|
rate_limiter.cc | 25 clock_(clock.Pass()) { 34 const base::TimeTicks now = clock_->NowTicks();
|
/external/chromium_org/net/quic/test_tools/ |
test_task_runner.cc | 16 : clock_(clock) { 27 PostedTask(from_here, task, clock_->NowInTicks(), delay, 45 clock_->AdvanceTime(QuicTime::Delta::FromMicroseconds( 46 (next->GetTimeToRun() - clock_->NowInTicks()).InMicroseconds()));
|
test_task_runner.h | 44 MockClock* const clock_; member in class:net::test::TestTaskRunner
|
/external/chromium_org/net/quic/ |
quic_connection_helper.cc | 25 clock_(clock), 40 int64 delay_us = deadline().Subtract(clock_->Now()).ToMicroseconds(); 67 if (clock_->Now() < deadline()) { 75 const QuicClock* clock_; member in class:net::__anon11323::QuicChromeAlarm 90 clock_(clock), 102 return clock_; 145 return new QuicChromeAlarm(clock_, task_runner_, delegate);
|
quic_connection_helper_test.cc | 118 runner_ = new TestTaskRunner(&clock_); 119 helper_ = new QuicConnectionHelper(runner_.get(), &clock_, 192 MockClock clock_; member in class:net::test::QuicConnectionHelperTest 229 EXPECT_EQ(&clock_, helper_->GetClock()); 244 alarm->Set(clock_.Now().Add(delta)); 252 EXPECT_EQ(QuicTime::Zero().Add(delta), clock_.Now()); 261 alarm->Set(clock_.Now().Add(delta)); 270 EXPECT_EQ(QuicTime::Zero().Add(delta), clock_.Now()); 279 alarm->Set(clock_.Now().Add(delta)); 282 alarm->Set(clock_.Now().Add(new_delta)) [all...] |
quic_time_test.cc | 57 MockClock clock_; member in class:net::test::QuicTimeTest 96 clock_.AdvanceTime(QuicTime::Delta::FromMilliseconds(1)); 98 QuicTime now = clock_.ApproximateNow(); 103 clock_.AdvanceTime(QuicTime::Delta::FromMilliseconds(1)); 104 now = clock_.ApproximateNow();
|
/external/chromium_org/chrome/browser/extensions/api/alarms/ |
alarms_api.h | 29 base::Clock* const clock_; member in class:extensions::AlarmsCreateFunction::base 30 // Whether or not we own |clock_|. This is needed because we own it
|
/external/chromium_org/net/tools/quic/ |
quic_epoll_connection_helper.cc | 71 clock_(epoll_server), 81 clock_(epoll_server), 94 return &clock_;
|