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

Unified Diff: third_party/WebKit/Source/platform/testing/weburl_loader_mock.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
Index: third_party/WebKit/Source/platform/testing/weburl_loader_mock.cc
diff --git a/third_party/WebKit/Source/platform/testing/weburl_loader_mock.cc b/third_party/WebKit/Source/platform/testing/weburl_loader_mock.cc
index 02a1d7c8d1d62b1162fd6a79464625d2f31a1ca7..82451bdefb0e728c67c36a0e35df8091588de080 100644
--- a/third_party/WebKit/Source/platform/testing/weburl_loader_mock.cc
+++ b/third_party/WebKit/Source/platform/testing/weburl_loader_mock.cc
@@ -60,14 +60,14 @@ void WebURLLoaderMock::ServeAsynchronousRequest(
return;
if (error.reason) {
- delegate->DidFail(client_, error, data.size(), 0);
+ delegate->DidFail(client_, error, data.size(), 0, 0);
return;
}
delegate->DidReceiveData(client_, data.Data(), data.size());
if (!self)
return;
- delegate->DidFinishLoading(client_, 0, data.size(), data.size());
+ delegate->DidFinishLoading(client_, 0, data.size(), data.size(), data.size());
}
WebURLRequest WebURLLoaderMock::ServeRedirect(

Powered by Google App Engine
This is Rietveld 408576698