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

Unified Diff: third_party/WebKit/Source/web/tests/sim/SimRequest.cpp

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
Index: third_party/WebKit/Source/web/tests/sim/SimRequest.cpp
diff --git a/third_party/WebKit/Source/web/tests/sim/SimRequest.cpp b/third_party/WebKit/Source/web/tests/sim/SimRequest.cpp
index ec33a774d9982f696468daeff978d359418dc82e..c80696205a35d8a57d4f2f2e99d7209ebf781f06 100644
--- a/third_party/WebKit/Source/web/tests/sim/SimRequest.cpp
+++ b/third_party/WebKit/Source/web/tests/sim/SimRequest.cpp
@@ -58,10 +58,11 @@ void SimRequest::Finish() {
DCHECK(is_ready_);
if (error_.reason) {
client_->DidFail(error_, total_encoded_data_length_,
- total_encoded_data_length_);
+ total_encoded_data_length_, total_encoded_data_length_);
} else {
// TODO(esprehn): Is claiming a request time of 0 okay for tests?
client_->DidFinishLoading(0, total_encoded_data_length_,
+ total_encoded_data_length_,
total_encoded_data_length_);
}
Reset();
« no previous file with comments | « third_party/WebKit/Source/web/tests/sim/SimNetwork.cpp ('k') | third_party/WebKit/public/platform/WebURLLoaderClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698