| 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 "base/command_line.h" | 5 #include "base/command_line.h" |
| 6 #include "base/path_service.h" | 6 #include "base/path_service.h" |
| 7 #include "base/prefs/pref_service.h" | 7 #include "base/prefs/pref_service.h" |
| 8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "base/stringprintf.h" | 9 #include "base/stringprintf.h" |
| 10 #include "base/time.h" | 10 #include "base/time.h" |
| (...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 569 IN_PROC_BROWSER_TEST_F(SSLUITest, MAYBE_TestWSSInvalidCertAndClose) { | 569 IN_PROC_BROWSER_TEST_F(SSLUITest, MAYBE_TestWSSInvalidCertAndClose) { |
| 570 ASSERT_TRUE(test_server()->Start()); | 570 ASSERT_TRUE(test_server()->Start()); |
| 571 ASSERT_TRUE(wss_server_expired_.Start()); | 571 ASSERT_TRUE(wss_server_expired_.Start()); |
| 572 | 572 |
| 573 // Setup page title observer. | 573 // Setup page title observer. |
| 574 WebContents* tab = browser()->tab_strip_model()->GetActiveWebContents(); | 574 WebContents* tab = browser()->tab_strip_model()->GetActiveWebContents(); |
| 575 content::TitleWatcher watcher(tab, ASCIIToUTF16("PASS")); | 575 content::TitleWatcher watcher(tab, ASCIIToUTF16("PASS")); |
| 576 watcher.AlsoWaitForTitle(ASCIIToUTF16("FAIL")); | 576 watcher.AlsoWaitForTitle(ASCIIToUTF16("FAIL")); |
| 577 | 577 |
| 578 // Create GURLs to test pages. | 578 // Create GURLs to test pages. |
| 579 std::string masterUrlPath = StringPrintf("%s?%d", | 579 std::string masterUrlPath = base::StringPrintf("%s?%d", |
| 580 test_server()->GetURL("files/ssl/wss_close.html").spec().c_str(), | 580 test_server()->GetURL("files/ssl/wss_close.html").spec().c_str(), |
| 581 wss_server_expired_.host_port_pair().port()); | 581 wss_server_expired_.host_port_pair().port()); |
| 582 GURL masterUrl(masterUrlPath); | 582 GURL masterUrl(masterUrlPath); |
| 583 std::string slaveUrlPath = StringPrintf("%s?%d", | 583 std::string slaveUrlPath = base::StringPrintf("%s?%d", |
| 584 test_server()->GetURL("files/ssl/wss_close_slave.html").spec().c_str(), | 584 test_server()->GetURL("files/ssl/wss_close_slave.html").spec().c_str(), |
| 585 wss_server_expired_.host_port_pair().port()); | 585 wss_server_expired_.host_port_pair().port()); |
| 586 GURL slaveUrl(slaveUrlPath); | 586 GURL slaveUrl(slaveUrlPath); |
| 587 | 587 |
| 588 // Create tabs and visit pages which keep on creating wss connections. | 588 // Create tabs and visit pages which keep on creating wss connections. |
| 589 WebContents* tabs[16]; | 589 WebContents* tabs[16]; |
| 590 for (int i = 0; i < 16; ++i) { | 590 for (int i = 0; i < 16; ++i) { |
| 591 tabs[i] = chrome::AddSelectedTabWithURL(browser(), slaveUrl, | 591 tabs[i] = chrome::AddSelectedTabWithURL(browser(), slaveUrl, |
| 592 content::PAGE_TRANSITION_LINK); | 592 content::PAGE_TRANSITION_LINK); |
| 593 } | 593 } |
| (...skipping 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1629 | 1629 |
| 1630 // Visit a page over https that contains a frame with a redirect. | 1630 // Visit a page over https that contains a frame with a redirect. |
| 1631 | 1631 |
| 1632 // XMLHttpRequest insecure content in synchronous mode. | 1632 // XMLHttpRequest insecure content in synchronous mode. |
| 1633 | 1633 |
| 1634 // XMLHttpRequest insecure content in asynchronous mode. | 1634 // XMLHttpRequest insecure content in asynchronous mode. |
| 1635 | 1635 |
| 1636 // XMLHttpRequest over bad ssl in synchronous mode. | 1636 // XMLHttpRequest over bad ssl in synchronous mode. |
| 1637 | 1637 |
| 1638 // XMLHttpRequest over OK ssl in synchronous mode. | 1638 // XMLHttpRequest over OK ssl in synchronous mode. |
| OLD | NEW |