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

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

Issue 1838963002: [Downloads] Fix copy and move operators for TestDownloadRequestHandler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/download_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/test_download_request_handler.cc
diff --git a/content/public/test/test_download_request_handler.cc b/content/public/test/test_download_request_handler.cc
index 22c83198b47a82332c32880333b6de7731440dfe..620ebcaa3d9841f7157de3fbba07f6ec1cb8305b 100644
--- a/content/public/test/test_download_request_handler.cc
+++ b/content/public/test/test_download_request_handler.cc
@@ -573,6 +573,7 @@ TestDownloadRequestHandler::Parameters::Parameters(Parameters&& that)
content_type(std::move(that.content_type)),
size(that.size),
pattern_generator_seed(that.pattern_generator_seed),
+ support_byte_ranges(that.support_byte_ranges),
on_start_handler(that.on_start_handler),
injected_errors(std::move(that.injected_errors)) {}
@@ -583,8 +584,9 @@ operator=(Parameters&& that) {
content_type = std::move(that.content_type);
size = that.size;
pattern_generator_seed = that.pattern_generator_seed;
+ support_byte_ranges = that.support_byte_ranges;
on_start_handler = that.on_start_handler;
- injected_errors.swap(that.injected_errors);
+ injected_errors = std::move(that.injected_errors);
return *this;
}
« no previous file with comments | « content/browser/download/download_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698