OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "config.h" | 5 #include "config.h" |
6 #include "modules/websockets/WebSocketChannel.h" | 6 #include "modules/websockets/WebSocketChannel.h" |
7 | 7 |
| 8 #include "core/dom/Document.h" |
8 #include "core/fileapi/Blob.h" | 9 #include "core/fileapi/Blob.h" |
9 #include "core/frame/ConsoleTypes.h" | 10 #include "core/frame/ConsoleTypes.h" |
10 #include "core/testing/DummyPageHolder.h" | 11 #include "core/testing/DummyPageHolder.h" |
11 #include "modules/websockets/NewWebSocketChannelImpl.h" | 12 #include "modules/websockets/NewWebSocketChannelImpl.h" |
12 #include "modules/websockets/WebSocketChannelClient.h" | 13 #include "modules/websockets/WebSocketChannelClient.h" |
13 #include "platform/heap/Handle.h" | 14 #include "platform/heap/Handle.h" |
14 #include "platform/weborigin/KURL.h" | 15 #include "platform/weborigin/KURL.h" |
15 #include "public/platform/WebSerializedOrigin.h" | 16 #include "public/platform/WebSerializedOrigin.h" |
16 #include "public/platform/WebSocketHandle.h" | 17 #include "public/platform/WebSocketHandle.h" |
17 #include "public/platform/WebSocketHandleClient.h" | 18 #include "public/platform/WebSocketHandleClient.h" |
(...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
733 EXPECT_CALL(*channelClient(), didReceiveMessageError()); | 734 EXPECT_CALL(*channelClient(), didReceiveMessageError()); |
734 EXPECT_CALL(*channelClient(), didClose(WebSocketChannelClient::ClosingHa
ndshakeIncomplete, WebSocketChannel::CloseEventCodeAbnormalClosure, String())); | 735 EXPECT_CALL(*channelClient(), didClose(WebSocketChannelClient::ClosingHa
ndshakeIncomplete, WebSocketChannel::CloseEventCodeAbnormalClosure, String())); |
735 } | 736 } |
736 | 737 |
737 channel()->fail("fail message from WebSocket", ErrorMessageLevel, "sourceURL
", 1234); | 738 channel()->fail("fail message from WebSocket", ErrorMessageLevel, "sourceURL
", 1234); |
738 } | 739 } |
739 | 740 |
740 } // namespace | 741 } // namespace |
741 | 742 |
742 } // namespace blink | 743 } // namespace blink |
OLD | NEW |