| OLD | NEW |
| 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 #include "remoting/test/host_info.h" | 5 #include "remoting/test/host_info.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 | 8 |
| 9 namespace remoting { | 9 namespace remoting { |
| 10 namespace test { | 10 namespace test { |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 status == kHostStatusOnline) { | 63 status == kHostStatusOnline) { |
| 64 LOG(ERROR) << host_name << " is online but is missing a jabberId"; | 64 LOG(ERROR) << host_name << " is online but is missing a jabberId"; |
| 65 return false; | 65 return false; |
| 66 } | 66 } |
| 67 | 67 |
| 68 host_info.GetString("hostOfflineReason", &offline_reason); | 68 host_info.GetString("hostOfflineReason", &offline_reason); |
| 69 | 69 |
| 70 return true; | 70 return true; |
| 71 } | 71 } |
| 72 | 72 |
| 73 bool HostInfo::IsReadyForConnection() const { |
| 74 return status == kHostStatusOnline; |
| 75 } |
| 76 |
| 73 } // namespace test | 77 } // namespace test |
| 74 } // namespace remoting | 78 } // namespace remoting |
| OLD | NEW |