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

Unified Diff: third_party/WebKit/Source/modules/websockets/DOMWebSocketTest.cpp

Issue 2432883002: Replaced PassRefPtr copies with moves in unit tests. (Closed)
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/websockets/DOMWebSocketTest.cpp
diff --git a/third_party/WebKit/Source/modules/websockets/DOMWebSocketTest.cpp b/third_party/WebKit/Source/modules/websockets/DOMWebSocketTest.cpp
index 23f7da6e76a814faaab75f53c46e6b8258ee8bf8..9ed57cfd007888b9bbe1cd49fe39ec30bef5efeb 100644
--- a/third_party/WebKit/Source/modules/websockets/DOMWebSocketTest.cpp
+++ b/third_party/WebKit/Source/modules/websockets/DOMWebSocketTest.cpp
@@ -49,7 +49,8 @@ class MockWebSocketChannel : public WebSocketChannel {
MOCK_METHOD2(connect, bool(const KURL&, const String&));
MOCK_METHOD1(send, void(const CString&));
MOCK_METHOD3(send, void(const DOMArrayBuffer&, unsigned, unsigned));
- MOCK_METHOD1(send, void(PassRefPtr<BlobDataHandle>));
+ MOCK_METHOD1(sendMock, void(BlobDataHandle*));
+ void send(PassRefPtr<BlobDataHandle> handle) { sendMock(handle.get()); }
MOCK_METHOD1(sendTextAsCharVectorMock, void(Vector<char>*));
void sendTextAsCharVector(std::unique_ptr<Vector<char>> vector) {
sendTextAsCharVectorMock(vector.get());
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/FetchDataLoaderTest.cpp ('k') | third_party/WebKit/Source/platform/PODFreeListArena.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698