| 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 fc9fbfe6e356d97fd84b617a580027328dacaced..e55781d15a5d3c6f60a62c2c780094990f00b9a0 100644
|
| --- a/content/browser/loader/test_url_loader_client.cc
|
| +++ b/content/browser/loader/test_url_loader_client.cc
|
| @@ -71,6 +71,21 @@ 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) {
|
| + EXPECT_TRUE(ack_callback);
|
| + EXPECT_FALSE(has_received_response_);
|
| + EXPECT_FALSE(has_received_completion_);
|
| + EXPECT_LT(0, current_position);
|
| + EXPECT_LE(current_position, total_size);
|
| +
|
| + has_received_upload_progress_ = true;
|
| + current_upload_position_ = current_position;
|
| + total_upload_size_ = total_size;
|
| + ack_callback.Run();
|
| +}
|
| +
|
| void TestURLLoaderClient::OnStartLoadingResponseBody(
|
| mojo::ScopedDataPipeConsumerHandle body) {
|
| EXPECT_TRUE(has_received_response_);
|
|
|