Home
last modified time | relevance | path

Searched refs:now_ (Results 1 – 25 of 31) sorted by relevance

12

/external/chromium_org/net/quic/test_tools/
Dmock_clock.cc9 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()
Dmock_clock.h33 QuicTime now_;
/external/chromium_org/ash/wm/
Duser_activity_detector_unittest.cc64 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 …]
Dvideo_detector_unittest.cc74 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/
Dx509_util.cc25 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 ()()
Dx509_util.h119 base::Time now_;
/external/chromium_org/base/test/
Dsimple_test_clock.cc15 return now_; in Now()
20 now_ += delta; in Advance()
25 now_ = now; in SetNow()
Dsimple_test_clock.h36 Time now_; variable
/external/chromium_org/remoting/host/
Dresizing_host_observer_unittest.cc91 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/
Durl_request_throttler_unittest.cc222 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/
Durl_request_throttler_unittest.cc186 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()
Durl_request_throttler_simulation_unittest.cc135 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/
Dscheduler_test_common.h38 void SetNow(base::TimeTicks time) { now_ = time; } in SetNow()
47 base::TimeTicks now_; variable
Dscheduler_test_common.cc15 base::TimeTicks FakeDelayBasedTimeSource::Now() const { return now_; } in Now()
/external/chromium/net/base/
Dbackoff_entry_unittest.cc20 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/
Dsession_length_limiter_unittest.cc73 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/
Dnetwork_time_tracker_unittest.cc51 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/
Dbackoff_entry_unittest.cc20 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/
Dpipeline_integration_test_base.h38 DummyTickClock() : now_() {} in DummyTickClock()
42 base::TimeTicks now_;
Dpipeline_integration_test_base.cc320 now_ += base::TimeDelta::FromSeconds(60); in NowTicks()
321 return now_; in NowTicks()
/external/chromium_org/chrome/browser/chromeos/system/
Dautomatic_reboot_manager_unittest.cc96 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/
Dsocket_host_udp_unittest.cc31 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/
Dresource_update_controller_unittest.cc343 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/
Drtpdataengine_unittest.cc42 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/
Dchrome_network_data_saving_metrics_unittest.cc104 base::Time::FromString(kLastUpdateTime, &now_); in ChromeNetworkDailyDataSavingMetricsTest()
116 return now_ + now_delta_; in FakeNow()
236 base::Time now_; member in __anonfb5c07db0111::ChromeNetworkDailyDataSavingMetricsTest

12