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

Unified Diff: content/browser/loader/test_url_loader_client.cc

Issue 2574143003: Implement upload progress handling in Mojo loading (Closed)
Patch Set: update TestExpectations Created 3 years, 11 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/loader/test_url_loader_client.cc
diff --git a/content/browser/loader/test_url_loader_client.cc b/content/browser/loader/test_url_loader_client.cc
index d87ee132ce21179e89e940a4f7ef35d9ac3a8d61..4334869f8fb4077a21b7bd7c05466205c231d87d 100644
--- a/content/browser/loader/test_url_loader_client.cc
+++ b/content/browser/loader/test_url_loader_client.cc
@@ -50,6 +50,12 @@ void TestURLLoaderClient::OnTransferSizeUpdated(int32_t transfer_size_diff) {
body_transfer_size_ += transfer_size_diff;
}
+void TestURLLoaderClient::OnUploadProgress(int64_t current_position,
+ int64_t total_size,
+ const base::Closure& ack_callback) {
+ ack_callback.Run();
mmenke 2017/01/05 16:31:20 No tests using this?
tzik 2017/01/18 12:56:43 Now, it's used!
+}
+
void TestURLLoaderClient::OnStartLoadingResponseBody(
mojo::ScopedDataPipeConsumerHandle body) {
response_body_ = std::move(body);

Powered by Google App Engine
This is Rietveld 408576698