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

Unified Diff: chrome/browser/safe_browsing/incident_reporting/last_download_finder_unittest.cc

Issue 1967433002: [Merge-M51][Downloads/History] Add tab-url and tab-referrer-url to DownloadRow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 7 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: chrome/browser/safe_browsing/incident_reporting/last_download_finder_unittest.cc
diff --git a/chrome/browser/safe_browsing/incident_reporting/last_download_finder_unittest.cc b/chrome/browser/safe_browsing/incident_reporting/last_download_finder_unittest.cc
index 0165f7eb1813fb604017dc20744d44074bf5a5f9..13c0005a03d9964a5976cbf9fd0be2e07724c44b 100644
--- a/chrome/browser/safe_browsing/incident_reporting/last_download_finder_unittest.cc
+++ b/chrome/browser/safe_browsing/incident_reporting/last_download_finder_unittest.cc
@@ -265,12 +265,13 @@ class LastDownloadFinderTest : public testing::Test {
const base::FilePath::CharType* file_path) {
base::Time now(base::Time::Now());
return history::DownloadRow(
- base::FilePath(file_path),
- base::FilePath(file_path),
+ base::FilePath(file_path), base::FilePath(file_path),
std::vector<GURL>(1, GURL("http://www.google.com")), // url_chain
- GURL(), // referrer
- std::string(), // HTTP method
- "application/octet-stream", // mime_type
+ GURL("http://referrer.example.com/"), // referrer
+ GURL("http://tab-url.example.com/"), // tab URL
+ GURL("http://tab-referrer.example.com/"), // tab referrer URL
+ std::string(), // HTTP method
+ "application/octet-stream", // mime_type
"application/octet-stream", // original_mime_type
now - base::TimeDelta::FromMinutes(10), // start
now - base::TimeDelta::FromMinutes(9), // end
@@ -284,7 +285,7 @@ class LastDownloadFinderTest : public testing::Test {
content::DOWNLOAD_INTERRUPT_REASON_NONE), // interrupt_reason,
std::string(), // hash
download_id_++, // id
- base::GenerateGUID(),
+ base::GenerateGUID(), // GUID
false, // download_opened
std::string(), // ext_id
std::string()); // ext_name

Powered by Google App Engine
This is Rietveld 408576698