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

Side by Side 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: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_TEST_HOST_INFO_H_ 5 #ifndef REMOTING_TEST_HOST_INFO_H_
6 #define REMOTING_TEST_HOST_INFO_H_ 6 #define REMOTING_TEST_HOST_INFO_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/values.h" 11 #include "base/values.h"
12 12
13 namespace remoting { 13 namespace remoting {
14 namespace test { 14 namespace test {
15 15
16 enum HostStatus { 16 enum HostStatus {
17 kHostStatusOnline, 17 kHostStatusOnline,
18 kHostStatusOffline 18 kHostStatusOffline
19 }; 19 };
20 20
21 struct HostInfo { 21 struct HostInfo {
22 HostInfo(); 22 HostInfo();
23 ~HostInfo(); 23 ~HostInfo();
24 24
25 bool ParseHostInfo(const base::DictionaryValue& host_info); 25 bool ParseHostInfo(const base::DictionaryValue& host_info);
26 26
27 bool IsReadyForConnection() const;
28
27 std::string host_id; 29 std::string host_id;
28 std::string host_jid; 30 std::string host_jid;
29 std::string host_name; 31 std::string host_name;
30 HostStatus status = kHostStatusOffline; 32 HostStatus status = kHostStatusOffline;
31 std::string offline_reason; 33 std::string offline_reason;
32 std::string public_key; 34 std::string public_key;
33 std::vector<std::string> token_url_patterns; 35 std::vector<std::string> token_url_patterns;
34 }; 36 };
35 37
36 } // namespace test 38 } // namespace test
37 } // namespace remoting 39 } // namespace remoting
38 40
39 #endif // REMOTING_TEST_HOST_INFO_H_ 41 #endif // REMOTING_TEST_HOST_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698