summaryrefslogtreecommitdiffstats
path: root/net/url_request
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-08 08:28:17 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-08 08:28:17 +0000
commitfb6f7180a951efeff59918c3b1e8493f20efd0d8 (patch)
tree2c77cf41bd78917cf8f48b944f44c502377cce72 /net/url_request
parent274323c679690cd7d71c80989977812c9959e001 (diff)
downloadchromium_src-fb6f7180a951efeff59918c3b1e8493f20efd0d8.zip
chromium_src-fb6f7180a951efeff59918c3b1e8493f20efd0d8.tar.gz
chromium_src-fb6f7180a951efeff59918c3b1e8493f20efd0d8.tar.bz2
Remove bzip2 decoding support completely.
BUG=14801,26577 TEST=see bug. Review URL: http://codereview.chromium.org/466038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34047 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request')
-rw-r--r--net/url_request/url_request_unittest.cc56
1 files changed, 0 insertions, 56 deletions
diff --git a/net/url_request/url_request_unittest.cc b/net/url_request/url_request_unittest.cc
index 16af0d0..0fbe18f 100644
--- a/net/url_request/url_request_unittest.cc
+++ b/net/url_request/url_request_unittest.cc
@@ -846,62 +846,6 @@ TEST_F(URLRequestTestHTTP, ResponseHeadersTest) {
EXPECT_EQ("a, b", header);
}
-// TODO(jar): 14801 Remove BZIP code completely.
-TEST_F(URLRequestTest, DISABLED_BZip2ContentTest) {
- scoped_refptr<HTTPTestServer> server =
- HTTPTestServer::CreateServer(L"net/data/filter_unittests", NULL);
- ASSERT_TRUE(NULL != server.get());
-
- // for localhost domain, we also should support bzip2 encoding
- // first, get the original file
- TestDelegate d1;
- TestURLRequest req1(server->TestServerPage("realfiles/google.txt"), &d1);
- req1.Start();
- MessageLoop::current()->Run();
-
- const std::string& got_content = d1.data_received();
-
- // second, get bzip2 content
- TestDelegate d2;
- TestURLRequest req2(server->TestServerPage("realbz2files/google.txt"), &d2);
- req2.Start();
- MessageLoop::current()->Run();
-
- const std::string& got_bz2_content = d2.data_received();
-
- // compare those two results
- EXPECT_EQ(got_content, got_bz2_content);
-}
-
-// TODO(jar): 14801 Remove BZIP code completely.
-TEST_F(URLRequestTest, DISABLED_BZip2ContentTest_IncrementalHeader) {
- scoped_refptr<HTTPTestServer> server =
- HTTPTestServer::CreateServer(L"net/data/filter_unittests", NULL);
- ASSERT_TRUE(NULL != server.get());
-
- // for localhost domain, we also should support bzip2 encoding
- // first, get the original file
- TestDelegate d1;
- TestURLRequest req1(server->TestServerPage("realfiles/google.txt"), &d1);
- req1.Start();
- MessageLoop::current()->Run();
-
- const std::string& got_content = d1.data_received();
-
- // second, get bzip2 content. ask the testserver to send the BZ2 header in
- // two chunks with a delay between them. this tests our fix for bug 867161.
- TestDelegate d2;
- TestURLRequest req2(server->TestServerPage(
- "realbz2files/google.txt?incremental-header"), &d2);
- req2.Start();
- MessageLoop::current()->Run();
-
- const std::string& got_bz2_content = d2.data_received();
-
- // compare those two results
- EXPECT_EQ(got_content, got_bz2_content);
-}
-
#if defined(OS_WIN)
TEST_F(URLRequestTest, ResolveShortcutTest) {
FilePath app_path;