summaryrefslogtreecommitdiff
path: root/chromium/content/browser/download/download_browsertest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/content/browser/download/download_browsertest.cc')
-rw-r--r--chromium/content/browser/download/download_browsertest.cc17
1 files changed, 9 insertions, 8 deletions
diff --git a/chromium/content/browser/download/download_browsertest.cc b/chromium/content/browser/download/download_browsertest.cc
index ed9e9c1de83..27b607702a1 100644
--- a/chromium/content/browser/download/download_browsertest.cc
+++ b/chromium/content/browser/download/download_browsertest.cc
@@ -73,6 +73,7 @@
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/public/platform/web_mouse_event.h"
#include "url/gurl.h"
+#include "url/origin.h"
#if BUILDFLAG(ENABLE_PLUGINS)
#include "content/browser/plugin_service_impl.h"
@@ -1039,7 +1040,7 @@ class ParallelDownloadTest : public DownloadContentTest {
download::DownloadItem* download =
DownloadManagerForShell(shell())->CreateDownloadItem(
"F7FB1F59-7DE1-4845-AFDB-8A688F70F583", 1, path, base::FilePath(),
- url_chain, GURL(), GURL(), GURL(), GURL(),
+ url_chain, GURL(), GURL(), GURL(), GURL(), url::Origin(),
"application/octet-stream", "application/octet-stream",
base::Time::Now(), base::Time(), parameters.etag,
parameters.last_modified, total_bytes, parameters.size,
@@ -2493,7 +2494,7 @@ IN_PROC_BROWSER_TEST_F(DownloadContentTest, ResumeRestoredDownload_NoFile) {
DownloadManagerForShell(shell())->CreateDownloadItem(
"F7FB1F59-7DE1-4845-AFDB-8A688F70F583", 1, intermediate_file_path,
base::FilePath(), url_chain, GURL(), GURL(), GURL(), GURL(),
- "application/octet-stream", "application/octet-stream",
+ url::Origin(), "application/octet-stream", "application/octet-stream",
base::Time::Now(), base::Time(), parameters.etag, std::string(),
kIntermediateSize, parameters.size, std::string(),
download::DownloadItem::INTERRUPTED,
@@ -2559,7 +2560,7 @@ IN_PROC_BROWSER_TEST_F(DownloadContentTest, ResumeRestoredDownload_NoHash) {
DownloadManagerForShell(shell())->CreateDownloadItem(
"F7FB1F59-7DE1-4845-AFDB-8A688F70F583", 1, intermediate_file_path,
base::FilePath(), url_chain, GURL(), GURL(), GURL(), GURL(),
- "application/octet-stream", "application/octet-stream",
+ url::Origin(), "application/octet-stream", "application/octet-stream",
base::Time::Now(), base::Time(), parameters.etag, std::string(),
kIntermediateSize, parameters.size, std::string(),
download::DownloadItem::INTERRUPTED,
@@ -2612,7 +2613,7 @@ IN_PROC_BROWSER_TEST_F(DownloadContentTest,
DownloadManagerForShell(shell())->CreateDownloadItem(
"F7FB1F59-7DE1-4845-AFDB-8A688F70F583", 1, intermediate_file_path,
base::FilePath(), url_chain, GURL(), GURL(), GURL(), GURL(),
- "application/octet-stream", "application/octet-stream",
+ url::Origin(), "application/octet-stream", "application/octet-stream",
base::Time::Now(), base::Time(), "fake-etag", std::string(),
kIntermediateSize, parameters.size, std::string(),
download::DownloadItem::INTERRUPTED,
@@ -2671,7 +2672,7 @@ IN_PROC_BROWSER_TEST_F(DownloadContentTest,
DownloadManagerForShell(shell())->CreateDownloadItem(
"F7FB1F59-7DE1-4845-AFDB-8A688F70F583", 1, intermediate_file_path,
base::FilePath(), url_chain, GURL(), GURL(), GURL(), GURL(),
- "application/octet-stream", "application/octet-stream",
+ url::Origin(), "application/octet-stream", "application/octet-stream",
base::Time::Now(), base::Time(), parameters.etag, std::string(),
kIntermediateSize, parameters.size,
std::string(std::begin(kPartialHash), std::end(kPartialHash)),
@@ -2737,7 +2738,7 @@ IN_PROC_BROWSER_TEST_F(DownloadContentTest, ResumeRestoredDownload_WrongHash) {
DownloadManagerForShell(shell())->CreateDownloadItem(
"F7FB1F59-7DE1-4845-AFDB-8A688F70F583", 1, intermediate_file_path,
base::FilePath(), url_chain, GURL(), GURL(), GURL(), GURL(),
- "application/octet-stream", "application/octet-stream",
+ url::Origin(), "application/octet-stream", "application/octet-stream",
base::Time::Now(), base::Time(), parameters.etag, std::string(),
kIntermediateSize, parameters.size,
std::string(std::begin(kPartialHash), std::end(kPartialHash)),
@@ -2813,7 +2814,7 @@ IN_PROC_BROWSER_TEST_F(DownloadContentTest, ResumeRestoredDownload_ShortFile) {
DownloadManagerForShell(shell())->CreateDownloadItem(
"F7FB1F59-7DE1-4845-AFDB-8A688F70F583", 1, intermediate_file_path,
base::FilePath(), url_chain, GURL(), GURL(), GURL(), GURL(),
- "application/octet-stream", "application/octet-stream",
+ url::Origin(), "application/octet-stream", "application/octet-stream",
base::Time::Now(), base::Time(), parameters.etag, std::string(),
kIntermediateSize, parameters.size, std::string(),
download::DownloadItem::INTERRUPTED,
@@ -2886,7 +2887,7 @@ IN_PROC_BROWSER_TEST_F(DownloadContentTest, ResumeRestoredDownload_LongFile) {
DownloadManagerForShell(shell())->CreateDownloadItem(
"F7FB1F59-7DE1-4845-AFDB-8A688F70F583", 1, intermediate_file_path,
base::FilePath(), url_chain, GURL(), GURL(), GURL(), GURL(),
- "application/octet-stream", "application/octet-stream",
+ url::Origin(), "application/octet-stream", "application/octet-stream",
base::Time::Now(), base::Time(), parameters.etag, std::string(),
kIntermediateSize, parameters.size, std::string(),
download::DownloadItem::INTERRUPTED,