Home | History | Annotate | Download | only in src

Lines Matching refs:FromMilliseconds

44   EXPECT_EQ(TimeDelta::FromMilliseconds(1000), entry.GetTimeUntilRelease());
66 entry.set_now(entry.GetReleaseTime() + TimeDelta::FromMilliseconds(1));
70 TimeDelta::FromMilliseconds(base_policy.maximum_backoff_ms + 1));
75 TimeDelta::FromMilliseconds(base_policy.entry_lifetime_ms - 1));
79 TimeDelta::FromMilliseconds(base_policy.entry_lifetime_ms));
91 entry.set_now(entry.GetReleaseTime() + TimeDelta::FromMilliseconds(2000));
99 entry.set_now(entry.GetReleaseTime() + TimeDelta::FromMilliseconds(1000));
136 EXPECT_EQ(entry.ImplGetTimeNow() + TimeDelta::FromMilliseconds(1000), result);
137 EXPECT_EQ(TimeDelta::FromMilliseconds(1000), entry.GetTimeUntilRelease());
142 EXPECT_EQ(entry.ImplGetTimeNow() + TimeDelta::FromMilliseconds(2000), result);
143 EXPECT_EQ(TimeDelta::FromMilliseconds(2000), entry.GetTimeUntilRelease());
148 EXPECT_EQ(entry.ImplGetTimeNow() + TimeDelta::FromMilliseconds(4000), result);
149 EXPECT_EQ(TimeDelta::FromMilliseconds(4000), entry.GetTimeUntilRelease());
156 EXPECT_EQ(entry.ImplGetTimeNow() + TimeDelta::FromMilliseconds(20000),
173 EXPECT_EQ(TimeDelta::FromMilliseconds(1000), entry.GetTimeUntilRelease());
177 EXPECT_EQ(TimeDelta::FromMilliseconds(1000), entry.GetTimeUntilRelease());
181 EXPECT_EQ(TimeDelta::FromMilliseconds(2000), entry.GetTimeUntilRelease());
185 EXPECT_EQ(TimeDelta::FromMilliseconds(4000), entry.GetTimeUntilRelease());
193 EXPECT_EQ(TimeDelta::FromMilliseconds(20000), entry.GetTimeUntilRelease());
207 EXPECT_LE(entry.ImplGetTimeNow() + TimeDelta::FromMilliseconds(3200),
209 EXPECT_GE(entry.ImplGetTimeNow() + TimeDelta::FromMilliseconds(4000),
220 EXPECT_EQ(TimeTicks() + TimeDelta::FromMilliseconds(1000), release_time);
224 entry.set_now(release_time - TimeDelta::FromMilliseconds(200));
230 EXPECT_EQ(release_time + TimeDelta::FromMilliseconds(800),
243 EXPECT_EQ(TimeDelta::FromMilliseconds(1000), entry.GetTimeUntilRelease());
247 EXPECT_EQ(TimeDelta::FromMilliseconds(2000), entry.GetTimeUntilRelease());
248 entry.set_now(entry.GetReleaseTime() + TimeDelta::FromMilliseconds(2000));
252 EXPECT_EQ(TimeDelta::FromMilliseconds(1000), entry.GetTimeUntilRelease());
256 EXPECT_EQ(TimeDelta::FromMilliseconds(2000), entry.GetTimeUntilRelease());
257 entry.set_now(entry.GetReleaseTime() + TimeDelta::FromMilliseconds(2000));
276 TimeTicks() + TimeDelta::FromDays(3) + TimeDelta::FromMilliseconds(1000),