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

Unified Diff: net/test/url_request/url_request_slow_download_job.cc

Issue 1172753003: Move LowerCaseEqualsASCII to base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@string_util
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/proxy/proxy_server.cc ('k') | net/url_request/url_request_file_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/test/url_request/url_request_slow_download_job.cc
diff --git a/net/test/url_request/url_request_slow_download_job.cc b/net/test/url_request/url_request_slow_download_job.cc
index d736097fa74bb28617e4f4dc49cc4fa7ecbb594a..74d193441e7efce0fd98515a5543f7f04c2bd9a5 100644
--- a/net/test/url_request/url_request_slow_download_job.cc
+++ b/net/test/url_request/url_request_slow_download_job.cc
@@ -115,9 +115,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();
@@ -178,9 +180,10 @@ URLRequestSlowDownloadJob::FillBufferHelper(IOBuffer* buf,
bool URLRequestSlowDownloadJob::ReadRawData(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;
@@ -247,9 +250,10 @@ void URLRequestSlowDownloadJob::GetResponseInfoConst(
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");
@@ -259,7 +263,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 | « net/proxy/proxy_server.cc ('k') | net/url_request/url_request_file_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698