diff options
author | mal@chromium.org <mal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-29 02:33:01 +0000 |
---|---|---|
committer | mal@chromium.org <mal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-29 02:33:01 +0000 |
commit | acc5bd317033d426c190049c0b274643695bf58c (patch) | |
tree | 383e74176f2e4907e5ec91cf682d91ad2977d800 /webkit/glue/multipart_response_delegate_unittest.cc | |
parent | 667eb6236de3dcd394d07e6bdf28ee7fa2f63ca5 (diff) | |
download | chromium_src-acc5bd317033d426c190049c0b274643695bf58c.zip chromium_src-acc5bd317033d426c190049c0b274643695bf58c.tar.gz chromium_src-acc5bd317033d426c190049c0b274643695bf58c.tar.bz2 |
Revert r47599 because it breaks PDF viewing on windows.
BUG= 44595, 30880
TEST= http://www.ich.org/LOB/media/MEDIA3917.pdf doesn't hang the browser.
TBR= tony
Review URL: http://codereview.chromium.org/2320006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48551 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 | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/webkit/glue/multipart_response_delegate_unittest.cc b/webkit/glue/multipart_response_delegate_unittest.cc index 84d1e05..7e3cc32 100644 --- a/webkit/glue/multipart_response_delegate_unittest.cc +++ b/webkit/glue/multipart_response_delegate_unittest.cc @@ -237,8 +237,8 @@ TEST(MultipartResponseTest, MissingBoundaries) { delegate2.OnReceivedData(no_end_boundary.c_str(), static_cast<int>(no_end_boundary.length())); EXPECT_EQ(1, client.received_response_); - EXPECT_EQ(1, client.received_data_); - EXPECT_EQ("This is a sample response\n", client.data_); + EXPECT_EQ(0, client.received_data_); + EXPECT_EQ(string(), client.data_); delegate2.OnCompletedRequest(); EXPECT_EQ(1, client.received_response_); @@ -255,8 +255,8 @@ TEST(MultipartResponseTest, MissingBoundaries) { delegate3.OnReceivedData(no_boundaries.c_str(), static_cast<int>(no_boundaries.length())); EXPECT_EQ(1, client.received_response_); - EXPECT_EQ(1, client.received_data_); - EXPECT_EQ("This is a sample response\n", client.data_); + EXPECT_EQ(0, client.received_data_); + EXPECT_EQ(string(), client.data_); delegate3.OnCompletedRequest(); EXPECT_EQ(1, client.received_response_); @@ -355,20 +355,20 @@ TEST(MultipartResponseTest, BreakInBoundary) { // Break in first and second const TestChunk bound2[] = { { 0, 4, 0, 0, ""}, - { 4, 55, 1, 1, "datadatadatadat" }, - { 55, 65, 1, 2, "datadatadatadatadata" }, - { 65, 110, 2, 3, "foofoofoofoofoo" }, + { 4, 55, 1, 0, "" }, + { 55, 65, 1, 1, "datadatadatadatadata" }, + { 65, 110, 2, 2, "foofoofoofoofoo" }, }; VariousChunkSizesTest(bound2, arraysize(bound2), - 2, 3, "foofoofoofoofoo"); + 2, 2, "foofoofoofoofoo"); // Break in second only const TestChunk bound3[] = { - { 0, 55, 1, 1, "datadatadatadat" }, - { 55, 110, 2, 3, "foofoofoofoofoo" }, + { 0, 55, 1, 0, "" }, + { 55, 110, 2, 2, "foofoofoofoofoo" }, }; VariousChunkSizesTest(bound3, arraysize(bound3), - 2, 3, "foofoofoofoofoo"); + 2, 2, "foofoofoofoofoo"); } TEST(MultipartResponseTest, BreakInHeaders) { |