| Index: Source/modules/websockets/DOMWebSocketTest.cpp
|
| diff --git a/Source/modules/websockets/DOMWebSocketTest.cpp b/Source/modules/websockets/DOMWebSocketTest.cpp
|
| index 5742dd508bfc94e1c53a3fc80b42677a9e61b660..b2d3bacd4a16395b97b3ae26895c842cc64023ed 100644
|
| --- a/Source/modules/websockets/DOMWebSocketTest.cpp
|
| +++ b/Source/modules/websockets/DOMWebSocketTest.cpp
|
| @@ -39,7 +39,7 @@ class MockWebSocketChannel : public WebSocketChannel {
|
| public:
|
| static MockWebSocketChannel* create()
|
| {
|
| - return adoptRefCountedGarbageCollected(new testing::StrictMock<MockWebSocketChannel>());
|
| + return new testing::StrictMock<MockWebSocketChannel>();
|
| }
|
|
|
| virtual ~MockWebSocketChannel()
|
| @@ -67,7 +67,7 @@ class DOMWebSocketWithMockChannel FINAL : public DOMWebSocket {
|
| public:
|
| static DOMWebSocketWithMockChannel* create(ExecutionContext* context)
|
| {
|
| - DOMWebSocketWithMockChannel* websocket = adoptRefCountedGarbageCollectedWillBeNoop(new DOMWebSocketWithMockChannel(context));
|
| + DOMWebSocketWithMockChannel* websocket = new DOMWebSocketWithMockChannel(context);
|
| websocket->suspendIfNeeded();
|
| return websocket;
|
| }
|
|
|