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

Unified Diff: chrome/browser/ui/webui/downloads_dom_handler_browsertest.cc

Issue 11363222: Persist download interrupt reason, both target and current paths, and url_chain. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added test requested by reviewers. Created 8 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: chrome/browser/ui/webui/downloads_dom_handler_browsertest.cc
diff --git a/chrome/browser/ui/webui/downloads_dom_handler_browsertest.cc b/chrome/browser/ui/webui/downloads_dom_handler_browsertest.cc
index 7f43a0731a9ee65cb9d62a3c4ba0db99ce1e5c8c..c23b11a8e4c6e681688a0274fbc0609bdfe9c7e1 100644
--- a/chrome/browser/ui/webui/downloads_dom_handler_browsertest.cc
+++ b/chrome/browser/ui/webui/downloads_dom_handler_browsertest.cc
@@ -140,17 +140,21 @@ IN_PROC_BROWSER_TEST_F(DownloadsDOMHandlerTest,
MockDownloadsDOMHandler mddh(download_manager());
GURL url = test_server()->GetURL("files/downloads/image.jpg");
+ std::vector<GURL> url_chain;
+ url_chain.push_back(url);
base::Time current(base::Time::Now());
content::DownloadPersistentStoreInfo population_entries[] = {
content::DownloadPersistentStoreInfo(
FilePath(FILE_PATH_LITERAL("/path/to/file")),
- url,
+ FilePath(FILE_PATH_LITERAL("/path/to/file")),
+ url_chain,
GURL(""),
current - base::TimeDelta::FromMinutes(5),
current,
128,
128,
content::DownloadItem::COMPLETE,
+ content::DOWNLOAD_INTERRUPT_REASON_NONE,
1,
false),
};

Powered by Google App Engine
This is Rietveld 408576698