Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(749)

Unified Diff: net/url_request/url_request_unittest.cc

Issue 7205011: Revert 89532 - Not allow compression when requesting multimedia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/url_request/url_request_http_job.cc ('k') | webkit/glue/media/buffered_resource_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_unittest.cc
===================================================================
--- net/url_request/url_request_unittest.cc (revision 89545)
+++ net/url_request/url_request_unittest.cc (working copy)
@@ -2845,39 +2845,6 @@
EXPECT_EQ(std::string("ru"), d.data_received());
}
-// Check that default A-E header is sent.
-TEST_F(URLRequestTestHTTP, DefaultAcceptEncoding) {
- ASSERT_TRUE(test_server_.Start());
-
- TestDelegate d;
- TestURLRequest
- req(test_server_.GetURL("echoheader?Accept-Encoding"), &d);
- req.set_context(new TestURLRequestContext());
- HttpRequestHeaders headers;
- req.SetExtraRequestHeaders(headers);
- req.Start();
- MessageLoop::current()->Run();
- EXPECT_TRUE(ContainsString(d.data_received(), "gzip"));
-}
-
-// Check that if request overrides the A-E header, the default is not appended.
-// See http://crbug.com/47381
-TEST_F(URLRequestTestHTTP, OverrideAcceptEncoding) {
- ASSERT_TRUE(test_server_.Start());
-
- TestDelegate d;
- TestURLRequest
- req(test_server_.GetURL("echoheader?Accept-Encoding"), &d);
- req.set_context(new TestURLRequestContext());
- HttpRequestHeaders headers;
- headers.SetHeader(HttpRequestHeaders::kAcceptEncoding, "identity");
- req.SetExtraRequestHeaders(headers);
- req.Start();
- MessageLoop::current()->Run();
- EXPECT_FALSE(ContainsString(d.data_received(), "gzip"));
- EXPECT_TRUE(ContainsString(d.data_received(), "identity"));
-}
-
// Check that default A-C header is sent.
TEST_F(URLRequestTestHTTP, DefaultAcceptCharset) {
ASSERT_TRUE(test_server_.Start());
« no previous file with comments | « net/url_request/url_request_http_job.cc ('k') | webkit/glue/media/buffered_resource_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698