Chromium Code Reviews| Index: remoting/test/chromoting_host_info.h |
| diff --git a/remoting/test/chromoting_host_info.h b/remoting/test/chromoting_host_info.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..3e32d62a0d56a2e2b01ceacdfb78b4db93e9984b |
| --- /dev/null |
| +++ b/remoting/test/chromoting_host_info.h |
| @@ -0,0 +1,37 @@ |
| +// 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_CHROMOTING_HOST_INFO_H_ |
| +#define REMOTING_TEST_CHROMOTING_HOST_INFO_H_ |
| + |
| +#include <string> |
| +#include <vector> |
| + |
| +#include "base/values.h" |
| + |
| +namespace remoting { |
| +namespace test { |
| + |
| +enum ChromotingHostStatus { |
| + kChromotingHostStatusOnline, |
| + 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
|
| +}; |
| + |
| +struct ChromotingHostInfo { |
| + 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.
|
| + ~ChromotingHostInfo(); |
| + |
| + std::string host_id; |
| + std::string host_jid; |
| + std::string host_name; |
| + 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.
|
| + std::string offline_reason; |
| + std::string public_key; |
| + std::vector<std::string> tokenUrlPatterns; |
|
joedow
2015/07/06 22:19:12
token_url_patterns
tonychun
2015/07/08 03:12:13
Done.
|
| +}; |
| + |
| +} // namespace test |
| +} // namespace remoting |
| + |
| +#endif // REMOTING_TEST_CHROMOTING_HOST_INFO_H_ |