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

Unified Diff: content/browser/loader/resource_dispatcher_host_unittest.cc

Issue 264613006: Move first-party cookie URL logic to browser process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 7 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 | « content/browser/loader/cross_site_resource_handler.cc ('k') | content/child/npapi/plugin_url_fetcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/loader/resource_dispatcher_host_unittest.cc
diff --git a/content/browser/loader/resource_dispatcher_host_unittest.cc b/content/browser/loader/resource_dispatcher_host_unittest.cc
index 08e5f4d17e040b7706ada50493dc550197b71656..815dda8aee4972b23811dce0952f054789035ff2 100644
--- a/content/browser/loader/resource_dispatcher_host_unittest.cc
+++ b/content/browser/loader/resource_dispatcher_host_unittest.cc
@@ -1067,7 +1067,7 @@ TEST_F(ResourceDispatcherHostTest, TestMany) {
MakeTestRequest(0, 5, net::URLRequestTestJob::test_url_redirect_to_url_2());
// Finish the redirection
- ResourceHostMsg_FollowRedirect redirect_msg(5, false, GURL());
+ ResourceHostMsg_FollowRedirect redirect_msg(5);
bool msg_was_ok;
host_.OnMessageReceived(redirect_msg, filter_.get(), &msg_was_ok);
base::MessageLoop::current()->RunUntilIdle();
@@ -2278,7 +2278,7 @@ TEST_F(ResourceDispatcherHostTest, TransferNavigationHtml) {
SetResponse("HTTP/1.1 200 OK\n"
"Content-Type: text/html\n\n",
kResponseBody);
- ResourceHostMsg_FollowRedirect redirect_msg(request_id, false, GURL());
+ ResourceHostMsg_FollowRedirect redirect_msg(request_id);
bool msg_was_ok;
host_.OnMessageReceived(redirect_msg, filter_.get(), &msg_was_ok);
base::MessageLoop::current()->RunUntilIdle();
@@ -2353,7 +2353,7 @@ TEST_F(ResourceDispatcherHostTest, TransferNavigationText) {
SetResponse("HTTP/1.1 200 OK\n"
"Content-Type: text/plain\n\n",
kResponseBody);
- ResourceHostMsg_FollowRedirect redirect_msg(request_id, false, GURL());
+ ResourceHostMsg_FollowRedirect redirect_msg(request_id);
bool msg_was_ok;
host_.OnMessageReceived(redirect_msg, filter_.get(), &msg_was_ok);
base::MessageLoop::current()->RunUntilIdle();
@@ -2436,7 +2436,7 @@ TEST_F(ResourceDispatcherHostTest, TransferNavigationWithProcessCrash) {
SetResponse("HTTP/1.1 200 OK\n"
"Content-Type: text/html\n\n",
kResponseBody);
- ResourceHostMsg_FollowRedirect redirect_msg(request_id, false, GURL());
+ ResourceHostMsg_FollowRedirect redirect_msg(request_id);
host_.OnMessageReceived(redirect_msg, first_filter.get(), &msg_was_ok);
base::MessageLoop::current()->RunUntilIdle();
@@ -2510,7 +2510,7 @@ TEST_F(ResourceDispatcherHostTest, TransferNavigationWithTwoRedirects) {
// Now that we're blocked on the redirect, simulate hitting another redirect.
SetResponse("HTTP/1.1 302 Found\n"
"Location: http://other.com/blerg\n\n");
- ResourceHostMsg_FollowRedirect redirect_msg(request_id, false, GURL());
+ ResourceHostMsg_FollowRedirect redirect_msg(request_id);
bool msg_was_ok;
host_.OnMessageReceived(redirect_msg, filter_.get(), &msg_was_ok);
base::MessageLoop::current()->RunUntilIdle();
@@ -2523,7 +2523,7 @@ TEST_F(ResourceDispatcherHostTest, TransferNavigationWithTwoRedirects) {
SetResponse("HTTP/1.1 200 OK\n"
"Content-Type: text/plain\n\n",
kResponseBody);
- ResourceHostMsg_FollowRedirect redirect_msg2(request_id, false, GURL());
+ ResourceHostMsg_FollowRedirect redirect_msg2(request_id);
host_.OnMessageReceived(redirect_msg2, filter_.get(), &msg_was_ok);
base::MessageLoop::current()->RunUntilIdle();
« no previous file with comments | « content/browser/loader/cross_site_resource_handler.cc ('k') | content/child/npapi/plugin_url_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698