Lines Matching refs:timer

210   base::DelayTimer timer(FROM_HERE, TimeDelta::FromMilliseconds(1), &target,  in RunTest_DelayTimer_NoCall()  local
225 base::DelayTimer timer(FROM_HERE, TimeDelta::FromMilliseconds(1), &target, in RunTest_DelayTimer_OneCall() local
227 timer.Reset(); in RunTest_DelayTimer_OneCall()
238 ResetHelper(base::DelayTimer* timer, DelayTimerTarget* target) in ResetHelper()
239 : timer_(timer), target_(target) {} in ResetHelper()
256 base::DelayTimer timer(FROM_HERE, TimeDelta::FromMilliseconds(50), &target, in RunTest_DelayTimer_Reset() local
258 timer.Reset(); in RunTest_DelayTimer_Reset()
260 ResetHelper reset_helper(&timer, &target); in RunTest_DelayTimer_Reset()
290 base::DelayTimer timer(FROM_HERE, TimeDelta::FromMilliseconds(50), &target, in RunTest_DelayTimer_Deleted() local
292 timer.Reset(); in RunTest_DelayTimer_Deleted()
420 base::Timer timer(false, false); in TEST() local
421 EXPECT_FALSE(timer.IsRunning()); in TEST()
422 timer.Start(FROM_HERE, TimeDelta::FromDays(1), in TEST()
424 EXPECT_TRUE(timer.IsRunning()); in TEST()
425 timer.Stop(); in TEST()
426 EXPECT_FALSE(timer.IsRunning()); in TEST()
427 EXPECT_TRUE(timer.user_task().is_null()); in TEST()
431 base::Timer timer(true, false); in TEST() local
433 EXPECT_FALSE(timer.IsRunning()); in TEST()
434 timer.Start(FROM_HERE, TimeDelta::FromDays(1), in TEST()
436 EXPECT_TRUE(timer.IsRunning()); in TEST()
437 timer.Stop(); in TEST()
438 EXPECT_FALSE(timer.IsRunning()); in TEST()
439 ASSERT_FALSE(timer.user_task().is_null()); in TEST()
440 timer.Reset(); in TEST()
441 EXPECT_TRUE(timer.IsRunning()); in TEST()
446 base::Timer timer(false, false); in TEST() local
449 EXPECT_FALSE(timer.IsRunning()); in TEST()
450 timer.Start(FROM_HERE, TimeDelta::FromDays(1), in TEST()
452 EXPECT_TRUE(timer.IsRunning()); in TEST()
454 EXPECT_FALSE(timer.IsRunning()); in TEST()
455 EXPECT_TRUE(timer.user_task().is_null()); in TEST()
460 base::Timer timer(FROM_HERE, TimeDelta::FromDays(1), in TEST() local
462 EXPECT_FALSE(timer.IsRunning()); in TEST()
463 timer.Reset(); in TEST()
464 EXPECT_TRUE(timer.IsRunning()); in TEST()
465 timer.Stop(); in TEST()
466 EXPECT_FALSE(timer.IsRunning()); in TEST()
467 timer.Reset(); in TEST()
468 EXPECT_TRUE(timer.IsRunning()); in TEST()
473 base::Timer timer(FROM_HERE, TimeDelta::FromDays(1), in TEST() local
475 EXPECT_FALSE(timer.IsRunning()); in TEST()
476 timer.Reset(); in TEST()
477 EXPECT_TRUE(timer.IsRunning()); in TEST()
478 timer.Stop(); in TEST()
479 EXPECT_FALSE(timer.IsRunning()); in TEST()
480 timer.Reset(); in TEST()
481 EXPECT_TRUE(timer.IsRunning()); in TEST()
508 base::Timer timer(false, false); in TEST() local
509 timer.Start(FROM_HERE, TimeDelta::FromMilliseconds(10), in TEST()
511 timer.Stop(); in TEST()
512 timer.Start(FROM_HERE, TimeDelta::FromMilliseconds(40), in TEST()
524 base::Timer timer(false, false); in TEST() local
525 timer.Start(FROM_HERE, TimeDelta::FromMilliseconds(10), in TEST()
527 timer.Reset(); in TEST()
529 ASSERT_FALSE(timer.user_task().is_null()); in TEST()