Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Unified Diff: components/offline_pages/background/request_coordinator_unittest.cc

Issue 2218403002: Change database scheme - add state and start tracking (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Stop clearing last request time Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/offline_pages/background/request_coordinator_unittest.cc
diff --git a/components/offline_pages/background/request_coordinator_unittest.cc b/components/offline_pages/background/request_coordinator_unittest.cc
index cd81cccf290264b75510f59add88c1033d9c33e2..6ef185c7725ccf8ce91868b9521b35a0c1658d61 100644
--- a/components/offline_pages/background/request_coordinator_unittest.cc
+++ b/components/offline_pages/background/request_coordinator_unittest.cc
@@ -459,7 +459,7 @@ TEST_F(RequestCoordinatorTest, OfflinerDoneForegroundCancel) {
EXPECT_EQ(1UL, last_requests().size());
// Verify foreground cancel not counted as an attempt after all.
const SavePageRequest& found_request = last_requests().front();
- EXPECT_EQ(0L, found_request.attempt_count());
+ EXPECT_EQ(0L, found_request.completed_attempt_count());
}
// This tests a StopProcessing call before we have actually started the
@@ -588,7 +588,7 @@ TEST_F(RequestCoordinatorTest, TimeBudgetExceeded) {
kRequestId1, kUrl1, kClientId1, base::Time::Now(), kUserRequested);
offline_pages::SavePageRequest request2(
kRequestId1 + 1, kUrl1, kClientId1, base::Time::Now(), kUserRequested);
- request2.set_attempt_count(kAttemptCount);
+ request2.set_completed_attempt_count(kAttemptCount);
coordinator()->queue()->AddRequest(
request1,
base::Bind(&RequestCoordinatorTest::AddRequestDone,

Powered by Google App Engine
This is Rietveld 408576698