Index: content/browser/loader/test_url_loader_client.h |
diff --git a/content/browser/loader/test_url_loader_client.h b/content/browser/loader/test_url_loader_client.h |
index b7d5ce488a56a9259228eaadbca491771fea2ec5..9df36010e3f7a1fa6b6b38ba3771854169c2a330 100644 |
--- a/content/browser/loader/test_url_loader_client.h |
+++ b/content/browser/loader/test_url_loader_client.h |
@@ -36,6 +36,9 @@ class TestURLLoaderClient final : public mojom::URLLoaderClient { |
void OnDataDownloaded(int64_t data_length, int64_t encoded_length) override; |
void OnReceiveCachedMetadata(const std::vector<uint8_t>& data) override; |
void OnTransferSizeUpdated(int32_t transfer_size_diff) override; |
+ void OnUploadProgress(int64_t current_position, |
+ int64_t total_size, |
+ const base::Closure& ack_callback) override; |
void OnStartLoadingResponseBody( |
mojo::ScopedDataPipeConsumerHandle body) override; |
void OnComplete(const ResourceRequestCompletionStatus& status) override; |
@@ -61,6 +64,8 @@ class TestURLLoaderClient final : public mojom::URLLoaderClient { |
return encoded_download_data_length_; |
} |
int64_t body_transfer_size() const { return body_transfer_size_; } |
+ int64_t current_upload_position() const { return current_upload_position_; } |
+ int64_t total_upload_size() const { return total_upload_size_; } |
void ClearHasReceivedRedirect(); |
// Creates an AssociatedPtrInfo, binds it to |*this| and returns it. The |
@@ -100,6 +105,8 @@ class TestURLLoaderClient final : public mojom::URLLoaderClient { |
int64_t download_data_length_ = 0; |
int64_t encoded_download_data_length_ = 0; |
int64_t body_transfer_size_ = 0; |
+ int64_t current_upload_position_ = 0; |
+ int64_t total_upload_size_ = 0; |
DISALLOW_COPY_AND_ASSIGN(TestURLLoaderClient); |
}; |