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

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

Issue 1082383002: [Webapp Refactor] Remove remoting.clientSession. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix browser tests Created 5 years, 8 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 | remoting/webapp/app_remoting/js/app_remoting.js » ('j') | 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 5e76bd24d254d5e6e178f972fb704b9f71c034a9..15dc575f4d959a14c0f917a0ed4a19cc9eaf4481 100644
--- a/chrome/test/remoting/remote_desktop_browsertest.cc
+++ b/chrome/test/remoting/remote_desktop_browsertest.cc
@@ -387,7 +387,7 @@ void RemoteDesktopBrowserTest::DisconnectMe2Me() {
ASSERT_TRUE(RemoteDesktopBrowserTest::IsSessionConnected());
- ExecuteScript("remoting.app.disconnect();");
+ ExecuteScript("remoting.app.getActivity().stop();");
EXPECT_TRUE(HtmlElementVisible("client-dialog"));
EXPECT_TRUE(HtmlElementVisible("client-reconnect-button"));
@@ -841,9 +841,7 @@ bool RemoteDesktopBrowserTest::IsSessionConnected() {
DismissHostVersionWarningIfVisible();
return ExecuteScriptAndExtractBool(
- "remoting.clientSession != null && "
- "remoting.clientSession.getState() == "
- "remoting.ClientSession.State.CONNECTED");
+ "remoting.currentMode === remoting.AppMode.IN_SESSION");
}
bool RemoteDesktopBrowserTest::IsPinFormVisible() {
« no previous file with comments | « no previous file | remoting/webapp/app_remoting/js/app_remoting.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698