/external/chromium_org/net/quic/test_tools/ |
D | mock_clock.cc | 9 MockClock::MockClock() : now_(QuicTime::Zero()) { in MockClock() 16 now_ = now_.Add(delta); in AdvanceTime() 20 return now_; in Now() 24 return now_; in ApproximateNow() 29 now_.Subtract(QuicTime::Zero()).ToSeconds()); in WallNow() 35 now_.Subtract(QuicTime::Zero()).ToMicroseconds()); in NowInTicks()
|
D | mock_clock.h | 33 QuicTime now_;
|
/external/chromium_org/ash/wm/ |
D | user_activity_detector_unittest.cc | 64 now_ = base::TimeTicks::Now(); in SetUp() 65 detector_->set_now_for_test(now_); in SetUp() 76 now_ += delta; in AdvanceTime() 77 detector_->set_now_for_test(now_); in AdvanceTime() 84 base::TimeTicks now_; member in ash::test::UserActivityDetectorTest 99 EXPECT_EQ(now_.ToInternalValue(), in TEST_F() 112 EXPECT_EQ(now_.ToInternalValue(), in TEST_F() 117 base::TimeTicks time_before_ignore = now_; in TEST_F() 143 EXPECT_EQ(now_.ToInternalValue(), in TEST_F() 154 EXPECT_EQ(now_.ToInternalValue(), in TEST_F() [all …]
|
D | video_detector_unittest.cc | 74 now_ = base::TimeTicks::Now(); in SetUp() 75 detector_->set_now_for_test(now_); in SetUp() 86 now_ += delta; in AdvanceTime() 87 detector_->set_now_for_test(now_); in AdvanceTime() 94 base::TimeTicks now_; member in ash::test::VideoDetectorTest
|
/external/chromium_org/net/cert/ |
D | x509_util.cc | 25 ClientCertSorter::ClientCertSorter() : now_(base::Time::Now()) {} in ClientCertSorter() 35 bool a_is_valid = now_ >= a->valid_start() && now_ <= a->valid_expiry(); in operator ()() 36 bool b_is_valid = now_ >= b->valid_start() && now_ <= b->valid_expiry(); in operator ()()
|
D | x509_util.h | 119 base::Time now_;
|
/external/chromium_org/base/test/ |
D | simple_test_clock.cc | 15 return now_; in Now() 20 now_ += delta; in Advance() 25 now_ = now; in SetNow()
|
D | simple_test_clock.h | 36 Time now_; variable
|
/external/chromium_org/remoting/host/ |
D | resizing_host_observer_unittest.cc | 91 now_(base::Time::Now()) { in ResizingHostObserverTest() 97 return now_; in GetTime() 128 base::Time result = now_; in GetTimeAndIncrement() 129 now_ += base::TimeDelta::FromSeconds(1); in GetTimeAndIncrement() 135 base::Time now_; member in remoting::ResizingHostObserverTest 258 now_ += base::TimeDelta::FromMilliseconds(900); in TEST_F() 261 now_ += base::TimeDelta::FromMilliseconds(99); in TEST_F() 264 now_ += base::TimeDelta::FromMilliseconds(1); in TEST_F()
|
/external/chromium/net/url_request/ |
D | url_request_throttler_unittest.cc | 222 TimeTicks now_; member in net::URLRequestThrottlerEntryTest 228 now_ = TimeTicks::Now(); in SetUp() 230 entry_->ResetToBlank(now_); in SetUp() 260 entry_->ResetToBlank(now_); in TEST_F() 295 TimeAndBool(now_, false, __LINE__), in TEST_F() 296 TimeAndBool(now_ - kFiveMs, false, __LINE__), in TEST_F() 297 TimeAndBool(now_ + kFiveMs, false, __LINE__), in TEST_F() 298 TimeAndBool(now_ - (lifetime - kFiveMs), false, __LINE__), in TEST_F() 299 TimeAndBool(now_ - lifetime, true, __LINE__), in TEST_F() 300 TimeAndBool(now_ - (lifetime + kFiveMs), true, __LINE__)}; in TEST_F() [all …]
|
/external/chromium_org/net/url_request/ |
D | url_request_throttler_unittest.cc | 186 TimeTicks now_; member in net::URLRequestThrottlerEntryTest 208 now_ = TimeTicks::Now(); in SetUp() 210 entry_->ResetToBlank(now_); in SetUp() 323 TimeAndBool(now_, false, __LINE__), in TEST_F() 324 TimeAndBool(now_ - kFiveMs, false, __LINE__), in TEST_F() 325 TimeAndBool(now_ + kFiveMs, false, __LINE__), in TEST_F() 326 TimeAndBool(now_ - (lifetime - kFiveMs), false, __LINE__), in TEST_F() 327 TimeAndBool(now_ - lifetime, true, __LINE__), in TEST_F() 328 TimeAndBool(now_ - (lifetime + kFiveMs), true, __LINE__)}; in TEST_F() 343 TimeDelta delay = entry_->GetExponentialBackoffReleaseTime() - now_; in TEST_F()
|
D | url_request_throttler_simulation_unittest.cc | 135 now_ = absolute_time; in AdvanceTime() 162 start_downtime_ < now_ && now_ < end_downtime_) { in HandleRequest() 279 TimeTicks now_; member in net::__anonee56b62e0111::Server
|
/external/chromium_org/cc/test/ |
D | scheduler_test_common.h | 38 void SetNow(base::TimeTicks time) { now_ = time; } in SetNow() 47 base::TimeTicks now_; variable
|
D | scheduler_test_common.cc | 15 base::TimeTicks FakeDelayBasedTimeSource::Now() const { return now_; } in Now()
|
/external/chromium/net/base/ |
D | backoff_entry_unittest.cc | 20 now_(TimeTicks()) { in TestBackoffEntry() 29 return now_; in GetTimeNow() 33 now_ = now; in set_now() 37 TimeTicks now_; member in __anonaa64649e0111::TestBackoffEntry
|
/external/chromium_org/chrome/browser/chromeos/ |
D | session_length_limiter_unittest.cc | 73 base::TimeTicks now_; member in chromeos::__anon85c1ecb10111::MockTimeSingleThreadTaskRunner 131 : now_(base::TimeTicks::FromInternalValue(1000)) { in MockTimeSingleThreadTaskRunner() 142 tasks_.push(std::pair<base::TimeTicks, base::Closure>(now_ + delay, task)); in PostDelayedTask() 155 return now_; in GetCurrentTime() 160 const base::TimeTicks latest = now_ + time_delta; in FastForwardBy() 162 now_ = tasks_.top().first; in FastForwardBy() 167 now_ = latest; in FastForwardBy() 172 now_ = tasks_.top().first; in FastForwardUntilNoTasksRemain()
|
/external/chromium_org/chrome/browser/network_time/ |
D | network_time_tracker_unittest.cc | 51 now_(base::Time::NowFromSystemTime()), in NetworkTimeTrackerTest() 63 return now_ + (ticks_now_ - base::TimeTicks()); in Now() 134 base::Time now_; member in NetworkTimeTrackerTest
|
/external/chromium_org/net/base/ |
D | backoff_entry_unittest.cc | 20 now_(TimeTicks()) { in TestBackoffEntry() 29 return now_; in ImplGetTimeNow() 33 now_ = now; in set_now() 37 TimeTicks now_; member in __anon7fbef6050111::TestBackoffEntry
|
/external/chromium_org/media/filters/ |
D | pipeline_integration_test_base.h | 38 DummyTickClock() : now_() {} in DummyTickClock() 42 base::TimeTicks now_;
|
D | pipeline_integration_test_base.cc | 320 now_ += base::TimeDelta::FromSeconds(60); in NowTicks() 321 return now_; in NowTicks()
|
/external/chromium_org/chrome/browser/chromeos/system/ |
D | automatic_reboot_manager_unittest.cc | 96 base::TimeTicks now_; member in chromeos::system::__anonebad21d60111::MockTimeSingleThreadTaskRunner 231 tasks_.push(std::pair<base::TimeTicks, base::Closure>(now_ + delay, task)); in PostDelayedTask() 259 return now_; in Now() 264 const base::TimeTicks latest = now_ + delta; in FastForwardBy() 269 uptime_ += tasks_.top().first - now_; in FastForwardBy() 271 now_ = tasks_.top().first; in FastForwardBy() 277 uptime_ += latest - now_; in FastForwardBy() 279 now_ = latest; in FastForwardBy() 287 uptime_ += tasks_.top().first - now_; in FastForwardUntilNoTasksRemain() 289 now_ = tasks_.top().first; in FastForwardUntilNoTasksRemain() [all …]
|
/external/chromium_org/content/browser/renderer_host/p2p/ |
D | socket_host_udp_unittest.cc | 31 FakeTiming() : now_(0.0) {} in FakeTiming() 32 virtual double TimerNow() OVERRIDE { return now_; } in TimerNow() 33 void set_now(double now) { now_ = now; } in set_now() 36 double now_; member in __anon42866d570111::FakeTiming
|
/external/chromium_org/cc/resources/ |
D | resource_update_controller_unittest.cc | 343 void SetNow(base::TimeTicks time) { now_ = time; } in SetNow() 344 base::TimeTicks Now() const { return now_; } in Now() 351 return now_ + total_updates * update_textures_time_; in UpdateMoreTexturesCompletionTime() 371 base::TimeTicks now_; member in cc::__anon66cc47b40111::FakeResourceUpdateController
|
/external/chromium_org/third_party/libjingle/source/talk/media/base/ |
D | rtpdataengine_unittest.cc | 42 FakeTiming() : now_(0.0) {} in FakeTiming() 45 return now_; in TimerNow() 49 now_ = now; in set_now() 53 double now_; member in FakeTiming
|
/external/chromium_org/chrome/browser/net/ |
D | chrome_network_data_saving_metrics_unittest.cc | 104 base::Time::FromString(kLastUpdateTime, &now_); in ChromeNetworkDailyDataSavingMetricsTest() 116 return now_ + now_delta_; in FakeNow() 236 base::Time now_; member in __anonfb5c07db0111::ChromeNetworkDailyDataSavingMetricsTest
|