Index: remoting/protocol/client_video_dispatcher_unittest.cc |
diff --git a/remoting/protocol/client_video_dispatcher_unittest.cc b/remoting/protocol/client_video_dispatcher_unittest.cc |
index 5bf908cefe6b0be60aa24d1cc15cee4cb0ab6fe7..baf633949f8bd33ae0d226ef0321f85a6c6c8346 100644 |
--- a/remoting/protocol/client_video_dispatcher_unittest.cc |
+++ b/remoting/protocol/client_video_dispatcher_unittest.cc |
@@ -8,6 +8,7 @@ |
#include "base/memory/scoped_vector.h" |
#include "base/message_loop/message_loop.h" |
#include "base/run_loop.h" |
+#include "remoting/base/buffered_socket_writer.h" |
#include "remoting/base/constants.h" |
#include "remoting/proto/video.pb.h" |
#include "remoting/protocol/fake_session.h" |
@@ -76,7 +77,9 @@ ClientVideoDispatcherTest::ClientVideoDispatcherTest() |
reader_.StartReading(&host_socket_, |
base::Bind(&ClientVideoDispatcherTest::OnReadError, |
base::Unretained(this))); |
- writer_.Init(&host_socket_, BufferedSocketWriter::WriteFailedCallback()); |
+ writer_.Init( |
+ base::Bind(&P2PStreamSocket::Write, base::Unretained(&host_socket_)), |
+ BufferedSocketWriter::WriteFailedCallback()); |
} |
void ClientVideoDispatcherTest::ProcessVideoPacket( |