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

Unified Diff: content/test/net/url_request_slow_download_job.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/test/net/url_request_abort_on_end_job.cc ('k') | content/test/plugin/plugin_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/net/url_request_slow_download_job.cc
diff --git a/content/test/net/url_request_slow_download_job.cc b/content/test/net/url_request_slow_download_job.cc
index 1d813a20dfc30d92b5873b061896a7307228f9a1..21cb8961138406b78b6c4de4fa4e177521ff1d6b 100644
--- a/content/test/net/url_request_slow_download_job.cc
+++ b/content/test/net/url_request_slow_download_job.cc
@@ -106,9 +106,11 @@ URLRequestSlowDownloadJob::URLRequestSlowDownloadJob(
}
void URLRequestSlowDownloadJob::StartAsync() {
- if (LowerCaseEqualsASCII(kFinishDownloadUrl, request_->url().spec().c_str()))
+ if (base::LowerCaseEqualsASCII(kFinishDownloadUrl,
+ request_->url().spec().c_str()))
URLRequestSlowDownloadJob::FinishPendingRequests();
- if (LowerCaseEqualsASCII(kErrorDownloadUrl, request_->url().spec().c_str()))
+ if (base::LowerCaseEqualsASCII(kErrorDownloadUrl,
+ request_->url().spec().c_str()))
URLRequestSlowDownloadJob::ErrorPendingRequests();
NotifyHeadersComplete();
@@ -167,10 +169,10 @@ URLRequestSlowDownloadJob::FillBufferHelper(
bool URLRequestSlowDownloadJob::ReadRawData(net::IOBuffer* buf, int buf_size,
int* bytes_read) {
- if (LowerCaseEqualsASCII(kFinishDownloadUrl,
- request_->url().spec().c_str()) ||
- LowerCaseEqualsASCII(kErrorDownloadUrl,
- request_->url().spec().c_str())) {
+ if (base::LowerCaseEqualsASCII(kFinishDownloadUrl,
+ request_->url().spec().c_str()) ||
+ base::LowerCaseEqualsASCII(kErrorDownloadUrl,
+ request_->url().spec().c_str())) {
VLOG(10) << __FUNCTION__ << " called w/ kFinish/ErrorDownloadUrl.";
*bytes_read = 0;
return true;
@@ -240,10 +242,10 @@ void URLRequestSlowDownloadJob::GetResponseInfoConst(
net::HttpResponseInfo* info) const {
// Send back mock headers.
std::string raw_headers;
- if (LowerCaseEqualsASCII(kFinishDownloadUrl,
- request_->url().spec().c_str()) ||
- LowerCaseEqualsASCII(kErrorDownloadUrl,
- request_->url().spec().c_str())) {
+ if (base::LowerCaseEqualsASCII(kFinishDownloadUrl,
+ request_->url().spec().c_str()) ||
+ base::LowerCaseEqualsASCII(kErrorDownloadUrl,
+ request_->url().spec().c_str())) {
raw_headers.append(
"HTTP/1.1 200 OK\n"
"Content-type: text/plain\n");
@@ -253,7 +255,8 @@ void URLRequestSlowDownloadJob::GetResponseInfoConst(
"Content-type: application/octet-stream\n"
"Cache-Control: max-age=0\n");
- if (LowerCaseEqualsASCII(kKnownSizeUrl, request_->url().spec().c_str())) {
+ if (base::LowerCaseEqualsASCII(kKnownSizeUrl,
+ request_->url().spec().c_str())) {
raw_headers.append(base::StringPrintf(
"Content-Length: %d\n",
kFirstDownloadSize + kSecondDownloadSize));
« no previous file with comments | « content/test/net/url_request_abort_on_end_job.cc ('k') | content/test/plugin/plugin_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698