diff options
author | vsevik@chromium.org <vsevik@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-31 19:01:48 +0000 |
---|---|---|
committer | vsevik@chromium.org <vsevik@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-31 19:01:48 +0000 |
commit | c7d5601fa3df36215e46de17d5699b40bce82fa4 (patch) | |
tree | 351e51d291a64939e25a14a6e78f2ec9f88e3906 /webkit/glue/multipart_response_delegate_unittest.cc | |
parent | c4bc58d55fb1b29f69fc1bccc93b74e56c99b010 (diff) | |
download | chromium_src-c7d5601fa3df36215e46de17d5699b40bce82fa4.zip chromium_src-c7d5601fa3df36215e46de17d5699b40bce82fa4.tar.gz chromium_src-c7d5601fa3df36215e46de17d5699b40bce82fa4.tar.bz2 |
Migrated chromium to new didReceiveData method in WebURLLoaderClient
BUG=40502
Review URL: http://codereview.chromium.org/6737026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80039 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/multipart_response_delegate_unittest.cc')
-rw-r--r-- | webkit/glue/multipart_response_delegate_unittest.cc | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/webkit/glue/multipart_response_delegate_unittest.cc b/webkit/glue/multipart_response_delegate_unittest.cc index fbefaaa..c48c2de 100644 --- a/webkit/glue/multipart_response_delegate_unittest.cc +++ b/webkit/glue/multipart_response_delegate_unittest.cc @@ -66,12 +66,23 @@ class MockWebURLLoaderClient : public WebURLLoaderClient { response_ = response; data_.clear(); } - virtual void didReceiveData(WebURLLoader* loader, - const char* data, int data_length) { + // FIXME(vsevik): rename once renamed in webkit + virtual void didReceiveData2( + WebKit::WebURLLoader* loader, + const char* data, + int data_length, + int length_received) { ++received_data_; data_.append(data, data_length); } + // FIXME(vsevik): remove once removed in webkit + virtual void didReceiveData( + WebKit::WebURLLoader* loader, + const char* data, + int data_length) { + didReceiveData2(loader, data, data_length, -1); + } virtual void didFinishLoading(WebURLLoader*, double finishTime) {} virtual void didFail(WebURLLoader*, const WebURLError&) {} |