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

Unified Diff: chrome/test/remoting/remote_desktop_browsertest.cc

Issue 1607143002: Fixing the Remote Desktop Browser Test (Me2Me connection test) Failure (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/remoting/remote_desktop_browsertest.cc
diff --git a/chrome/test/remoting/remote_desktop_browsertest.cc b/chrome/test/remoting/remote_desktop_browsertest.cc
index e1f52288c07f880a48dcd57079f06ef77d566bf3..258c5aaabd6c475f5db0a147269b69e85b19dd48 100644
--- a/chrome/test/remoting/remote_desktop_browsertest.cc
+++ b/chrome/test/remoting/remote_desktop_browsertest.cc
@@ -588,7 +588,7 @@ void RemoteDesktopBrowserTest::ConnectToRemoteHost(
std::string element_id = "host_" + host_id;
ConditionalTimeoutWaiter hostOnlineWaiter(
joedow 2016/01/20 22:23:06 You may want to add a comment about what this code
alog1 2016/01/20 22:39:54 Done.
- base::TimeDelta::FromSeconds(30), base::TimeDelta::FromSeconds(5),
+ base::TimeDelta::FromSeconds(60), base::TimeDelta::FromSeconds(20),
base::Bind(&RemoteDesktopBrowserTest::IsHostOnline,
base::Unretained(this), host_id));
EXPECT_TRUE(hostOnlineWaiter.Wait());
@@ -820,14 +820,10 @@ void RemoteDesktopBrowserTest::WaitForConnection() {
}
bool RemoteDesktopBrowserTest::IsHostOnline(const std::string& host_id) {
- bool refresh_host_list =
- ExecuteScriptAndExtractBool("remoting.hostList.refreshAndDisplay()");
- if (!refresh_host_list) {
- return false;
- }
+ ExecuteScript("remoting.hostList.refreshAndDisplay()");
- // Verify the host is online.
+ // Verify the host is online.
std::string element_id = "host_" + host_id;
std::string host_div_class = ExecuteScriptAndExtractString(
"document.getElementById('" + element_id + "').parentNode.className");
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698