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

Unified Diff: remoting/test/host_info.h

Issue 1212333011: Retrieved Hostlist information from Directory service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added missing offline_host check. 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
« no previous file with comments | « remoting/test/chromoting_test_driver.cc ('k') | remoting/test/host_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/test/host_info.h
diff --git a/remoting/test/host_info.h b/remoting/test/host_info.h
new file mode 100644
index 0000000000000000000000000000000000000000..06348fba735bdd59cb109f07e966068e27945195
--- /dev/null
+++ b/remoting/test/host_info.h
@@ -0,0 +1,39 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef REMOTING_TEST_HOST_INFO_H_
+#define REMOTING_TEST_HOST_INFO_H_
+
+#include <string>
+#include <vector>
+
+#include "base/values.h"
+
+namespace remoting {
+namespace test {
+
+enum HostStatus {
+ kHostStatusOnline,
+ kHostStatusOffline
+};
+
+struct HostInfo {
+ HostInfo();
+ ~HostInfo();
+
+ bool ParseHostInfo(const base::DictionaryValue& host_info);
+
+ std::string host_id;
+ std::string host_jid;
+ std::string host_name;
+ HostStatus status = kHostStatusOffline;
+ std::string offline_reason;
+ std::string public_key;
+ std::vector<std::string> token_url_patterns;
+};
+
+} // namespace test
+} // namespace remoting
+
+#endif // REMOTING_TEST_HOST_INFO_H_
« no previous file with comments | « remoting/test/chromoting_test_driver.cc ('k') | remoting/test/host_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698