Home | History | Annotate | Download | only in scheduler

Lines Matching refs:timer

24   scoped_refptr<FakeDelayBasedTimeSource> timer =
26 timer->SetClient(&client);
28 timer->SetActive(true);
29 EXPECT_TRUE(timer->Active());
32 timer->SetNow(timer->Now() + base::TimeDelta::FromMilliseconds(16));
34 EXPECT_TRUE(timer->Active());
42 scoped_refptr<FakeDelayBasedTimeSource> timer =
44 timer->SetClient(&client);
45 timer->SetActive(true);
47 timer->SetActive(false);
56 scoped_refptr<FakeDelayBasedTimeSource> timer =
58 timer->SetClient(&client);
59 timer->SetActive(true);
62 timer->SetActive(true);
70 scoped_refptr<FakeDelayBasedTimeSource> timer =
72 timer->SetClient(&client);
73 timer->SetActive(true);
77 timer->SetActive(true);
87 scoped_refptr<FakeDelayBasedTimeSource> timer =
89 timer->SetClient(&client);
90 timer->SetActive(true);
91 // Run the first task, as that activates the timer and picks up a timebase.
96 timer->SetNow(timer->Now() + Interval());
108 scoped_refptr<FakeDelayBasedTimeSource> timer =
110 timer->SetClient(&client);
111 timer->SetActive(true);
112 // Run the first task, as that activates the timer and picks up a timebase.
117 timer->SetNow(timer->Now() + Interval() +
130 scoped_refptr<FakeDelayBasedTimeSource> timer =
132 timer->SetClient(&client);
133 timer->SetActive(true);
134 // Run the first task, as that activates the timer and picks up a timebase.
139 timer->SetNow(timer->Now() + 2 * Interval());
151 scoped_refptr<FakeDelayBasedTimeSource> timer =
153 timer->SetClient(&client);
154 timer->SetActive(true);
155 // Run the first task, as that activates the timer and picks up a timebase.
160 timer->SetNow(timer->Now() + 2 * Interval() +
173 scoped_refptr<FakeDelayBasedTimeSource> timer =
175 timer->SetClient(&client);
176 timer->SetActive(true);
177 // Run the first task, as that activates the timer and picks up a timebase.
182 timer->SetNow(timer->Now() + Interval() +
195 scoped_refptr<FakeDelayBasedTimeSource> timer =
197 timer->SetClient(&client);
198 timer->SetActive(true);
199 // Run the first task, as that activates the timer and picks up a timebase.
205 timer->SetNow(timer->Now() + Interval());
206 timer->SetTimebaseAndInterval(
207 timer->Now() + base::TimeDelta::FromMilliseconds(1), Interval());
214 timer->SetNow(timer->Now() + Interval());
215 timer->SetTimebaseAndInterval(
216 timer->Now() - base::TimeDelta::FromMilliseconds(1), Interval());
226 scoped_refptr<FakeDelayBasedTimeSource> timer =
228 timer->SetClient(&client);
229 timer->SetActive(true);
230 // Run the first task, as that activates the timer and picks up a timebase.
236 timer->SetNow(timer->Now() + Interval());
246 timer->SetTimebaseAndInterval(timer->Now() + jitter, Interval());
252 timer->SetNow(timer->Now() + jitter);
260 timer->SetTimebaseAndInterval(base::TimeTicks() + Interval(), Interval());
270 scoped_refptr<FakeDelayBasedTimeSource> timer =
272 timer->SetClient(&client);
273 timer->SetActive(true);
274 // Run the first task, as that activates the timer and picks up a timebase.
280 timer->SetNow(timer->Now() + Interval());
288 timer->SetTimebaseAndInterval(base::TimeTicks() + Interval(), Interval() * 2);
294 timer->SetNow(timer->Now() + Interval() * 2);
302 timer->SetTimebaseAndInterval(base::TimeTicks() + Interval() * 3, Interval());
314 scoped_refptr<FakeDelayBasedTimeSource> timer =
316 timer->SetClient(&client);
317 timer->SetActive(true);
327 timer->SetNow(timer->Now() + base::TimeDelta::FromMilliseconds(delay_ms));
339 scoped_refptr<FakeDelayBasedTimeSource> timer =
341 timer->SetClient(&client);
342 timer->SetActive(true); // Should post a task.
343 timer->SetActive(false);
344 timer = NULL;
354 scoped_refptr<FakeDelayBasedTimeSource> timer =
356 timer->SetClient(&client);
359 timer->SetActive(true);
362 // Stop the timer
363 timer->SetActive(false);
368 // Start the timer again, but before the next tick time the timer previously
370 timer->SetNow(timer->Now() + base::TimeDelta::FromMilliseconds(4));
371 timer->SetActive(true);
379 scoped_refptr<FakeDelayBasedTimeSource> timer =
381 timer->SetClient(&client);
384 timer->SetActive(true);
387 // Stop the timer.
388 timer->SetActive(false);
393 // Start the timer again, but before the next tick time the timer previously
395 timer->SetNow(timer->Now() + base::TimeDelta::FromMilliseconds(20));
396 timer->SetActive(true);