summaryrefslogtreecommitdiffstats
path: root/webkit/glue/multipart_response_delegate_unittest.cc
diff options
context:
space:
mode:
authoryurys@google.com <yurys@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-02 18:45:07 +0000
committeryurys@google.com <yurys@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-02 18:45:07 +0000
commit5ce1080087f15aba535651d45fedd456992641cf (patch)
treee30e61c97782267077cc26a4a0939a2fbc66bdc1 /webkit/glue/multipart_response_delegate_unittest.cc
parent1a33ee397f360ee793dee7faf618ac8093f768d1 (diff)
downloadchromium_src-5ce1080087f15aba535651d45fedd456992641cf.zip
chromium_src-5ce1080087f15aba535651d45fedd456992641cf.tar.gz
chromium_src-5ce1080087f15aba535651d45fedd456992641cf.tar.bz2
DevTools: report correct content length for resources.
Currently lengthReceived always has the same value as dataLength when Safari calls ResourceHandle::didReceiveData. In Chrome expected content length is passed as lengthReceived parameter which leads to incorrect content length to be stored in InspectorResource. InspectorResource expects lengthReceived to be the length of current data chunk(see InspectorResource::addLength). So I changed lengthReceived parameter to be dataLength. Darin, I see your TODO comment at line 581 in http://src.chromium.org/viewvc/chrome/trunk/src/webkit/glue/weburlloader_impl.cc?annotate=6296 (the comment was deleted later) so I think you are right person to review the change in weburlloader_impl.cc. Please look at weburlloader_impl.cc and feel free to leave devtools specific changes to Alex and Pavel. BUG=25213 TEST=DevToolsSanityTest.TestResourceContentLength Review URL: http://codereview.chromium.org/295041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30725 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/multipart_response_delegate_unittest.cc')
-rw-r--r--webkit/glue/multipart_response_delegate_unittest.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/webkit/glue/multipart_response_delegate_unittest.cc b/webkit/glue/multipart_response_delegate_unittest.cc
index df47529..b2196040 100644
--- a/webkit/glue/multipart_response_delegate_unittest.cc
+++ b/webkit/glue/multipart_response_delegate_unittest.cc
@@ -68,8 +68,7 @@ class MockWebURLLoaderClient : public WebURLLoaderClient {
data_.clear();
}
virtual void didReceiveData(WebURLLoader* loader,
- const char* data, int data_length,
- long long length_received) {
+ const char* data, int data_length) {
++received_data_;
data_.append(data, data_length);
}