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

Side by Side Diff: chrome/test/webdriver/http_response.cc

Issue 16753002: Use a direct include of strings headers in chrome/test/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/webdriver/http_response.h" 5 #include "chrome/test/webdriver/http_response.h"
6 6
7 #include "base/format_macros.h" 7 #include "base/format_macros.h"
8 #include "base/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "base/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 10
11 namespace webdriver { 11 namespace webdriver {
12 12
13 const int HttpResponse::kOk = 200; 13 const int HttpResponse::kOk = 200;
14 const int HttpResponse::kNoContent = 204; 14 const int HttpResponse::kNoContent = 204;
15 const int HttpResponse::kSeeOther = 303; 15 const int HttpResponse::kSeeOther = 303;
16 const int HttpResponse::kNotModified = 304; 16 const int HttpResponse::kNotModified = 304;
17 const int HttpResponse::kBadRequest = 400; 17 const int HttpResponse::kBadRequest = 400;
18 const int HttpResponse::kForbidden = 403; 18 const int HttpResponse::kForbidden = 403;
19 const int HttpResponse::kNotFound = 404; 19 const int HttpResponse::kNotFound = 404;
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 body_ = body; 149 body_ = body;
150 } 150 }
151 151
152 void HttpResponse::UpdateHeader(const std::string& name, 152 void HttpResponse::UpdateHeader(const std::string& name,
153 const std::string& new_value) { 153 const std::string& new_value) {
154 RemoveHeader(name); 154 RemoveHeader(name);
155 AddHeader(name, new_value); 155 AddHeader(name, new_value);
156 } 156 }
157 157
158 } // namespace webdriver 158 } // namespace webdriver
OLDNEW
« no previous file with comments | « chrome/test/webdriver/commands/webelement_commands.cc ('k') | chrome/test/webdriver/keycode_text_conversion.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698