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

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: Merged to r180302 Created 7 years, 11 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
« no previous file with comments | « chrome/browser/history/history_unittest.cc ('k') | chrome/test/data/History/history.21.sql » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9ae0ec398101b8a1467128b47c299a35e89fe9e2..15707f83b9efc5e518744ea3c7a93f6408d4e759 100644
--- a/chrome/browser/ui/webui/downloads_dom_handler_browsertest.cc
+++ b/chrome/browser/ui/webui/downloads_dom_handler_browsertest.cc
@@ -140,16 +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());
download_manager()->CreateDownloadItem(
FilePath(FILE_PATH_LITERAL("/path/to/file")),
- url,
+ FilePath(FILE_PATH_LITERAL("/path/to/file")),
+ url_chain,
GURL(""),
current,
current,
128,
128,
content::DownloadItem::COMPLETE,
+ content::DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS,
+ content::DOWNLOAD_INTERRUPT_REASON_NONE,
false);
mddh.WaitForDownloadsList();
« no previous file with comments | « chrome/browser/history/history_unittest.cc ('k') | chrome/test/data/History/history.21.sql » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698