summaryrefslogtreecommitdiffstats
path: root/chrome/browser/net/url_request_mock_util.cc
diff options
context:
space:
mode:
authormmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-19 16:44:10 +0000
committermmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-19 16:44:10 +0000
commit72c8fe6115b6ccb8b0c815c587bab32aaf9a92fd (patch)
treeee383f7036830533479f41d5b7d53f1f7918fb8d /chrome/browser/net/url_request_mock_util.cc
parent840512437ad6bab5d95c7910bacb1f641a368e0b (diff)
downloadchromium_src-72c8fe6115b6ccb8b0c815c587bab32aaf9a92fd.zip
chromium_src-72c8fe6115b6ccb8b0c815c587bab32aaf9a92fd.tar.gz
chromium_src-72c8fe6115b6ccb8b0c815c587bab32aaf9a92fd.tar.bz2
Modify URLRequestFailedDnsJob to allow any error code to be
returned while "connecting" to either an fake HTTP or HTTPS server, and rename it to URLRequestFailedJob. This is needed for testing the (unlanded) captive portal detection/response code. BUG=87100 Review URL: https://chromiumcodereview.appspot.com/9704023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127488 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net/url_request_mock_util.cc')
-rw-r--r--chrome/browser/net/url_request_mock_util.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/net/url_request_mock_util.cc b/chrome/browser/net/url_request_mock_util.cc
index 23bd041..98219ad 100644
--- a/chrome/browser/net/url_request_mock_util.cc
+++ b/chrome/browser/net/url_request_mock_util.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -11,7 +11,7 @@
#include "chrome/browser/net/url_request_mock_link_doctor_job.h"
#include "chrome/common/chrome_paths.h"
#include "content/public/browser/browser_thread.h"
-#include "content/test/net/url_request_failed_dns_job.h"
+#include "content/test/net/url_request_failed_job.h"
#include "content/test/net/url_request_mock_http_job.h"
#include "content/test/net/url_request_slow_download_job.h"
#include "content/test/net/url_request_slow_http_job.h"
@@ -34,7 +34,7 @@ void SetUrlRequestMocksEnabled(bool enabled) {
net::URLRequestFilter::GetInstance()->ClearHandlers();
- URLRequestFailedDnsJob::AddUrlHandler();
+ URLRequestFailedJob::AddUrlHandler();
URLRequestMockLinkDoctorJob::AddUrlHandler();
URLRequestSlowDownloadJob::AddUrlHandler();