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

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

Issue 2676033002: Give URLRequestJob::GetResponseCode a better default implementation. (Closed)
Patch Set: Add headers Created 3 years, 10 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/test/url_request/url_request_mock_http_job.h ('k') | net/url_request/test_url_request_interceptor.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_mock_http_job.cc
diff --git a/net/test/url_request/url_request_mock_http_job.cc b/net/test/url_request/url_request_mock_http_job.cc
index 7fdcfaaf9012a40a2b5dc61acd79fb4f55f0ada4..fb4ec8a2569530091aea3bf364de22e5d0234e07 100644
--- a/net/test/url_request/url_request_mock_http_job.cc
+++ b/net/test/url_request/url_request_mock_http_job.cc
@@ -203,15 +203,6 @@ bool URLRequestMockHTTPJob::GetMimeType(std::string* mime_type) const {
return info.headers.get() && info.headers->GetMimeType(mime_type);
}
-int URLRequestMockHTTPJob::GetResponseCode() const {
- HttpResponseInfo info;
- GetResponseInfoConst(&info);
- // If we have headers, get the response code from them.
- if (info.headers.get())
- return info.headers->response_code();
- return URLRequestJob::GetResponseCode();
-}
-
bool URLRequestMockHTTPJob::GetCharset(std::string* charset) {
HttpResponseInfo info;
GetResponseInfo(&info);
« no previous file with comments | « net/test/url_request/url_request_mock_http_job.h ('k') | net/url_request/test_url_request_interceptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698