Index: remoting/host/video_frame_recorder_unittest.cc |
diff --git a/remoting/host/video_frame_recorder_unittest.cc b/remoting/host/video_frame_recorder_unittest.cc |
index 319201254a53edbb69c1d1ff0d83132f8bb9265e..becdc5f8c16f281442ffca90ba4e2f6d6b8fe4bb 100644 |
--- a/remoting/host/video_frame_recorder_unittest.cc |
+++ b/remoting/host/video_frame_recorder_unittest.cc |
@@ -119,16 +119,15 @@ void VideoFrameRecorderTest::TearDown() { |
void VideoFrameRecorderTest::CreateAndWrapEncoder() { |
scoped_ptr<VideoEncoder> encoder(new VideoEncoderVerbatim()); |
- encoder_ = recorder_->WrapVideoEncoder(encoder.Pass()); |
+ encoder_ = recorder_->WrapVideoEncoder(std::move(encoder)); |
// Encode a dummy frame to bind the wrapper to the TaskRunner. |
EncodeDummyFrame(); |
} |
scoped_ptr<webrtc::DesktopFrame> VideoFrameRecorderTest::CreateNextFrame() { |
- scoped_ptr<webrtc::DesktopFrame> frame( |
- new webrtc::BasicDesktopFrame(webrtc::DesktopSize(kFrameWidth, |
- kFrameHeight))); |
+ scoped_ptr<webrtc::DesktopFrame> frame(new webrtc::BasicDesktopFrame( |
+ webrtc::DesktopSize(kFrameWidth, kFrameHeight))); |
// Fill content, DPI and updated-region based on |frame_count_| so that each |
// generated frame is different. |
@@ -138,7 +137,7 @@ scoped_ptr<webrtc::DesktopFrame> VideoFrameRecorderTest::CreateNextFrame() { |
frame->mutable_updated_region()->SetRect( |
webrtc::DesktopRect::MakeWH(frame_count_, frame_count_)); |
- return frame.Pass(); |
+ return frame; |
} |
void VideoFrameRecorderTest::CreateTestFrames() { |