summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authormichaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-07 19:26:48 +0000
committermichaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-07 19:26:48 +0000
commitb0110e822ac2b2db56d1b1542aad06da573cd544 (patch)
treed0bc73467f595a6c5833c93d9c55ac4466314201 /net
parent82efd8e5f5e2f489119f920f3e974caa745dc553 (diff)
downloadchromium_src-b0110e822ac2b2db56d1b1542aad06da573cd544.zip
chromium_src-b0110e822ac2b2db56d1b1542aad06da573cd544.tar.gz
chromium_src-b0110e822ac2b2db56d1b1542aad06da573cd544.tar.bz2
Revert 49081 - AppCache: Use a MockHttpServer instead of starting a seperate http server for update job unittests. This should reduce flakiness and timing variance and the total time it takes to conduct these tests.
BUG=45664 TEST=yes Review URL: http://codereview.chromium.org/2624003 TBR=michaeln@chromium.org Review URL: http://codereview.chromium.org/2669003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49084 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r--net/url_request/url_request_test_job.cc6
-rw-r--r--net/url_request/url_request_test_job.h1
2 files changed, 0 insertions, 7 deletions
diff --git a/net/url_request/url_request_test_job.cc b/net/url_request/url_request_test_job.cc
index 363d178..b1e3b5c 100644
--- a/net/url_request/url_request_test_job.cc
+++ b/net/url_request/url_request_test_job.cc
@@ -183,12 +183,6 @@ void URLRequestTestJob::GetResponseInfo(net::HttpResponseInfo* info) {
info->headers = response_headers_;
}
-int URLRequestTestJob::GetResponseCode() const {
- if (response_headers_)
- return response_headers_->response_code();
- return -1;
-}
-
bool URLRequestTestJob::IsRedirectResponse(GURL* location,
int* http_status_code) {
if (!response_headers_)
diff --git a/net/url_request/url_request_test_job.h b/net/url_request/url_request_test_job.h
index f618c07..4daabf6 100644
--- a/net/url_request/url_request_test_job.h
+++ b/net/url_request/url_request_test_job.h
@@ -93,7 +93,6 @@ class URLRequestTestJob : public URLRequestJob {
virtual void Kill();
virtual bool GetMimeType(std::string* mime_type) const;
virtual void GetResponseInfo(net::HttpResponseInfo* info);
- virtual int GetResponseCode() const;
virtual bool IsRedirectResponse(GURL* location, int* http_status_code);
protected: