Index: Source/modules/websockets/DOMWebSocketTest.cpp |
diff --git a/Source/modules/websockets/DOMWebSocketTest.cpp b/Source/modules/websockets/DOMWebSocketTest.cpp |
index 5ba607a0273314720b2de46c77052d757e5de323..04b6d7c3f77ac53a64d56ece2e570e5869f0ef53 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; |
} |