OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <string> | 5 #include <string> |
6 | 6 |
7 #include "base/strings/string_util.h" | 7 #include "base/strings/string_util.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "chrome/browser/chrome_notification_types.h" | 9 #include "chrome/browser/chrome_notification_types.h" |
10 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 WebSocketBasicAuthNoCreds) { | 278 WebSocketBasicAuthNoCreds) { |
279 // Launch a basic-auth-protected WebSocket server. | 279 // Launch a basic-auth-protected WebSocket server. |
280 ws_server_.set_websocket_basic_auth(true); | 280 ws_server_.set_websocket_basic_auth(true); |
281 ASSERT_TRUE(ws_server_.Start()); | 281 ASSERT_TRUE(ws_server_.Start()); |
282 | 282 |
283 ConnectTo(ws_server_.GetURL("echo-with-no-extension")); | 283 ConnectTo(ws_server_.GetURL("echo-with-no-extension")); |
284 | 284 |
285 EXPECT_EQ("FAIL", WaitAndGetTitle()); | 285 EXPECT_EQ("FAIL", WaitAndGetTitle()); |
286 } | 286 } |
287 | 287 |
| 288 // HTTPS connection limits should not be applied to wss:. This is only tested |
| 289 // for secure connections here because the unencrypted case is tested in the |
| 290 // Blink layout tests, and browser tests are expensive to run. |
| 291 IN_PROC_BROWSER_TEST_F(WebSocketBrowserTest, SSLConnectionLimit) { |
| 292 ASSERT_TRUE(wss_server_.Start()); |
| 293 |
| 294 NavigateToHTTPS("multiple-connections.html"); |
| 295 |
| 296 EXPECT_EQ("PASS", WaitAndGetTitle()); |
| 297 } |
| 298 |
288 } // namespace | 299 } // namespace |
OLD | NEW |