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

Unified Diff: content/child/resource_dispatcher_unittest.cc

Issue 2835123005: Send the decoded size when response completed and stop summing in ResourceLoader::DidReceiveData() (Closed)
Patch Set: 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/child/resource_dispatcher.cc ('k') | content/child/test_request_peer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/resource_dispatcher_unittest.cc
diff --git a/content/child/resource_dispatcher_unittest.cc b/content/child/resource_dispatcher_unittest.cc
index 24ae91c1e0e677f163963639f7ec1c24b44065f8..55d2fd0d302af90f6a08bed70db995d656f9c988 100644
--- a/content/child/resource_dispatcher_unittest.cc
+++ b/content/child/resource_dispatcher_unittest.cc
@@ -418,15 +418,17 @@ class TestResourceDispatcherDelegate : public ResourceDispatcherDelegate {
bool stale_copy_in_cache,
const base::TimeTicks& completion_time,
int64_t total_transfer_size,
- int64_t encoded_body_size) override {
+ int64_t encoded_body_size,
+ int64_t decoded_body_size) override {
original_peer_->OnReceivedResponse(response_info_);
if (!data_.empty()) {
original_peer_->OnReceivedData(
base::MakeUnique<FixedReceivedData>(data_.data(), data_.size()));
}
- original_peer_->OnCompletedRequest(
- error_code, was_ignored_by_handler, stale_copy_in_cache,
- completion_time, total_transfer_size, encoded_body_size);
+ original_peer_->OnCompletedRequest(error_code, was_ignored_by_handler,
+ stale_copy_in_cache, completion_time,
+ total_transfer_size, encoded_body_size,
+ decoded_body_size);
}
private:
« no previous file with comments | « content/child/resource_dispatcher.cc ('k') | content/child/test_request_peer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698