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

Side by Side Diff: content/test/plugin/plugin_test.cc

Issue 448143008: Move StringToUpperASCII and LowerCaseEqualsASCII to the base namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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
« no previous file with comments | « content/test/net/url_request_slow_download_job.cc ('k') | extensions/common/csp_validator.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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "content/test/plugin/plugin_test.h" 5 #include "content/test/plugin/plugin_test.h"
6 6
7 #include "base/strings/string_number_conversions.h" 7 #include "base/strings/string_number_conversions.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "content/test/plugin/npapi_constants.h" 9 #include "content/test/plugin/npapi_constants.h"
10 10
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 return argv[idx]; 114 return argv[idx];
115 return NULL; 115 return NULL;
116 } 116 }
117 117
118 void PluginTest::SetError(const std::string &msg) { 118 void PluginTest::SetError(const std::string &msg) {
119 test_status_.append(msg); 119 test_status_.append(msg);
120 } 120 }
121 121
122 void PluginTest::ExpectStringLowerCaseEqual(const std::string &val1, 122 void PluginTest::ExpectStringLowerCaseEqual(const std::string &val1,
123 const std::string &val2) { 123 const std::string &val2) {
124 if (!LowerCaseEqualsASCII(val1, val2.c_str())) { 124 if (!base::LowerCaseEqualsASCII(val1, val2.c_str())) {
125 std::string err; 125 std::string err;
126 err = "Expected Equal for '"; 126 err = "Expected Equal for '";
127 err.append(val1); 127 err.append(val1);
128 err.append("' and '"); 128 err.append("' and '");
129 err.append(val2); 129 err.append(val2);
130 err.append("'"); 130 err.append("'");
131 SetError(err); 131 SetError(err);
132 } 132 }
133 } 133 }
134 134
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 // There is no default action 190 // There is no default action
191 return 0; 191 return 0;
192 } 192 }
193 193
194 void PluginTest::URLRedirectNotify(const char* url, int32_t status, 194 void PluginTest::URLRedirectNotify(const char* url, int32_t status,
195 void* notify_data) { 195 void* notify_data) {
196 // There is no default action 196 // There is no default action
197 } 197 }
198 198
199 } // namespace NPAPIClient 199 } // namespace NPAPIClient
OLDNEW
« no previous file with comments | « content/test/net/url_request_slow_download_job.cc ('k') | extensions/common/csp_validator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698