Home | History | Annotate | Download | only in base

Lines Matching refs:notifier

60   TestNotifier notifier(
71 notifier.SetNow(schedule_time);
72 notifier.Schedule();
83 notifier.Schedule();
95 TestNotifier notifier(
106 notifier.SetNow(schedule_time);
107 notifier.Schedule();
123 base::TimeTicks scheduled_run_time = notifier.Now() + delay;
125 base::TimeTicks() + (scheduled_run_time - notifier.Now());
129 notifier.SetNow(notifier.Now() + base::TimeDelta::FromInternalValue(19));
139 scheduled_delay = base::TimeTicks() + (scheduled_run_time - notifier.Now());
143 notifier.SetNow(notifier.Now() + base::TimeDelta::FromInternalValue(1));
155 TestNotifier notifier(
167 schedule_time = notifier.Now() + base::TimeDelta::FromInternalValue(19);
168 notifier.SetNow(schedule_time);
169 notifier.Schedule();
182 schedule_time = notifier.Now() + base::TimeDelta::FromInternalValue(20);
183 notifier.SetNow(schedule_time);
197 TestNotifier notifier(
206 notifier.Now() + base::TimeDelta::FromInternalValue(10);
207 notifier.SetNow(schedule_time);
208 notifier.Schedule();
209 EXPECT_TRUE(notifier.HasPendingNotification());
212 notifier.Cancel();
213 EXPECT_FALSE(notifier.HasPendingNotification());
223 EXPECT_FALSE(notifier.HasPendingNotification());
228 notifier.Schedule();
229 EXPECT_TRUE(notifier.HasPendingNotification());
236 notifier.SetNow(notifier.Now() + delay);
241 EXPECT_FALSE(notifier.HasPendingNotification());
244 notifier.Schedule();
245 EXPECT_TRUE(notifier.HasPendingNotification());
246 notifier.Cancel();
247 EXPECT_FALSE(notifier.HasPendingNotification());
256 notifier.SetNow(notifier.Now() + delay);
262 EXPECT_FALSE(notifier.HasPendingNotification());