OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/test/chromedriver/status.h" | 5 #include "chrome/test/chromedriver/chrome/status.h" |
6 | 6 |
7 #include "base/stringprintf.h" | 7 #include "base/stringprintf.h" |
8 | 8 |
9 namespace { | 9 namespace { |
10 | 10 |
11 // Returns the string equivalent of the given |ErrorCode|. | 11 // Returns the string equivalent of the given |ErrorCode|. |
12 const char* DefaultMessageForStatusCode(StatusCode code) { | 12 const char* DefaultMessageForStatusCode(StatusCode code) { |
13 switch (code) { | 13 switch (code) { |
14 case kOk: | 14 case kOk: |
15 return "ok"; | 15 return "ok"; |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 return code_ != kOk; | 93 return code_ != kOk; |
94 } | 94 } |
95 | 95 |
96 StatusCode Status::code() const { | 96 StatusCode Status::code() const { |
97 return code_; | 97 return code_; |
98 } | 98 } |
99 | 99 |
100 const std::string& Status::message() const { | 100 const std::string& Status::message() const { |
101 return msg_; | 101 return msg_; |
102 } | 102 } |
OLD | NEW |