Commit 1999531d authored by John Delaney's avatar John Delaney Committed by Chromium LUCI CQ

[CodeInclusion] Improve terminology in ssl_browsertest

Removes instances of master/slave.

Bug: 1169441
Change-Id: I3f937efb0c1a4f49d31514c0c5db5e8e0037d146
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2643630
Commit-Queue: John Delaney <johnidel@chromium.org>
Reviewed-by: default avatarCarlos IL <carlosil@chromium.org>
Cr-Commit-Position: refs/heads/master@{#845931}
parent dc6688d3
...@@ -1850,31 +1850,28 @@ IN_PROC_BROWSER_TEST_F(SSLUITest, TestWSSInvalidCertAndClose) { ...@@ -1850,31 +1850,28 @@ IN_PROC_BROWSER_TEST_F(SSLUITest, TestWSSInvalidCertAndClose) {
watcher.AlsoWaitForTitle(base::ASCIIToUTF16("FAIL")); watcher.AlsoWaitForTitle(base::ASCIIToUTF16("FAIL"));
// Create GURLs to test pages. // Create GURLs to test pages.
std::string master_url_path = base::StringPrintf( std::string wss_close_url_path = base::StringPrintf(
"%s?%d", "%s?%d",
embedded_test_server()->GetURL("/ssl/wss_close.html").spec().c_str(), embedded_test_server()->GetURL("/ssl/wss_close.html").spec().c_str(),
wss_server_expired_.host_port_pair().port()); wss_server_expired_.host_port_pair().port());
GURL master_url(master_url_path); GURL wss_close_url(wss_close_url_path);
std::string slave_url_path = std::string wss_loop_url_path = base::StringPrintf(
base::StringPrintf("%s?%d", "%s?%d",
embedded_test_server() embedded_test_server()->GetURL("/ssl/wss_close_loop.html").spec().c_str(),
->GetURL("/ssl/wss_close_slave.html") wss_server_expired_.host_port_pair().port());
.spec() GURL wss_loop_url(wss_loop_url_path);
.c_str(),
wss_server_expired_.host_port_pair().port());
GURL slave_url(slave_url_path);
// Create tabs and visit pages which keep on creating wss connections. // Create tabs and visit pages which keep on creating wss connections.
WebContents* tabs[16]; WebContents* tabs[16];
for (int i = 0; i < 16; ++i) { for (int i = 0; i < 16; ++i) {
tabs[i] = chrome::AddSelectedTabWithURL(browser(), slave_url, tabs[i] = chrome::AddSelectedTabWithURL(browser(), wss_loop_url,
ui::PAGE_TRANSITION_LINK); ui::PAGE_TRANSITION_LINK);
} }
chrome::SelectNextTab(browser()); chrome::SelectNextTab(browser());
// Visit a page which waits for one TLS handshake failure. // Visit a page which waits for one TLS handshake failure.
// The title will be changed to 'PASS'. // The title will be changed to 'PASS'.
ui_test_utils::NavigateToURL(browser(), master_url); ui_test_utils::NavigateToURL(browser(), wss_close_url);
const base::string16 result = watcher.WaitAndGetTitle(); const base::string16 result = watcher.WaitAndGetTitle();
EXPECT_TRUE(base::LowerCaseEqualsASCII(result, "pass")); EXPECT_TRUE(base::LowerCaseEqualsASCII(result, "pass"));
......
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title>slave tab pages which create hanging wss connection</title> <title>page which continuously creates hanging wss connection</title>
<script type="text/javascript"> <script type="text/javascript">
var href = window.location.href; var href = window.location.href;
var hostBegin = href.indexOf('/') + 2; var hostBegin = href.indexOf('/') + 2;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment