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

Side by Side Diff: remoting/test/remote_host_info.cc

Issue 1037723003: Updated the formatting for the app remoting test driver files using clag-format for consistency. N… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « remoting/test/remote_host_info.h ('k') | remoting/test/remote_host_info_fetcher_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "remoting/test/remote_host_info.h" 5 #include "remoting/test/remote_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 {
11 11
12 RemoteHostInfo::RemoteHostInfo() : 12 RemoteHostInfo::RemoteHostInfo()
13 remote_host_status(kRemoteHostStatusUnknown) {} 13 : remote_host_status(kRemoteHostStatusUnknown) {
14 }
14 15
15 RemoteHostInfo::~RemoteHostInfo() {} 16 RemoteHostInfo::~RemoteHostInfo() {
17 }
16 18
17 bool RemoteHostInfo::IsReadyForConnection() const { 19 bool RemoteHostInfo::IsReadyForConnection() const {
18 return (remote_host_status == kRemoteHostStatusReady); 20 return (remote_host_status == kRemoteHostStatusReady);
19 } 21 }
20 22
21 void RemoteHostInfo::SetRemoteHostStatusFromString( 23 void RemoteHostInfo::SetRemoteHostStatusFromString(
22 const std::string& status_string) { 24 const std::string& status_string) {
23 if (status_string == "done") { 25 if (status_string == "done") {
24 remote_host_status = kRemoteHostStatusReady; 26 remote_host_status = kRemoteHostStatusReady;
25 } else if (status_string == "pending") { 27 } else if (status_string == "pending") {
26 remote_host_status = kRemoteHostStatusPending; 28 remote_host_status = kRemoteHostStatusPending;
27 } else { 29 } else {
28 LOG(WARNING) << "Unknown status passed in: " << status_string; 30 LOG(WARNING) << "Unknown status passed in: " << status_string;
29 remote_host_status = kRemoteHostStatusUnknown; 31 remote_host_status = kRemoteHostStatusUnknown;
30 } 32 }
31 } 33 }
32 34
33 } // namespace test 35 } // namespace test
34 } // namespace remoting 36 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/test/remote_host_info.h ('k') | remoting/test/remote_host_info_fetcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698