Index: remoting/host/screen_recorder_unittest.cc |
diff --git a/remoting/host/screen_recorder_unittest.cc b/remoting/host/screen_recorder_unittest.cc |
index 4a821e9bd371a7e5416febc63593d2e6a19b2bf7..05c0904e4467ecaad7d2abeb59e81e99e7ba57a8 100644 |
--- a/remoting/host/screen_recorder_unittest.cc |
+++ b/remoting/host/screen_recorder_unittest.cc |
@@ -48,8 +48,7 @@ ACTION(FinishEncode) { |
} |
ACTION(FinishSend) { |
- arg1->Run(); |
- delete arg1; |
+ arg1.Run(); |
} |
// Helper method to quit the main message loop. |
@@ -131,7 +130,7 @@ TEST_F(ScreenRecorderTest, OneRecordCycle) { |
// Expect the client be notified. |
EXPECT_CALL(video_stub, ProcessVideoPacket(_, _)) |
.Times(1) |
- .WillOnce(DoAll(DeleteArg<0>(), DeleteArg<1>())); |
+ .WillOnce(DeleteArg<0>()); |
EXPECT_CALL(video_stub, GetPendingPackets()) |
.Times(AtLeast(0)) |
.WillRepeatedly(Return(0)); |