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

Unified Diff: net/websockets/websocket_unittest.cc

Issue 384024: There was confusion in the mock socket classes due to... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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
« no previous file with comments | « net/socket_stream/socket_stream_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/websockets/websocket_unittest.cc
===================================================================
--- net/websockets/websocket_unittest.cc (revision 31569)
+++ net/websockets/websocket_unittest.cc (working copy)
@@ -147,8 +147,8 @@
"WebSocket-Protocol: sample\r\n"
"\r\n"),
};
- StaticMockSocket data(data_reads, data_writes);
- mock_socket_factory.AddMockSocket(&data);
+ StaticSocketDataProvider data(data_reads, data_writes);
+ mock_socket_factory.AddSocketDataProvider(&data);
WebSocket::Request* request(
new WebSocket::Request(GURL("ws://example.com/demo"),
@@ -207,8 +207,8 @@
"WebSocket-Protocol: sample\r\n"
"\r\n"),
};
- StaticMockSocket data(data_reads, data_writes);
- mock_socket_factory.AddMockSocket(&data);
+ StaticSocketDataProvider data(data_reads, data_writes);
+ mock_socket_factory.AddSocketDataProvider(&data);
WebSocket::Request* request(
new WebSocket::Request(GURL("ws://example.com/demo"),
Property changes on: net\websockets\websocket_unittest.cc
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « net/socket_stream/socket_stream_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698