| 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 0ad3168dc555a80180cad3484bf60638c77e0128..456aca11a175fee54a812645a7993173b370770b 100644
|
| --- a/remoting/protocol/connection_to_client_unittest.cc
|
| +++ b/remoting/protocol/connection_to_client_unittest.cc
|
| @@ -64,10 +64,8 @@ class ConnectionToClientTest : public testing::Test {
|
| };
|
|
|
| TEST_F(ConnectionToClientTest, SendUpdateStream) {
|
| - // Then send the actual data.
|
| - VideoPacket* packet = new VideoPacket();
|
| - viewer_->video_stub()->ProcessVideoPacket(
|
| - packet, base::Bind(&base::DeletePointer<VideoPacket>, packet));
|
| + scoped_ptr<VideoPacket> packet(new VideoPacket());
|
| + viewer_->video_stub()->ProcessVideoPacket(packet.Pass(), base::Closure());
|
|
|
| message_loop_.RunAllPending();
|
|
|
| @@ -84,10 +82,8 @@ TEST_F(ConnectionToClientTest, SendUpdateStream) {
|
| }
|
|
|
| TEST_F(ConnectionToClientTest, NoWriteAfterDisconnect) {
|
| - // Then send the actual data.
|
| - VideoPacket* packet = new VideoPacket();
|
| - viewer_->video_stub()->ProcessVideoPacket(
|
| - packet, base::Bind(&base::DeletePointer<VideoPacket>, packet));
|
| + scoped_ptr<VideoPacket> packet(new VideoPacket());
|
| + viewer_->video_stub()->ProcessVideoPacket(packet.Pass(), base::Closure());
|
|
|
| // And then close the connection to ConnectionToClient.
|
| viewer_->Disconnect();
|
|
|