summaryrefslogtreecommitdiffstats
path: root/remoting/host/client_connection_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/host/client_connection_unittest.cc')
-rw-r--r--remoting/host/client_connection_unittest.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/remoting/host/client_connection_unittest.cc b/remoting/host/client_connection_unittest.cc
index d7be888..f82c887 100644
--- a/remoting/host/client_connection_unittest.cc
+++ b/remoting/host/client_connection_unittest.cc
@@ -51,14 +51,14 @@ TEST_F(ClientConnectionTest, SendUpdateStream) {
// Then send the actual data.
EXPECT_CALL(*channel_, Write(_));
- UpdateStreamPacketHeader* header = new UpdateStreamPacketHeader();
+ scoped_ptr<UpdateStreamPacketHeader> header(new UpdateStreamPacketHeader);
header->set_x(0);
header->set_y(0);
header->set_width(640);
header->set_height(480);
+
scoped_refptr<media::DataBuffer> data = new media::DataBuffer(10);
- viewer_->SendUpdateStreamPacketMessage(header, data);
- delete header;
+ viewer_->SendUpdateStreamPacketMessage(header.get(), data);
// Send the end of update message.
EXPECT_CALL(*channel_, Write(_));