Index: components/offline_pages/core/background/request_coordinator_unittest.cc |
diff --git a/components/offline_pages/core/background/request_coordinator_unittest.cc b/components/offline_pages/core/background/request_coordinator_unittest.cc |
index 5e1b1dca3cf3046a76d3378467824ff533015eee..bf36ebc9be534f4797cb5fca127402cce60d3cb1 100644 |
--- a/components/offline_pages/core/background/request_coordinator_unittest.cc |
+++ b/components/offline_pages/core/background/request_coordinator_unittest.cc |
@@ -46,6 +46,7 @@ |
const ClientId kClientId2(kClientNamespace, kId2); |
const int kRequestId1(1); |
const int kRequestId2(2); |
+const long kTestTimeBudgetSeconds = 200; |
const int kBatteryPercentageHigh = 75; |
const int kMaxCompletedTries = 3; |
const bool kPowerRequired = true; |
@@ -1228,11 +1229,7 @@ |
// Advance the mock clock far enough to exceed our time budget. |
// The first request will time out, and because we are over time budget, |
// the second request will not be started. |
- int over_time_budget_seconds = |
- OfflinerPolicy() |
- .GetProcessingTimeBudgetWhenBackgroundScheduledInSeconds() + |
- 10; |
- AdvanceClockBy(base::TimeDelta::FromSeconds(over_time_budget_seconds)); |
+ AdvanceClockBy(base::TimeDelta::FromSeconds(kTestTimeBudgetSeconds)); |
PumpLoop(); |
// TryNextRequest should decide that there is no more work to be done, |