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

Unified Diff: chrome/browser/net/errorpage_browsertest.cc

Issue 2651753002: Enable HTTP/0.9 on non-standard ports by default (Closed)
Patch Set: Fix test Created 3 years, 11 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 | « chrome/browser/io_thread.cc ('k') | net/http/http_network_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/errorpage_browsertest.cc
diff --git a/chrome/browser/net/errorpage_browsertest.cc b/chrome/browser/net/errorpage_browsertest.cc
index 6e1fa8252b7eb4cb86dcc475115aeeeafed7e941..018c7aaaa2636316e441d5b733f1013948c82a27 100644
--- a/chrome/browser/net/errorpage_browsertest.cc
+++ b/chrome/browser/net/errorpage_browsertest.cc
@@ -1494,12 +1494,14 @@ IN_PROC_BROWSER_TEST_F(ErrorPageForIDNTest, IDN) {
EXPECT_TRUE(IsDisplayingText(browser(), kHostnameJSUnicode));
}
-// Make sure HTTP/0.9 is disabled on non-default ports by default.
+// Make sure HTTP/0.9 is enabled on non-default ports by default.
IN_PROC_BROWSER_TEST_F(ErrorPageTest, Http09WeirdPort) {
+ const char kHttp09Response[] = "JumboShrimp";
ASSERT_TRUE(embedded_test_server()->Start());
ui_test_utils::NavigateToURL(
- browser(), embedded_test_server()->GetURL("/echo-raw?spam"));
- ExpectDisplayingLocalErrorPage(browser(), net::ERR_INVALID_HTTP_RESPONSE);
+ browser(), embedded_test_server()->GetURL(std::string("/echo-raw?") +
+ kHttp09Response));
+ EXPECT_TRUE(IsDisplayingText(browser(), kHttp09Response));
}
class ErrorPageWithHttp09OnNonDefaultPortsTest : public InProcessBrowserTest {
« no previous file with comments | « chrome/browser/io_thread.cc ('k') | net/http/http_network_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698