Lines Matching refs:custom
263 TestBackoffEntry custom(&base_policy); in TEST() local
265 custom.SetCustomReleaseTime(custom_horizon); in TEST()
266 custom.InformOfRequest(false); in TEST()
267 custom.InformOfRequest(true); in TEST()
268 custom.set_now(TimeTicks() + TimeDelta::FromDays(2)); in TEST()
269 custom.InformOfRequest(false); in TEST()
270 custom.InformOfRequest(true); in TEST()
271 EXPECT_EQ(custom_horizon, custom.GetReleaseTime()); in TEST()
275 custom.set_now(TimeTicks() + TimeDelta::FromDays(3)); in TEST()
276 custom.InformOfRequest(false); in TEST()
279 custom.GetReleaseTime()); in TEST()
286 TestBackoffEntry custom(&lenient_policy); in TEST() local
288 custom.SetCustomReleaseTime(custom_horizon); in TEST()
289 custom.InformOfRequest(false); // This must not reset the horizon. in TEST()
290 EXPECT_EQ(custom_horizon, custom.GetReleaseTime()); in TEST()
296 TestBackoffEntry custom(&large_multiply_policy); in TEST() local
302 custom.set_now(custom.ImplGetTimeNow() + custom.GetTimeUntilRelease()); in TEST()
303 custom.InformOfRequest(false); in TEST()
304 ASSERT_TRUE(custom.ShouldRejectRequest()); in TEST()
308 EXPECT_EQ(20000, custom.GetTimeUntilRelease().InMilliseconds()); in TEST()