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

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

Issue 2519843002: Update ResourceResponse::encodedDataLength when response is completed (Closed)
Patch Set: Update ResourceResponse::encodedDataLength when response is completed Created 4 years, 1 month 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 2be8e69599862da7300a3e8bc13acf09eeb50342..df46ca526a98ee231e1cd72ea290b4e5aaeea3bb 100644
--- a/third_party/WebKit/Source/web/tests/sim/SimRequest.cpp
+++ b/third_party/WebKit/Source/web/tests/sim/SimRequest.cpp
@@ -61,7 +61,7 @@ void SimRequest::write(const String& data) {
void SimRequest::finish() {
DCHECK(m_isReady);
if (m_error.reason) {
- m_client->didFail(m_loader, m_error);
+ m_client->didFail(m_loader, m_error, m_totalEncodedDataLength);
} else {
// TODO(esprehn): Is claiming a request time of 0 okay for tests?
m_client->didFinishLoading(m_loader, 0, m_totalEncodedDataLength);
« 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