Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(328)

Unified Diff: remoting/host/video_frame_recorder_unittest.cc

Issue 1549493004: Use std::move() instead of .Pass() in remoting/host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_not_pass
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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() {

Powered by Google App Engine
This is Rietveld 408576698