Index: content/browser/renderer_host/websocket_dispatcher_host_unittest.cc |
diff --git a/content/browser/renderer_host/websocket_dispatcher_host_unittest.cc b/content/browser/renderer_host/websocket_dispatcher_host_unittest.cc |
index 0d2e7057bbcef5c0d90dadebc580843114e208bd..0b66297be7b42d96b25b76233a6196b045d93e47 100644 |
--- a/content/browser/renderer_host/websocket_dispatcher_host_unittest.cc |
+++ b/content/browser/renderer_host/websocket_dispatcher_host_unittest.cc |
@@ -33,6 +33,7 @@ class MockWebSocketHost : public WebSocketHost { |
MockWebSocketHost(int routing_id, |
WebSocketDispatcherHost* dispatcher, |
net::URLRequestContext* url_request_context, |
+ int delay_in_ms, |
WebSocketDispatcherHostTest* owner); |
~MockWebSocketHost() override {} |
@@ -89,9 +90,9 @@ class WebSocketDispatcherHostTest : public ::testing::Test { |
return NULL; |
} |
- WebSocketHost* CreateWebSocketHost(int routing_id) { |
- MockWebSocketHost* host = |
- new MockWebSocketHost(routing_id, dispatcher_host_.get(), NULL, this); |
+ WebSocketHost* CreateWebSocketHost(int routing_id, int delay_in_ms) { |
+ MockWebSocketHost* host = new MockWebSocketHost( |
+ routing_id, dispatcher_host_.get(), NULL, delay_in_ms, this); |
mock_hosts_.push_back(host); |
return host; |
} |
@@ -101,8 +102,9 @@ MockWebSocketHost::MockWebSocketHost( |
int routing_id, |
WebSocketDispatcherHost* dispatcher, |
net::URLRequestContext* url_request_context, |
+ int delay_in_ms, |
WebSocketDispatcherHostTest* owner) |
- : WebSocketHost(routing_id, dispatcher, url_request_context), |
+ : WebSocketHost(routing_id, dispatcher, url_request_context, delay_in_ms), |
owner_(owner->GetWeakPtr()) {} |
void MockWebSocketHost::GoAway() { |