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

Unified Diff: components/offline_pages/downloads/download_notifying_observer_unittest.cc

Issue 2521353005: [OfflinePages] Call NotifyInterrupted for pending requests (Closed)
Patch Set: Fix test Created 4 years, 1 month 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/downloads/download_notifying_observer_unittest.cc
diff --git a/components/offline_pages/downloads/download_notifying_observer_unittest.cc b/components/offline_pages/downloads/download_notifying_observer_unittest.cc
index 7d6f66117adc45ea9ee2a5e818f27a5461cebcc6..2ddf6109159e2527fc46f171a4155acffe360180 100644
--- a/components/offline_pages/downloads/download_notifying_observer_unittest.cc
+++ b/components/offline_pages/downloads/download_notifying_observer_unittest.cc
@@ -156,7 +156,7 @@ TEST_F(DownloadNotifyingObserverTest, OnChangedToAvailable) {
kTestCreationTime, kTestUserRequested);
request.set_request_state(SavePageRequest::RequestState::AVAILABLE);
observer()->OnChanged(request);
- EXPECT_EQ(LastNotificationType::DOWNLOAD_PROGRESS,
+ EXPECT_EQ(LastNotificationType::DOWNLOAD_INTERRUPTED,
notifier()->last_notification_type());
EXPECT_EQ(kTestGuid, notifier()->download_item()->guid);
EXPECT_EQ(GURL(kTestUrl), notifier()->download_item()->url);

Powered by Google App Engine
This is Rietveld 408576698