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

Unified Diff: content/browser/renderer_host/resource_dispatcher_host_uitest.cc

Issue 9704023: Replace URLRequestFailedDnsJob with URLRequestFailedJob (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fix weak ptr factory usage Created 8 years, 9 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 | « chrome/test/data/iframe_dns_error.html ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/resource_dispatcher_host_uitest.cc
===================================================================
--- content/browser/renderer_host/resource_dispatcher_host_uitest.cc (revision 126973)
+++ content/browser/renderer_host/resource_dispatcher_host_uitest.cc (working copy)
@@ -17,8 +17,9 @@
#include "chrome/test/ui/ui_test.h"
#include "content/common/test_url_constants.h"
#include "content/public/common/url_constants.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 "net/base/net_errors.h"
#include "net/base/net_util.h"
#include "net/test/test_server.h"
@@ -351,7 +352,9 @@
// http://crbug.com/22877.
ASSERT_EQ(AUTOMATION_MSG_NAVIGATION_SUCCESS,
tab->NavigateToURLBlockUntilNavigationsComplete(
- GURL(URLRequestFailedDnsJob::kTestUrl), 2));
+ GURL(URLRequestFailedJob::GetMockHttpUrl(
+ net::ERR_NAME_NOT_RESOLVED)),
+ 2));
EXPECT_NE(L"set cookie on unload", GetActiveTabTitle());
// Check that the cookie was set, meaning that the onunload handler ran.
« no previous file with comments | « chrome/test/data/iframe_dns_error.html ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698