| 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 bf36ebc9be534f4797cb5fca127402cce60d3cb1..5e1b1dca3cf3046a76d3378467824ff533015eee 100644
|
| --- a/components/offline_pages/core/background/request_coordinator_unittest.cc
|
| +++ b/components/offline_pages/core/background/request_coordinator_unittest.cc
|
| @@ -46,7 +46,6 @@ const ClientId kClientId1(kClientNamespace, kId1);
|
| 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;
|
| @@ -1229,7 +1228,11 @@ TEST_F(RequestCoordinatorTest, TimeBudgetExceeded) {
|
| // 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.
|
| - AdvanceClockBy(base::TimeDelta::FromSeconds(kTestTimeBudgetSeconds));
|
| + int over_time_budget_seconds =
|
| + OfflinerPolicy()
|
| + .GetProcessingTimeBudgetWhenBackgroundScheduledInSeconds() +
|
| + 10;
|
| + AdvanceClockBy(base::TimeDelta::FromSeconds(over_time_budget_seconds));
|
| PumpLoop();
|
|
|
| // TryNextRequest should decide that there is no more work to be done,
|
|
|