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

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

Issue 2656693003: Merge 2617c4a136497244376e1bcf11aa356afb2a1e06 (Closed)
Patch Set: fix 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 31994cc01afe6e9c1a13ee9ad3bfe92f4a77f333..50c046e8d6fd1ba796871f37a902e3c06e05b8df 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