Lines Matching refs:TimeDelta
34 using base::TimeDelta;
49 eval_ctx_ = new EvaluationContext(&fake_clock_, TimeDelta::FromSeconds(5)); in SetUp()
113 new TimeDelta()); in SetUpDefaultDevicePolicy()
134 curr_time += TimeDelta::FromSeconds(1); in SetUpdateCheckAllowed()
136 curr_time -= TimeDelta::FromSeconds(1); in SetUpdateCheckAllowed()
141 UpdateState GetDefaultUpdateState(TimeDelta first_seen_period) { in GetDefaultUpdateState()
173 update_state.scatter_wait_period = TimeDelta(); in GetDefaultUpdateState()
175 update_state.scatter_wait_period_max = TimeDelta::FromDays(7); in GetDefaultUpdateState()
211 new Time(fake_clock_.GetWallclockTime() - TimeDelta::FromMinutes(10))); in TEST_F()
218 fake_clock_.GetWallclockTime() + TimeDelta::FromSeconds( in TEST_F()
233 fake_clock_.GetWallclockTime() + TimeDelta::FromSeconds( in TEST_F()
238 fake_clock_.GetWallclockTime() + TimeDelta::FromSeconds( in TEST_F()
257 fake_clock_.GetWallclockTime() + TimeDelta::FromSeconds( in TEST_F()
261 fake_clock_.GetWallclockTime() + TimeDelta::FromSeconds( in TEST_F()
281 fake_clock_.GetWallclockTime() + TimeDelta::FromSeconds( in TEST_F()
285 fake_clock_.GetWallclockTime() + TimeDelta::FromSeconds( in TEST_F()
300 fake_clock_.GetWallclockTime() + TimeDelta::FromSeconds( in TEST_F()
305 fake_clock_.GetWallclockTime() + TimeDelta::FromSeconds( in TEST_F()
317 fake_clock_.GetWallclockTime() + TimeDelta::FromMinutes(1234); in TEST_F()
331 fake_clock_.SetWallclockTime(next_update_check - TimeDelta::FromSeconds(1)); in TEST_F()
339 fake_clock_.SetWallclockTime(next_update_check + TimeDelta::FromSeconds(1)); in TEST_F()
352 fake_clock_.GetWallclockTime() + TimeDelta::FromMinutes(1234); in TEST_F()
363 fake_clock_.SetWallclockTime(next_update_check + TimeDelta::FromSeconds(1)); in TEST_F()
376 fake_clock_.SetWallclockTime(next_update_check + TimeDelta::FromSeconds(1)); in TEST_F()
483 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
496 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
514 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
534 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
555 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(10)); in TEST_F()
559 curr_time - TimeDelta::FromSeconds(8)); in TEST_F()
562 curr_time - TimeDelta::FromSeconds(2)); in TEST_F()
583 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(10)); in TEST_F()
587 curr_time - TimeDelta::FromSeconds(8)); in TEST_F()
590 curr_time - TimeDelta::FromSeconds(2)); in TEST_F()
592 update_state.backoff_expiry = curr_time + TimeDelta::FromMinutes(3); in TEST_F()
612 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(10)); in TEST_F()
616 curr_time - TimeDelta::FromSeconds(8)); in TEST_F()
619 curr_time - TimeDelta::FromSeconds(2)); in TEST_F()
620 update_state.failures_last_updated = curr_time - TimeDelta::FromSeconds(1); in TEST_F()
621 update_state.backoff_expiry = curr_time - TimeDelta::FromSeconds(1); in TEST_F()
644 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(10)); in TEST_F()
648 curr_time - TimeDelta::FromSeconds(8)); in TEST_F()
651 curr_time - TimeDelta::FromSeconds(2)); in TEST_F()
675 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(10)); in TEST_F()
679 curr_time - TimeDelta::FromSeconds(8)); in TEST_F()
682 curr_time - TimeDelta::FromSeconds(2)); in TEST_F()
706 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(10)); in TEST_F()
710 curr_time - TimeDelta::FromSeconds(8)); in TEST_F()
713 curr_time - TimeDelta::FromSeconds(2)); in TEST_F()
737 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(10)); in TEST_F()
741 curr_time - TimeDelta::FromSeconds(8)); in TEST_F()
744 curr_time - TimeDelta::FromSeconds(2)); in TEST_F()
777 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(1)); in TEST_F()
791 new TimeDelta(TimeDelta::FromMinutes(2))); in TEST_F()
794 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(1)); in TEST_F()
803 EXPECT_LT(TimeDelta(), result.scatter_wait_period); in TEST_F()
815 new TimeDelta(TimeDelta::FromMinutes(2))); in TEST_F()
817 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(1)); in TEST_F()
818 update_state.scatter_wait_period = TimeDelta::FromSeconds(35); in TEST_F()
827 EXPECT_EQ(TimeDelta::FromSeconds(35), result.scatter_wait_period); in TEST_F()
841 new TimeDelta(TimeDelta::FromSeconds(1))); in TEST_F()
843 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(1)); in TEST_F()
864 new TimeDelta(TimeDelta::FromSeconds(1))); in TEST_F()
866 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(1)); in TEST_F()
887 new TimeDelta(TimeDelta::FromSeconds(120))); in TEST_F()
889 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(75)); in TEST_F()
891 update_state.scatter_wait_period = TimeDelta::FromSeconds(60); in TEST_F()
901 EXPECT_EQ(TimeDelta(), result.scatter_wait_period); in TEST_F()
917 new TimeDelta(TimeDelta::FromSeconds(1))); in TEST_F()
919 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(1)); in TEST_F()
930 EXPECT_EQ(TimeDelta(), result.scatter_wait_period); in TEST_F()
946 new TimeDelta(TimeDelta::FromSeconds(1))); in TEST_F()
949 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(1)); in TEST_F()
960 EXPECT_EQ(TimeDelta(), result.scatter_wait_period); in TEST_F()
981 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1005 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1033 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1058 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1083 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1108 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1112 TimeDelta::FromSeconds( in TEST_F()
1137 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1159 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1182 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1185 Time t = fake_clock_.GetWallclockTime() - TimeDelta::FromSeconds(12); in TEST_F()
1189 t += TimeDelta::FromSeconds(1); in TEST_F()
1211 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1214 Time t = fake_clock_.GetWallclockTime() - TimeDelta::FromSeconds(12); in TEST_F()
1218 t += TimeDelta::FromSeconds(1); in TEST_F()
1240 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1245 fake_clock_.GetWallclockTime() - TimeDelta::FromSeconds(1)); in TEST_F()
1267 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1273 fake_clock_.GetWallclockTime() - TimeDelta::FromSeconds(1)); in TEST_F()
1302 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1329 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1361 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1528 new TimeDelta(TimeDelta::FromMinutes(2))); in TEST_F()
1531 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(1)); in TEST_F()
1532 update_state.scatter_wait_period = TimeDelta::FromSeconds(35); in TEST_F()
1544 EXPECT_EQ(TimeDelta::FromSeconds(35), result.scatter_wait_period); in TEST_F()
1557 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(10)); in TEST_F()
1561 curr_time - TimeDelta::FromSeconds(8)); in TEST_F()
1564 curr_time - TimeDelta::FromSeconds(2)); in TEST_F()