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

Side by Side Diff: remoting/test/chromoting_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 unittests and cleaned up format of C++ 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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef REMOTING_TEST_CHROMOTING_HOST_INFO_H_
6 #define REMOTING_TEST_CHROMOTING_HOST_INFO_H_
7
8 #include <string>
9 #include <vector>
10
11 #include "base/values.h"
12
13 namespace remoting {
14 namespace test {
15
16 enum ChromotingHostStatus {
17 kChromotingHostStatusOnline,
18 kChromotingHostStatusOffline
joedow 2015/07/06 22:19:12 A good practice with enums is to add a value at th
Sergey Ulanov 2015/07/07 00:01:45 IMO it's better to avoid "null" values, unless the
tonychun 2015/07/08 03:12:13 I have added LOG(ERROR) and NOTREACHED() to print
tonychun 2015/07/08 03:12:13 The reason I didn't do this is because currently t
19 };
20
21 struct ChromotingHostInfo {
22 explicit ChromotingHostInfo(const base::DictionaryValue& item);
joedow 2015/07/06 22:19:12 item? can you make this more descriptive?
tonychun 2015/07/08 03:12:13 Done.
23 ~ChromotingHostInfo();
24
25 std::string host_id;
26 std::string host_jid;
27 std::string host_name;
28 ChromotingHostStatus status;
Sergey Ulanov 2015/07/07 00:01:45 Specify default value here (i.e. add = kChromoting
tonychun 2015/07/08 03:12:13 Done.
29 std::string offline_reason;
30 std::string public_key;
31 std::vector<std::string> tokenUrlPatterns;
joedow 2015/07/06 22:19:12 token_url_patterns
tonychun 2015/07/08 03:12:13 Done.
32 };
33
34 } // namespace test
35 } // namespace remoting
36
37 #endif // REMOTING_TEST_CHROMOTING_HOST_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698