• 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()
362 TimeDelta::FromSeconds(11)); in TEST_F()
504 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
517 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
535 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
555 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
576 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(10)); in TEST_F()
581 curr_time - TimeDelta::FromSeconds(8)); in TEST_F()
585 curr_time - TimeDelta::FromSeconds(2)); in TEST_F()
606 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(10)); in TEST_F()
611 curr_time - TimeDelta::FromSeconds(8)); in TEST_F()
615 curr_time - TimeDelta::FromSeconds(2)); in TEST_F()
617 update_state.backoff_expiry = curr_time + TimeDelta::FromMinutes(3); in TEST_F()
639 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(10)); in TEST_F()
644 curr_time - TimeDelta::FromSeconds(8)); in TEST_F()
648 curr_time - TimeDelta::FromSeconds(2)); in TEST_F()
649 update_state.failures_last_updated = curr_time - TimeDelta::FromSeconds(1); in TEST_F()
650 update_state.backoff_expiry = curr_time - TimeDelta::FromSeconds(1); in TEST_F()
673 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(10)); in TEST_F()
678 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()
711 curr_time - TimeDelta::FromSeconds(8)); in TEST_F()
715 curr_time - TimeDelta::FromSeconds(2)); in TEST_F()
739 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(10)); in TEST_F()
744 curr_time - TimeDelta::FromSeconds(8)); in TEST_F()
748 curr_time - TimeDelta::FromSeconds(2)); in TEST_F()
772 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(10)); in TEST_F()
777 curr_time - TimeDelta::FromSeconds(8)); in TEST_F()
781 curr_time - TimeDelta::FromSeconds(2)); in TEST_F()
814 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(1)); in TEST_F()
828 new TimeDelta(TimeDelta::FromMinutes(2))); in TEST_F()
830 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(1)); in TEST_F()
839 EXPECT_LT(TimeDelta(), result.scatter_wait_period); in TEST_F()
851 new TimeDelta(TimeDelta::FromMinutes(2))); in TEST_F()
853 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(1)); in TEST_F()
854 update_state.scatter_wait_period = TimeDelta::FromSeconds(35); in TEST_F()
865 EXPECT_EQ(TimeDelta::FromSeconds(35), result.scatter_wait_period); in TEST_F()
879 new TimeDelta(TimeDelta::FromSeconds(1))); in TEST_F()
881 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(1)); in TEST_F()
902 new TimeDelta(TimeDelta::FromSeconds(1))); in TEST_F()
904 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(1)); in TEST_F()
925 new TimeDelta(TimeDelta::FromSeconds(120))); in TEST_F()
927 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(75)); in TEST_F()
929 update_state.scatter_wait_period = TimeDelta::FromSeconds(60); in TEST_F()
939 EXPECT_EQ(TimeDelta(), result.scatter_wait_period); in TEST_F()
955 new TimeDelta(TimeDelta::FromSeconds(1))); in TEST_F()
957 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(1)); in TEST_F()
968 EXPECT_EQ(TimeDelta(), result.scatter_wait_period); in TEST_F()
983 new TimeDelta(TimeDelta::FromSeconds(1))); in TEST_F()
986 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(1)); in TEST_F()
997 EXPECT_EQ(TimeDelta(), result.scatter_wait_period); in TEST_F()
1018 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1042 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1070 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1094 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1119 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1144 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1148 TimeDelta::FromSeconds(ChromeOSPolicy::kMaxP2PAttemptsPeriodInSeconds + in TEST_F()
1173 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1195 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1218 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1221 Time t = fake_clock_->GetWallclockTime() - TimeDelta::FromSeconds(12); in TEST_F()
1225 t += TimeDelta::FromSeconds(1); in TEST_F()
1247 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1250 Time t = fake_clock_->GetWallclockTime() - TimeDelta::FromSeconds(12); in TEST_F()
1254 t += TimeDelta::FromSeconds(1); in TEST_F()
1276 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1282 fake_clock_->GetWallclockTime() - TimeDelta::FromSeconds(1)); in TEST_F()
1304 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1311 fake_clock_->GetWallclockTime() - TimeDelta::FromSeconds(1)); in TEST_F()
1340 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1367 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1399 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromMinutes(10)); in TEST_F()
1419 new TimeDelta(TimeDelta::FromMinutes(2))); in TEST_F()
1422 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(1)); in TEST_F()
1423 update_state.scatter_wait_period = TimeDelta::FromSeconds(35); in TEST_F()
1435 EXPECT_EQ(TimeDelta::FromSeconds(35), result.scatter_wait_period); in TEST_F()
1447 UpdateState update_state = GetDefaultUpdateState(TimeDelta::FromSeconds(10)); in TEST_F()
1452 curr_time - TimeDelta::FromSeconds(8)); in TEST_F()
1456 curr_time - TimeDelta::FromSeconds(2)); in TEST_F()
1519 WeeklyTime::FromTime(curr_time + TimeDelta::FromMinutes(1)))}, in TEST_F()
1529 WeeklyTime::FromTime(curr_time + TimeDelta::FromMinutes(1)))}, in TEST_F()
1538 WeeklyTime::FromTime(curr_time - TimeDelta::FromHours(3)), in TEST_F()
1549 WeeklyTime::FromTime(curr_time + TimeDelta::FromMinutes(1)))}, in TEST_F()