| Index: remoting/protocol/connection_to_client_unittest.cc
|
| diff --git a/remoting/protocol/connection_to_client_unittest.cc b/remoting/protocol/connection_to_client_unittest.cc
|
| index e123cfaf0db922a7a6492d43de476d2977d6ac2f..613ccaf2c9c4c899a5dde0c5b87cb3a215394bc4 100644
|
| --- a/remoting/protocol/connection_to_client_unittest.cc
|
| +++ b/remoting/protocol/connection_to_client_unittest.cc
|
| @@ -11,6 +11,7 @@
|
| #include "remoting/base/constants.h"
|
| #include "remoting/protocol/fake_session.h"
|
| #include "remoting/protocol/protocol_mock_objects.h"
|
| +#include "remoting/protocol/video_stub.h"
|
| #include "testing/gmock/include/gmock/gmock.h"
|
|
|
| using ::testing::_;
|
| @@ -20,6 +21,13 @@ using ::testing::StrictMock;
|
| namespace remoting {
|
| namespace protocol {
|
|
|
| +namespace {
|
| +
|
| +void IgnoreProgress(VideoStub::PacketProgress progress) {
|
| +}
|
| +
|
| +}
|
| +
|
| class ConnectionToClientTest : public testing::Test {
|
| public:
|
| ConnectionToClientTest() {
|
| @@ -63,7 +71,8 @@ class ConnectionToClientTest : public testing::Test {
|
|
|
| TEST_F(ConnectionToClientTest, SendUpdateStream) {
|
| scoped_ptr<VideoPacket> packet(new VideoPacket());
|
| - viewer_->video_stub()->ProcessVideoPacket(packet.Pass(), base::Closure());
|
| + viewer_->video_stub()->ProcessVideoPacket(packet.Pass(),
|
| + base::Bind(&IgnoreProgress));
|
|
|
| base::RunLoop().RunUntilIdle();
|
|
|
| @@ -82,7 +91,8 @@ TEST_F(ConnectionToClientTest, SendUpdateStream) {
|
|
|
| TEST_F(ConnectionToClientTest, NoWriteAfterDisconnect) {
|
| scoped_ptr<VideoPacket> packet(new VideoPacket());
|
| - viewer_->video_stub()->ProcessVideoPacket(packet.Pass(), base::Closure());
|
| + viewer_->video_stub()->ProcessVideoPacket(packet.Pass(),
|
| + base::Bind(&IgnoreProgress));
|
|
|
| // And then close the connection to ConnectionToClient.
|
| viewer_->Disconnect();
|
|
|