| 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 "modules/websockets/WebSocketChannel.h" | 5 #include "modules/websockets/WebSocketChannel.h" |
| 6 | 6 |
| 7 #include <stdint.h> |
| 8 #include <memory> |
| 7 #include "core/dom/DOMArrayBuffer.h" | 9 #include "core/dom/DOMArrayBuffer.h" |
| 8 #include "core/dom/Document.h" | 10 #include "core/dom/Document.h" |
| 9 #include "core/fileapi/Blob.h" | 11 #include "core/fileapi/Blob.h" |
| 10 #include "core/testing/DummyPageHolder.h" | 12 #include "core/testing/DummyPageHolder.h" |
| 11 #include "modules/websockets/DocumentWebSocketChannel.h" | 13 #include "modules/websockets/DocumentWebSocketChannel.h" |
| 12 #include "modules/websockets/WebSocketChannelClient.h" | 14 #include "modules/websockets/WebSocketChannelClient.h" |
| 13 #include "modules/websockets/WebSocketHandle.h" | 15 #include "modules/websockets/WebSocketHandle.h" |
| 14 #include "modules/websockets/WebSocketHandleClient.h" | 16 #include "modules/websockets/WebSocketHandleClient.h" |
| 15 #include "platform/heap/Handle.h" | 17 #include "platform/heap/Handle.h" |
| 16 #include "platform/weborigin/KURL.h" | 18 #include "platform/weborigin/KURL.h" |
| 19 #include "platform/wtf/PtrUtil.h" |
| 20 #include "platform/wtf/Vector.h" |
| 21 #include "platform/wtf/text/WTFString.h" |
| 17 #include "testing/gmock/include/gmock/gmock.h" | 22 #include "testing/gmock/include/gmock/gmock.h" |
| 18 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
| 19 #include "wtf/PtrUtil.h" | |
| 20 #include "wtf/Vector.h" | |
| 21 #include "wtf/text/WTFString.h" | |
| 22 #include <memory> | |
| 23 #include <stdint.h> | |
| 24 | 24 |
| 25 using testing::_; | 25 using testing::_; |
| 26 using testing::InSequence; | 26 using testing::InSequence; |
| 27 using testing::PrintToString; | 27 using testing::PrintToString; |
| 28 using testing::AnyNumber; | 28 using testing::AnyNumber; |
| 29 using testing::SaveArg; | 29 using testing::SaveArg; |
| 30 | 30 |
| 31 namespace blink { | 31 namespace blink { |
| 32 | 32 |
| 33 namespace { | 33 namespace { |
| (...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 771 WebSocketChannel::kCloseEventCodeAbnormalClosure, String())); | 771 WebSocketChannel::kCloseEventCodeAbnormalClosure, String())); |
| 772 } | 772 } |
| 773 | 773 |
| 774 Channel()->Fail("fail message from WebSocket", kErrorMessageLevel, | 774 Channel()->Fail("fail message from WebSocket", kErrorMessageLevel, |
| 775 SourceLocation::Create(String(), 0, 0, nullptr)); | 775 SourceLocation::Create(String(), 0, 0, nullptr)); |
| 776 } | 776 } |
| 777 | 777 |
| 778 } // namespace | 778 } // namespace |
| 779 | 779 |
| 780 } // namespace blink | 780 } // namespace blink |
| OLD | NEW |