• Home
  • Raw
  • Download

Lines Matching refs:TimeDelta

27 using base::TimeDelta;
81 new TimeDelta()); in SetUpDefaultDevicePolicy()
109 curr_time += TimeDelta::FromSeconds(1); in SetUpdateCheckAllowed()
111 curr_time -= TimeDelta::FromSeconds(1); in SetUpdateCheckAllowed()
183 fake_clock_.GetWallclockTime() + TimeDelta::FromMinutes(1234); in TEST_F()
198 fake_clock_.SetWallclockTime(next_update_check - TimeDelta::FromSeconds(1)); in TEST_F()
206 fake_clock_.SetWallclockTime(next_update_check + TimeDelta::FromSeconds(1)); in TEST_F()
219 fake_clock_.GetWallclockTime() + TimeDelta::FromMinutes(1234); in TEST_F()
231 fake_clock_.SetWallclockTime(next_update_check + TimeDelta::FromSeconds(1)); in TEST_F()
243 fake_clock_.SetWallclockTime(next_update_check + TimeDelta::FromSeconds(1)); in TEST_F()
484 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
497 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
515 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
535 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
556 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(10)); in TEST_F()
561 curr_time - TimeDelta::FromSeconds(8)); in TEST_F()
565 curr_time - TimeDelta::FromSeconds(2)); in TEST_F()
586 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(10)); in TEST_F()
591 curr_time - TimeDelta::FromSeconds(8)); in TEST_F()
595 curr_time - TimeDelta::FromSeconds(2)); in TEST_F()
597 update_state.backoff_expiry = curr_time + TimeDelta::FromMinutes(3); in TEST_F()
619 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(10)); in TEST_F()
624 curr_time - TimeDelta::FromSeconds(8)); in TEST_F()
628 curr_time - TimeDelta::FromSeconds(2)); in TEST_F()
629 update_state.failures_last_updated = curr_time - TimeDelta::FromSeconds(1); in TEST_F()
630 update_state.backoff_expiry = curr_time - TimeDelta::FromSeconds(1); in TEST_F()
653 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(10)); in TEST_F()
658 curr_time - TimeDelta::FromSeconds(8)); in TEST_F()
662 curr_time - TimeDelta::FromSeconds(2)); in TEST_F()
686 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(10)); in TEST_F()
691 curr_time - TimeDelta::FromSeconds(8)); in TEST_F()
695 curr_time - TimeDelta::FromSeconds(2)); in TEST_F()
719 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(10)); in TEST_F()
724 curr_time - TimeDelta::FromSeconds(8)); in TEST_F()
728 curr_time - TimeDelta::FromSeconds(2)); in TEST_F()
752 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(10)); in TEST_F()
757 curr_time - TimeDelta::FromSeconds(8)); in TEST_F()
761 curr_time - TimeDelta::FromSeconds(2)); in TEST_F()
794 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(1)); in TEST_F()
808 new TimeDelta(TimeDelta::FromMinutes(2))); in TEST_F()
810 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(1)); in TEST_F()
819 EXPECT_LT(TimeDelta(), result.scatter_wait_period); in TEST_F()
831 new TimeDelta(TimeDelta::FromMinutes(2))); in TEST_F()
833 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(1)); in TEST_F()
834 update_state.scatter_wait_period = TimeDelta::FromSeconds(35); in TEST_F()
845 EXPECT_EQ(TimeDelta::FromSeconds(35), result.scatter_wait_period); in TEST_F()
859 new TimeDelta(TimeDelta::FromSeconds(1))); in TEST_F()
861 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(1)); in TEST_F()
882 new TimeDelta(TimeDelta::FromSeconds(1))); in TEST_F()
884 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(1)); in TEST_F()
905 new TimeDelta(TimeDelta::FromSeconds(120))); in TEST_F()
907 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(75)); in TEST_F()
909 update_state.scatter_wait_period = TimeDelta::FromSeconds(60); in TEST_F()
919 EXPECT_EQ(TimeDelta(), result.scatter_wait_period); in TEST_F()
935 new TimeDelta(TimeDelta::FromSeconds(1))); in TEST_F()
937 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(1)); in TEST_F()
948 EXPECT_EQ(TimeDelta(), result.scatter_wait_period); in TEST_F()
963 new TimeDelta(TimeDelta::FromSeconds(1))); in TEST_F()
966 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(1)); in TEST_F()
977 EXPECT_EQ(TimeDelta(), result.scatter_wait_period); in TEST_F()
998 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1022 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1050 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1074 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1099 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1124 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1128 TimeDelta::FromSeconds(ChromeOSPolicy::kMaxP2PAttemptsPeriodInSeconds + in TEST_F()
1153 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1175 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1198 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1201 Time t = fake_clock_.GetWallclockTime() - TimeDelta::FromSeconds(12); in TEST_F()
1205 t += TimeDelta::FromSeconds(1); in TEST_F()
1227 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1230 Time t = fake_clock_.GetWallclockTime() - TimeDelta::FromSeconds(12); in TEST_F()
1234 t += TimeDelta::FromSeconds(1); in TEST_F()
1256 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1262 fake_clock_.GetWallclockTime() - TimeDelta::FromSeconds(1)); in TEST_F()
1284 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1291 fake_clock_.GetWallclockTime() - TimeDelta::FromSeconds(1)); in TEST_F()
1320 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1347 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1379 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1541 new TimeDelta(TimeDelta::FromMinutes(2))); in TEST_F()
1544 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(1)); in TEST_F()
1545 update_state.scatter_wait_period = TimeDelta::FromSeconds(35); in TEST_F()
1557 EXPECT_EQ(TimeDelta::FromSeconds(35), result.scatter_wait_period); in TEST_F()
1569 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(10)); in TEST_F()
1574 curr_time - TimeDelta::FromSeconds(8)); in TEST_F()
1578 curr_time - TimeDelta::FromSeconds(2)); in TEST_F()
1641 WeeklyTime::FromTime(curr_time + TimeDelta::FromMinutes(1)))}, in TEST_F()
1651 WeeklyTime::FromTime(curr_time + TimeDelta::FromMinutes(1)))}, in TEST_F()
1660 WeeklyTime::FromTime(curr_time - TimeDelta::FromHours(3)), in TEST_F()
1671 WeeklyTime::FromTime(curr_time + TimeDelta::FromMinutes(1)))}, in TEST_F()