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 df46ca526a98ee231e1cd72ea290b4e5aaeea3bb..9d18ee86f8885c27300d50723998fa24285b558e 100644 |
--- a/third_party/WebKit/Source/web/tests/sim/SimRequest.cpp |
+++ b/third_party/WebKit/Source/web/tests/sim/SimRequest.cpp |
@@ -55,16 +55,18 @@ void SimRequest::write(const String& data) { |
DCHECK(!m_error.reason); |
m_totalEncodedDataLength += data.length(); |
m_client->didReceiveData(m_loader, data.utf8().data(), data.length(), |
- data.length(), data.length()); |
+ data.length()); |
} |
void SimRequest::finish() { |
DCHECK(m_isReady); |
if (m_error.reason) { |
- m_client->didFail(m_loader, m_error, m_totalEncodedDataLength); |
+ m_client->didFail(m_loader, m_error, m_totalEncodedDataLength, |
+ m_totalEncodedDataLength); |
} else { |
// TODO(esprehn): Is claiming a request time of 0 okay for tests? |
- m_client->didFinishLoading(m_loader, 0, m_totalEncodedDataLength); |
+ m_client->didFinishLoading(m_loader, 0, m_totalEncodedDataLength, |
+ m_totalEncodedDataLength); |
} |
reset(); |
} |