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

Side by Side Diff: Source/modules/websockets/DocumentWebSocketChannelTest.cpp

Issue 864533002: Fix template angle bracket syntax in modules (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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 unified diff | Download patch
OLDNEW
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/DOMArrayBuffer.h" 8 #include "core/dom/DOMArrayBuffer.h"
9 #include "core/dom/Document.h" 9 #include "core/dom/Document.h"
10 #include "core/fileapi/Blob.h" 10 #include "core/fileapi/Blob.h"
(...skipping 20 matching lines...) Expand all
31 using testing::_; 31 using testing::_;
32 using testing::InSequence; 32 using testing::InSequence;
33 using testing::PrintToString; 33 using testing::PrintToString;
34 using testing::AnyNumber; 34 using testing::AnyNumber;
35 35
36 36
37 namespace blink { 37 namespace blink {
38 38
39 namespace { 39 namespace {
40 40
41 typedef testing::StrictMock< testing::MockFunction<void(int)> > Checkpoint; 41 typedef testing::StrictMock< testing::MockFunction<void(int)>> Checkpoint;
42 42
43 class MockWebSocketChannelClient : public GarbageCollectedFinalized<MockWebSocke tChannelClient>, public WebSocketChannelClient { 43 class MockWebSocketChannelClient : public GarbageCollectedFinalized<MockWebSocke tChannelClient>, public WebSocketChannelClient {
44 USING_GARBAGE_COLLECTED_MIXIN(MockWebSocketChannelClient); 44 USING_GARBAGE_COLLECTED_MIXIN(MockWebSocketChannelClient);
45 public: 45 public:
46 static MockWebSocketChannelClient* create() 46 static MockWebSocketChannelClient* create()
47 { 47 {
48 return new testing::StrictMock<MockWebSocketChannelClient>(); 48 return new testing::StrictMock<MockWebSocketChannelClient>();
49 } 49 }
50 50
51 MockWebSocketChannelClient() { } 51 MockWebSocketChannelClient() { }
52 52
53 virtual ~MockWebSocketChannelClient() { } 53 virtual ~MockWebSocketChannelClient() { }
54 54
55 MOCK_METHOD2(didConnect, void(const String&, const String&)); 55 MOCK_METHOD2(didConnect, void(const String&, const String&));
56 MOCK_METHOD1(didReceiveTextMessage, void(const String&)); 56 MOCK_METHOD1(didReceiveTextMessage, void(const String&));
57 virtual void didReceiveBinaryMessage(PassOwnPtr<Vector<char> > payload) over ride 57 virtual void didReceiveBinaryMessage(PassOwnPtr<Vector<char>> payload) overr ide
58 { 58 {
59 didReceiveBinaryMessageMock(*payload); 59 didReceiveBinaryMessageMock(*payload);
60 } 60 }
61 MOCK_METHOD1(didReceiveBinaryMessageMock, void(const Vector<char>&)); 61 MOCK_METHOD1(didReceiveBinaryMessageMock, void(const Vector<char>&));
62 MOCK_METHOD0(didError, void()); 62 MOCK_METHOD0(didError, void());
63 MOCK_METHOD1(didConsumeBufferedAmount, void(uint64_t)); 63 MOCK_METHOD1(didConsumeBufferedAmount, void(uint64_t));
64 MOCK_METHOD0(didStartClosingHandshake, void()); 64 MOCK_METHOD0(didStartClosingHandshake, void());
65 MOCK_METHOD3(didClose, void(ClosingHandshakeCompletionStatus, unsigned short , const String&)); 65 MOCK_METHOD3(didClose, void(ClosingHandshakeCompletionStatus, unsigned short , const String&));
66 66
67 virtual void trace(Visitor* visitor) override 67 virtual void trace(Visitor* visitor) override
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 EXPECT_CALL(*channelClient(), didError()); 732 EXPECT_CALL(*channelClient(), didError());
733 EXPECT_CALL(*channelClient(), didClose(WebSocketChannelClient::ClosingHa ndshakeIncomplete, WebSocketChannel::CloseEventCodeAbnormalClosure, String())); 733 EXPECT_CALL(*channelClient(), didClose(WebSocketChannelClient::ClosingHa ndshakeIncomplete, WebSocketChannel::CloseEventCodeAbnormalClosure, String()));
734 } 734 }
735 735
736 channel()->fail("fail message from WebSocket", ErrorMessageLevel, "sourceURL ", 1234); 736 channel()->fail("fail message from WebSocket", ErrorMessageLevel, "sourceURL ", 1234);
737 } 737 }
738 738
739 } // namespace 739 } // namespace
740 740
741 } // namespace blink 741 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698