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

Unified Diff: content/browser/websockets/websocket_manager_unittest.cc

Issue 2397393002: Provide child/frame IDs for WebSocket handshake request (Closed)
Patch Set: fix Created 4 years, 2 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/websockets/websocket_manager.cc ('k') | content/public/browser/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/websockets/websocket_manager_unittest.cc
diff --git a/content/browser/websockets/websocket_manager_unittest.cc b/content/browser/websockets/websocket_manager_unittest.cc
index c2a90b80efdb8ff1a1aadc5a6fcd2284de46cc3b..22cb7c4d43fb478a5b5b68dd11200d9ff912ec26 100644
--- a/content/browser/websockets/websocket_manager_unittest.cc
+++ b/content/browser/websockets/websocket_manager_unittest.cc
@@ -23,9 +23,14 @@ class TestWebSocketImpl : public WebSocketImpl {
public:
TestWebSocketImpl(Delegate* delegate,
blink::mojom::WebSocketRequest request,
+ int process_id,
int frame_id,
base::TimeDelta delay)
- : WebSocketImpl(delegate, std::move(request), frame_id, delay) {}
+ : WebSocketImpl(delegate,
+ std::move(request),
+ process_id,
+ frame_id,
+ delay) {}
base::TimeDelta delay() const { return delay_; }
@@ -61,10 +66,11 @@ class TestWebSocketManager : public WebSocketManager {
private:
WebSocketImpl* CreateWebSocketImpl(WebSocketImpl::Delegate* delegate,
blink::mojom::WebSocketRequest request,
+ int process_id,
int frame_id,
base::TimeDelta delay) override {
- TestWebSocketImpl* impl =
- new TestWebSocketImpl(delegate, std::move(request), frame_id, delay);
+ TestWebSocketImpl* impl = new TestWebSocketImpl(
+ delegate, std::move(request), process_id, frame_id, delay);
// We keep a vector of sockets here to track their creation order.
sockets_.push_back(impl);
return impl;
« no previous file with comments | « content/browser/websockets/websocket_manager.cc ('k') | content/public/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698