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

Side by Side Diff: chrome/browser/net/websocket_browsertest.cc

Issue 436493002: Handle multiple simultanous wss: connections. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/interator/iterator/ Created 6 years, 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | net/data/websocket/README » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | net/data/websocket/README » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698