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)); |
} |