From cbe04ef2b51e5a666869235e2a49714057e523da Mon Sep 17 00:00:00 2001 From: "tfarina@chromium.org" Date: Tue, 11 Jan 2011 00:13:24 +0000 Subject: net: Remove typedef net::URLRequestTestJob URLRequestTestJob; BUG=64263 TEST=compiled locally, trybots Review URL: http://codereview.chromium.org/6202002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70966 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/appcache/appcache_update_job_unittest.cc | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'webkit/appcache') diff --git a/webkit/appcache/appcache_update_job_unittest.cc b/webkit/appcache/appcache_update_job_unittest.cc index 234c967..46f4cf7 100644 --- a/webkit/appcache/appcache_update_job_unittest.cc +++ b/webkit/appcache/appcache_update_job_unittest.cc @@ -48,7 +48,7 @@ class MockHttpServer { std::string headers, body; GetMockResponse(request->url().path(), &headers, &body); - return new URLRequestTestJob(request, headers, body, true); + return new net::URLRequestTestJob(request, headers, body, true); } private: @@ -289,14 +289,15 @@ class MockFrontend : public AppCacheFrontend { // Helper factories to simulate redirected URL responses for tests. static net::URLRequestJob* RedirectFactory(net::URLRequest* request, const std::string& scheme) { - return new URLRequestTestJob(request, - URLRequestTestJob::test_redirect_headers(), - URLRequestTestJob::test_data_1(), - true); + return new net::URLRequestTestJob( + request, + net::URLRequestTestJob::test_redirect_headers(), + net::URLRequestTestJob::test_data_1(), + true); } // Helper class to simulate a URL that returns retry or success. -class RetryRequestTestJob : public URLRequestTestJob { +class RetryRequestTestJob : public net::URLRequestTestJob { public: enum RetryHeader { NO_RETRY_AFTER, @@ -380,7 +381,7 @@ class RetryRequestTestJob : public URLRequestTestJob { explicit RetryRequestTestJob(net::URLRequest* request, const std::string& headers, int response_code) - : URLRequestTestJob(request, headers, data(), true), + : net::URLRequestTestJob(request, headers, data(), true), response_code_(response_code) { } @@ -400,7 +401,7 @@ RetryRequestTestJob::RetryHeader RetryRequestTestJob::retry_after_; int RetryRequestTestJob::expected_requests_ = 0; // Helper class to check for certain HTTP headers. -class HttpHeadersRequestTestJob : public URLRequestTestJob { +class HttpHeadersRequestTestJob : public net::URLRequestTestJob { public: // Call this at the start of each HTTP header-related test. static void Initialize(const std::string& expect_if_modified_since, -- cgit v1.1