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

Unified Diff: net/test/url_request/url_request_mock_data_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_data_job.h ('k') | net/test/url_request/url_request_mock_http_job.h » ('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_data_job.cc
diff --git a/net/test/url_request/url_request_mock_data_job.cc b/net/test/url_request/url_request_mock_data_job.cc
index 8b67a984a53becae9f1957f92219e85a12c23b8c..c57fbfbaf3f452186e45568385f46ca05e8f059c 100644
--- a/net/test/url_request/url_request_mock_data_job.cc
+++ b/net/test/url_request/url_request_mock_data_job.cc
@@ -127,12 +127,6 @@ int URLRequestMockDataJob::ReadRawData(IOBuffer* buf, int buf_size) {
return bytes_read;
}
-int URLRequestMockDataJob::GetResponseCode() const {
- HttpResponseInfo info;
- GetResponseInfoConst(&info);
- return info.headers->response_code();
-}
-
void URLRequestMockDataJob::ContinueWithCertificate(
X509Certificate* client_cert,
SSLPrivateKey* client_private_key) {
« no previous file with comments | « net/test/url_request/url_request_mock_data_job.h ('k') | net/test/url_request/url_request_mock_http_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698