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

Unified Diff: content/browser/download/download_browsertest.cc

Issue 1750943002: [Downloads] Stop keying TestFileErrorInjector off of URLs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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: content/browser/download/download_browsertest.cc
diff --git a/content/browser/download/download_browsertest.cc b/content/browser/download/download_browsertest.cc
index 40fa2a87a8dcf3c82d7a2fbfab963cc403209a83..1ae4c1ee8fe7bfd16170af0ce735c308ef407f38 100644
--- a/content/browser/download/download_browsertest.cc
+++ b/content/browser/download/download_browsertest.cc
@@ -1481,7 +1481,6 @@ IN_PROC_BROWSER_TEST_P(DownloadResumptionContentTest,
DownloadManagerForShell(initiator_shell_for_resumption())));
const TestFileErrorInjector::FileErrorInfo err = {
- request_handler.url().spec(),
TestFileErrorInjector::FILE_OPERATION_INITIALIZE, 0,
DOWNLOAD_INTERRUPT_REASON_FILE_NO_SPACE};
injector->AddError(err);
@@ -1526,7 +1525,6 @@ IN_PROC_BROWSER_TEST_P(DownloadResumptionContentTest,
DownloadManagerForShell(initiator_shell_for_resumption())));
const TestFileErrorInjector::FileErrorInfo err = {
- request_handler.url().spec(),
TestFileErrorInjector::FILE_OPERATION_RENAME_UNIQUIFY, 0,
DOWNLOAD_INTERRUPT_REASON_FILE_NO_SPACE};
injector->AddError(err);
@@ -1574,7 +1572,6 @@ IN_PROC_BROWSER_TEST_P(DownloadResumptionContentTest,
DownloadManagerForShell(initiator_shell_for_resumption())
->RemoveAllDownloads();
TestFileErrorInjector::FileErrorInfo err = {
- request_handler.url().spec(),
TestFileErrorInjector::FILE_OPERATION_RENAME_ANNOTATE, 0,
DOWNLOAD_INTERRUPT_REASON_FILE_FAILED};
injector->AddError(err);

Powered by Google App Engine
This is Rietveld 408576698