Home
last modified time | relevance | path

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

12

/external/chromium_org/cc/test/
Dtest_now_source.cc26 : initial_(base::TimeTicks::FromInternalValue(10000)), now_() { in TestNowSource()
31 : initial_(initial), now_() { in TestNowSource()
36 : initial_(base::TimeTicks::FromInternalValue(initial)), now_() { in TestNowSource()
49 now_, in Reset()
52 now_ = initial_; in Reset()
56 return now_; in Now()
64 now_, in SetNow()
67 DCHECK(time >= now_); // Time should always go forward. in SetNow()
68 now_ = time; in SetNow()
76 now_, in AdvanceNow()
[all …]
Dscheduler_test_common.h41 void SetNow(base::TimeTicks time) { now_ = time; } in SetNow()
50 base::TimeTicks now_; variable
Dscheduler_test_common.cc17 base::TimeTicks FakeDelayBasedTimeSource::Now() const { return now_; } in Now()
/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.h32 QuicTime now_;
/external/chromium_org/net/quic/
Dquic_unacked_packet_map_test.cc23 : now_(QuicTime::Zero().Add(QuicTime::Delta::FromMilliseconds(1000))) { in QuicUnackedPacketMapTest()
99 QuicTime now_; member in net::test::__anon06488a4c0111::QuicUnackedPacketMapTest
105 unacked_packets_.SetSent(1, now_, kDefaultAckLength, false); in TEST_F()
124 unacked_packets_.SetSent(i, now_, kDefaultAckLength, false); in TEST_F()
134 unacked_packets_.SetSent(1, now_, kDefaultLength, true); in TEST_F()
161 unacked_packets_.SetSent(1, now_, kDefaultLength, true); in TEST_F()
163 unacked_packets_.SetSent(2, now_, kDefaultLength, true); in TEST_F()
196 unacked_packets_.SetSent(1, now_, kDefaultLength, true); in TEST_F()
198 unacked_packets_.SetSent(2, now_, kDefaultLength, true); in TEST_F()
212 unacked_packets_.SetSent(3, now_, kDefaultLength, true); in TEST_F()
[all …]
/external/chromium_org/ui/wm/core/
Duser_activity_detector_unittest.cc51 now_ = base::TimeTicks::Now(); in SetUp()
52 detector_->set_now_for_test(now_); in SetUp()
63 now_ += delta; in AdvanceTime()
64 detector_->set_now_for_test(now_); in AdvanceTime()
70 base::TimeTicks now_; member in wm::UserActivityDetectorTest
82 EXPECT_EQ(now_.ToInternalValue(), in TEST_F()
94 EXPECT_EQ(now_.ToInternalValue(), in TEST_F()
99 base::TimeTicks time_before_ignore = now_; in TEST_F()
125 EXPECT_EQ(now_.ToInternalValue(), in TEST_F()
135 EXPECT_EQ(now_.ToInternalValue(), in TEST_F()
[all …]
/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 ()()
/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.cc96 now_(base::Time::Now()) { in ResizingHostObserverTest()
102 return now_; in GetTime()
133 base::Time result = now_; in GetTimeAndIncrement()
134 now_ += base::TimeDelta::FromSeconds(1); in GetTimeAndIncrement()
140 base::Time now_; member in remoting::ResizingHostObserverTest
288 now_ += base::TimeDelta::FromMilliseconds(900); in TEST_F()
291 now_ += base::TimeDelta::FromMilliseconds(99); in TEST_F()
294 now_ += base::TimeDelta::FromMilliseconds(1); in TEST_F()
/external/chromium_org/ash/system/chromeos/session/
Dlogout_confirmation_controller_unittest.cc57 base::TimeTicks now_; member in ash::__anon8acf0d1b0111::MockTimeSingleThreadTaskRunner
93 tasks_.push(std::make_pair(now_ + delay, task)); in PostDelayedTask()
106 return now_; in GetCurrentTime()
110 const base::TimeTicks latest = now_ + delta; in FastForwardBy()
112 now_ = tasks_.top().first; in FastForwardBy()
117 now_ = latest; in FastForwardBy()
122 now_ = tasks_.top().first; in FastForwardUntilNoTasksRemain()
/external/chromium_org/net/url_request/
Durl_request_throttler_unittest.cc179 TimeTicks now_; member in net::URLRequestThrottlerEntryTest
190 now_ = TimeTicks::Now(); in SetUp()
192 entry_->ResetToBlank(now_); in SetUp()
273 TimeAndBool(now_, false, __LINE__), in TEST_F()
274 TimeAndBool(now_ - kFiveMs, false, __LINE__), in TEST_F()
275 TimeAndBool(now_ + kFiveMs, false, __LINE__), in TEST_F()
276 TimeAndBool(now_ - (lifetime - kFiveMs), false, __LINE__), in TEST_F()
277 TimeAndBool(now_ - lifetime, true, __LINE__), in TEST_F()
278 TimeAndBool(now_ - (lifetime + kFiveMs), true, __LINE__)}; in TEST_F()
293 TimeDelta delay = entry_->GetExponentialBackoffReleaseTime() - now_; in TEST_F()
/external/chromium_org/components/network_time/
Dnetwork_time_tracker_unittest.cc52 now_ = base::Time::NowFromSystemTime(); in SetUp()
59 return now_ + (ticks_now_ - base::TimeTicks()); in Now()
106 base::Time now_; member in network_time::NetworkTimeTrackerTest
/external/chromium_org/base/debug/
Dtrace_event_synthetic_delay_unittest.cc31 return now_; in Now()
42 void AdvanceTime(base::TimeDelta delta) { now_ += delta; } in AdvanceTime()
63 base::TimeTicks now_; member in base::debug::TraceEventSyntheticDelayTest
/external/chromium_org/chrome/browser/chromeos/
Dsession_length_limiter_unittest.cc73 base::TimeTicks now_; member in chromeos::__anon199a613e0111::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/ash/wm/
Dvideo_detector_unittest.cc75 now_ = base::TimeTicks::Now(); in SetUp()
76 detector_->set_now_for_test(now_); in SetUp()
87 now_ += delta; in AdvanceTime()
88 detector_->set_now_for_test(now_); in AdvanceTime()
95 base::TimeTicks now_; member in ash::test::VideoDetectorTest
/external/chromium_org/components/domain_reliability/
Dtest_util.cc108 : now_(base::Time::Now()), in MockTime()
117 base::Time MockTime::Now() { return now_; } in Now()
151 now_ += delta; in AdvanceToInternal()
/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 __anon63eab3920111::TestBackoffEntry
/external/chromium_org/chrome/browser/chromeos/system/
Dautomatic_reboot_manager_unittest.cc95 base::TimeTicks now_; member in chromeos::system::__anon561a05030111::MockTimeSingleThreadTaskRunner
229 tasks_.push(std::pair<base::TimeTicks, base::Closure>(now_ + delay, task)); in PostDelayedTask()
257 return now_; in Now()
262 const base::TimeTicks latest = now_ + delta; in FastForwardBy()
267 uptime_ += tasks_.top().first - now_; in FastForwardBy()
269 now_ = tasks_.top().first; in FastForwardBy()
275 uptime_ += latest - now_; in FastForwardBy()
277 now_ = latest; in FastForwardBy()
285 uptime_ += tasks_.top().first - now_; in FastForwardUntilNoTasksRemain()
287 now_ = tasks_.top().first; in FastForwardUntilNoTasksRemain()
[all …]
/external/chromium_org/media/filters/
Dpipeline_integration_test_base.h40 DummyTickClock() : now_() {} in DummyTickClock()
44 base::TimeTicks now_;
/external/chromium_org/cc/base/
Ddelayed_unique_notifier_unittest.cc26 virtual base::TimeTicks Now() const OVERRIDE { return now_; } in Now()
28 void SetNow(base::TimeTicks now) { now_ = now; } in SetNow()
31 base::TimeTicks now_; member in cc::__anon9b429b610111::TestNotifier
/external/chromium_org/cc/resources/
Dresource_update_controller_unittest.cc350 void SetNow(base::TimeTicks time) { now_ = time; } in SetNow()
351 base::TimeTicks Now() const { return now_; } in Now()
358 return now_ + total_updates * update_textures_time_; in UpdateMoreTexturesCompletionTime()
378 base::TimeTicks now_; member in cc::__anonffba70e10111::FakeResourceUpdateController
/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 __anona747b2c40111::FakeTiming
/external/chromium_org/third_party/libjingle/source/talk/media/base/
Drtpdataengine_unittest.cc43 FakeTiming() : now_(0.0) {} in FakeTiming()
46 return now_; in TimerNow()
50 now_ = now; in set_now()
54 double now_; member in FakeTiming

12