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

Unified Diff: components/history/core/test/history_backend_db_base_test.cc

Issue 1781983002: [Downloads] Introduce GUIDs for downloads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/history/core/test/history_backend_db_base_test.cc
diff --git a/components/history/core/test/history_backend_db_base_test.cc b/components/history/core/test/history_backend_db_base_test.cc
index 7a0c1101c1fdfadc9d5d01705a03d4f08a3e8594..daecc813b3738ad9148c551bfdb03efc6df38cbc 100644
--- a/components/history/core/test/history_backend_db_base_test.cc
+++ b/components/history/core/test/history_backend_db_base_test.cc
@@ -117,30 +117,20 @@ void HistoryBackendDBBaseTest::DeleteBackend() {
}
bool HistoryBackendDBBaseTest::AddDownload(uint32_t id,
+ const std::string& guid,
DownloadState state,
base::Time time) {
std::vector<GURL> url_chain;
url_chain.push_back(GURL("foo-url"));
- DownloadRow download(base::FilePath(FILE_PATH_LITERAL("current-path")),
- base::FilePath(FILE_PATH_LITERAL("target-path")),
- url_chain,
- GURL("http://referrer.com/"),
- "application/vnd.oasis.opendocument.text",
- "application/octet-stream",
- time,
- time,
- std::string(),
- std::string(),
- 0,
- 512,
- state,
- DownloadDangerType::NOT_DANGEROUS,
- kTestDownloadInterruptReasonNone,
- id,
- false,
- "by_ext_id",
- "by_ext_name");
+ DownloadRow download(
+ base::FilePath(FILE_PATH_LITERAL("current-path")),
+ base::FilePath(FILE_PATH_LITERAL("target-path")), url_chain,
+ GURL("http://referrer.com/"), std::string(),
+ "application/vnd.oasis.opendocument.text", "application/octet-stream",
+ time, time, std::string(), std::string(), 0, 512, state,
+ DownloadDangerType::NOT_DANGEROUS, kTestDownloadInterruptReasonNone,
+ std::string(), id, guid, false, "by_ext_id", "by_ext_name");
return db_->CreateDownload(download);
}

Powered by Google App Engine
This is Rietveld 408576698