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

Unified Diff: net/websockets/websocket_end_to_end_test.cc

Issue 2102993002: Fix WebSocket to set first party for cookies (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: a Created 4 years, 6 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
Index: net/websockets/websocket_end_to_end_test.cc
diff --git a/net/websockets/websocket_end_to_end_test.cc b/net/websockets/websocket_end_to_end_test.cc
index afb0448dd8b7518237ebfe09f753488d1317a3f3..bfb71be45fd8b2e0baae97cebecae40c7f1283a5 100644
--- a/net/websockets/websocket_end_to_end_test.cc
+++ b/net/websockets/websocket_end_to_end_test.cc
@@ -265,10 +265,12 @@ class WebSocketEndToEndTest : public ::testing::Test {
InitialiseContext();
}
url::Origin origin(GURL("http://localhost"));
+ GURL first_party_for_cookies("http://localhost/");
event_interface_ = new ConnectTestingEventInterface;
channel_.reset(
new WebSocketChannel(base::WrapUnique(event_interface_), &context_));
- channel_->SendAddChannelRequest(GURL(socket_url), sub_protocols_, origin);
+ channel_->SendAddChannelRequest(GURL(socket_url), sub_protocols_, origin,
+ first_party_for_cookies);
event_interface_->WaitForResponse();
return !event_interface_->failed();
}

Powered by Google App Engine
This is Rietveld 408576698