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

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

Issue 1875033005: [Downloads/History] Add tab-url and tab-referrer-url to DownloadRow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@guid-fix
Patch Set: Update expectations for DownloadUIController test. Created 4 years, 8 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 | « components/history/core/browser/history_database.cc ('k') | components/test/data/history/README.md » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 604e38cf3e523e5367ad5448e5e8833a38f0c5bc..ece2d79f602f45266744102420cbac06d743869a 100644
--- a/components/history/core/test/history_backend_db_base_test.cc
+++ b/components/history/core/test/history_backend_db_base_test.cc
@@ -123,28 +123,15 @@ bool HistoryBackendDBBaseTest::AddDownload(uint32_t id,
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/"),
- 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");
+ DownloadRow download(
+ base::FilePath(FILE_PATH_LITERAL("current-path")),
+ base::FilePath(FILE_PATH_LITERAL("target-path")), url_chain,
+ GURL("http://referrer.example.com/"), GURL("http://tab-url.example.com/"),
+ GURL("http://tab-referrer-url.example.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);
}
« no previous file with comments | « components/history/core/browser/history_database.cc ('k') | components/test/data/history/README.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698