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

Unified Diff: remoting/test/app_remoting_connection_helper.cc

Issue 1237093004: Support for connecting to localhost on the chromoting test driver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactored App Remoting and Chromoting code to share StartConnection method. Created 5 years, 5 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
Index: remoting/test/app_remoting_connection_helper.cc
diff --git a/remoting/test/app_remoting_connection_helper.cc b/remoting/test/app_remoting_connection_helper.cc
index 83b92caa7cc19a90bd0d7c3a22673393392c4f04..d8918bf2ca7b3d521cb2039578368a8c871c1d97 100644
--- a/remoting/test/app_remoting_connection_helper.cc
+++ b/remoting/test/app_remoting_connection_helper.cc
@@ -13,6 +13,7 @@
#include "base/values.h"
#include "remoting/protocol/host_stub.h"
#include "remoting/test/app_remoting_test_driver_environment.h"
+#include "remoting/test/connection_info.h"
#include "remoting/test/remote_application_details.h"
#include "remoting/test/test_chromoting_client.h"
@@ -77,9 +78,9 @@ bool AppRemotingConnectionHelper::StartConnection() {
timer_->Start(FROM_HERE, base::TimeDelta::FromSeconds(30),
run_loop_->QuitClosure());
- client_->StartConnection(AppRemotingSharedData->user_name(),
- AppRemotingSharedData->access_token(),
- remote_host_info);
+ client_->StartConnection(remote_host_info.GenerateConnectionInfo(
+ AppRemotingSharedData->access_token(),
+ AppRemotingSharedData->user_name()));
run_loop_->Run();
timer_->Stop();

Powered by Google App Engine
This is Rietveld 408576698