diff options
author | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-04 04:46:44 +0000 |
---|---|---|
committer | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-04 04:46:44 +0000 |
commit | b3187ca4648ae595377786332442e3547eea24f6 (patch) | |
tree | 5e1908c6b2fa2da53713363595d22b5773bc6539 /webkit/glue/multipart_response_delegate_unittest.cc | |
parent | a6020e3749e034e6fdd6c5ed656d2f3915e7b3c9 (diff) | |
download | chromium_src-b3187ca4648ae595377786332442e3547eea24f6.zip chromium_src-b3187ca4648ae595377786332442e3547eea24f6.tar.gz chromium_src-b3187ca4648ae595377786332442e3547eea24f6.tar.bz2 |
Revert "Avoid having every frame of a multipart response create a"
This reverts commit r40599.
TBR=darin
Review URL: http://codereview.chromium.org/668041
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40601 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 | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/webkit/glue/multipart_response_delegate_unittest.cc b/webkit/glue/multipart_response_delegate_unittest.cc index 7e3cc32..b8d5fbe 100644 --- a/webkit/glue/multipart_response_delegate_unittest.cc +++ b/webkit/glue/multipart_response_delegate_unittest.cc @@ -603,35 +603,4 @@ TEST(MultipartResponseTest, MultipartContentRangesTest) { EXPECT_EQ(result, false); } -TEST(MultipartResponseTest, MultipartPayloadSet) { - WebURLResponse response; - response.initialize(); - response.setMIMEType(WebString::fromUTF8("multipart/x-mixed-replace")); - MockWebURLLoaderClient client; - MultipartResponseDelegate delegate(&client, NULL, response, "bound"); - - string data( - "--bound\n" - "Content-type: text/plain\n\n" - "response data\n" - "--bound\n"); - delegate.OnReceivedData(data.c_str(), static_cast<int>(data.length())); - EXPECT_EQ(1, - client.received_response_); - EXPECT_EQ(string("response data\n"), - client.data_); - EXPECT_EQ(false, client.response_.isMultipartPayload()); - - string data2( - "Content-type: text/plain\n\n" - "response data2\n" - "--bound\n"); - delegate.OnReceivedData(data2.c_str(), static_cast<int>(data2.length())); - EXPECT_EQ(2, - client.received_response_); - EXPECT_EQ(string("response data2\n"), - client.data_); - EXPECT_EQ(true, client.response_.isMultipartPayload()); -} - } // namespace |