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

Side by Side Diff: chrome/test/chromedriver/chrome/status.cc

Issue 12848005: [chromedriver] Separate stuff of chrome from chromedriver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments and fix compile error on mac. Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/test/chromedriver/chrome/status.h ('k') | chrome/test/chromedriver/chrome/status_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698