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

Unified Diff: remoting/test/host_info.h

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: Edited merge errors, comments, and optimized code. 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/host_info.h
diff --git a/remoting/test/host_info.h b/remoting/test/host_info.h
index 06348fba735bdd59cb109f07e966068e27945195..b8347b4b94cc774d4ceb4405118ce145c98cd62e 100644
--- a/remoting/test/host_info.h
+++ b/remoting/test/host_info.h
@@ -9,6 +9,7 @@
#include <vector>
#include "base/values.h"
+#include "remoting/test/connection_setup_info.h"
namespace remoting {
namespace test {
@@ -24,6 +25,15 @@ struct HostInfo {
bool ParseHostInfo(const base::DictionaryValue& host_info);
+ // Returns true if the remote host is ready to accept connections.
joedow 2015/07/17 23:26:30 remote host or chromoting host? Since this is a h
tonychun 2015/07/20 14:29:17 Done.
+ bool IsReadyForConnection() const;
+
+ // Generates connection information to establish a chromoting connection.
+ ConnectionSetupInfo GenerateConnectionSetupInfo(
+ const std::string& access_token,
+ const std::string& user_name,
+ const std::string& pin) const;
+
std::string host_id;
std::string host_jid;
std::string host_name;

Powered by Google App Engine
This is Rietveld 408576698