Lines Matching refs:FakeClock
20 FakeClock* clock() { return &clock_; } in clock()
25 FakeClock clock_{Clock::now()};
27 Alarm alarm_{&FakeClock::now, &task_runner_};
33 const Clock::time_point alarm_time = FakeClock::now() + kDelay; in TEST_F()
35 alarm()->Schedule([&]() { actual_run_time = FakeClock::now(); }, alarm_time); in TEST_F()
53 const Clock::time_point expected_run_time = FakeClock::now(); in TEST_F()
55 alarm()->Schedule([&]() { actual_run_time = FakeClock::now(); }, in TEST_F()
76 Alarm scoped_alarm(&FakeClock::now, task_runner()); in TEST_F()
77 const Clock::time_point alarm_time = FakeClock::now() + kDelay; in TEST_F()
78 scoped_alarm.Schedule([&]() { actual_run_time = FakeClock::now(); }, in TEST_F()
92 const Clock::time_point alarm_time = FakeClock::now() + kDelay; in TEST_F()
94 alarm()->Schedule([&]() { actual_run_time = FakeClock::now(); }, alarm_time); in TEST_F()
121 alarm()->Schedule([&]() { ++count1; }, FakeClock::now() + delay1); in TEST_F()
132 alarm()->Schedule([&]() { ++count2; }, FakeClock::now() + delay2); in TEST_F()