| Index: content/test/net/url_request_mock_http_job.cc
|
| ===================================================================
|
| --- content/test/net/url_request_mock_http_job.cc (revision 142108)
|
| +++ content/test/net/url_request_mock_http_job.cc (working copy)
|
| @@ -120,6 +120,15 @@
|
| return info.headers && info.headers->GetMimeType(mime_type);
|
| }
|
|
|
| +int URLRequestMockHTTPJob::GetResponseCode() const {
|
| + net::HttpResponseInfo info;
|
| + GetResponseInfoConst(&info);
|
| + // If we have headers, get the response code from them.
|
| + if (info.headers)
|
| + return info.headers->response_code();
|
| + return net::URLRequestJob::GetResponseCode();
|
| +}
|
| +
|
| bool URLRequestMockHTTPJob::GetCharset(std::string* charset) {
|
| net::HttpResponseInfo info;
|
| GetResponseInfo(&info);
|
|
|