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

Unified Diff: content/public/test/test_file_error_injector.cc

Issue 2823273004: Add new UMA stats for parallelizable download (Closed)
Patch Set: fix test Created 3 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 | « content/browser/download/parallel_download_utils.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/test_file_error_injector.cc
diff --git a/content/public/test/test_file_error_injector.cc b/content/public/test/test_file_error_injector.cc
index b635121876011f0cd3a2cd3a8257e850ddda519d..5a24423ea1afe59e91ca54f86d7dbc9229a15481 100644
--- a/content/public/test/test_file_error_injector.cc
+++ b/content/public/test/test_file_error_injector.cc
@@ -44,7 +44,8 @@ class DownloadFileWithError: public DownloadFileImpl {
void Initialize(const InitializeCallback& initialize_callback,
const CancelRequestCallback& cancel_request_callback,
- const DownloadItem::ReceivedSlices& received_slices) override;
+ const DownloadItem::ReceivedSlices& received_slices,
+ bool is_parallelizable) override;
// DownloadFile interface.
DownloadInterruptReason WriteDataToFile(int64_t offset,
@@ -136,7 +137,8 @@ DownloadFileWithError::~DownloadFileWithError() {
void DownloadFileWithError::Initialize(
const InitializeCallback& initialize_callback,
const CancelRequestCallback& cancel_request_callback,
- const DownloadItem::ReceivedSlices& received_slices) {
+ const DownloadItem::ReceivedSlices& received_slices,
+ bool is_parallelizable) {
DownloadInterruptReason error_to_return = DOWNLOAD_INTERRUPT_REASON_NONE;
InitializeCallback callback_to_use = initialize_callback;
@@ -158,7 +160,7 @@ void DownloadFileWithError::Initialize(
}
DownloadFileImpl::Initialize(callback_to_use, cancel_request_callback,
- received_slices);
+ received_slices, is_parallelizable);
}
DownloadInterruptReason DownloadFileWithError::WriteDataToFile(
« no previous file with comments | « content/browser/download/parallel_download_utils.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698