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

Unified Diff: remoting/protocol/video_frame_pump_unittest.cc

Issue 1534193004: Use std::move() instead of scoped_ptr<>::Pass(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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/protocol/video_frame_pump_unittest.cc
diff --git a/remoting/protocol/video_frame_pump_unittest.cc b/remoting/protocol/video_frame_pump_unittest.cc
index 01aedb39165c86b25a6b10140eef4546a1ee1a4d..b503e3c7cb033a4bd2a58ad656a73d6ca3bebe93 100644
--- a/remoting/protocol/video_frame_pump_unittest.cc
+++ b/remoting/protocol/video_frame_pump_unittest.cc
@@ -175,8 +175,8 @@ TEST_F(VideoFramePumpTest, StartAndStop) {
.RetiresOnSaturation();
// Start video frame capture.
- pump_.reset(new VideoFramePump(encode_task_runner_, capturer.Pass(),
- encoder.Pass(), &video_stub_));
+ pump_.reset(new VideoFramePump(encode_task_runner_, std::move(capturer),
+ std::move(encoder), &video_stub_));
// Run MessageLoop until the first frame is received.
run_loop.Run();
@@ -202,8 +202,8 @@ TEST_F(VideoFramePumpTest, NullFrame) {
.RetiresOnSaturation();
// Start video frame capture.
- pump_.reset(new VideoFramePump(encode_task_runner_, capturer.Pass(),
- encoder.Pass(), &video_stub_));
+ pump_.reset(new VideoFramePump(encode_task_runner_, std::move(capturer),
+ std::move(encoder), &video_stub_));
// Run MessageLoop until the first frame is received..
run_loop.Run();
@@ -230,8 +230,8 @@ TEST_F(VideoFramePumpTest, UnchangedFrame) {
.RetiresOnSaturation();
// Start video frame capture.
- pump_.reset(new VideoFramePump(encode_task_runner_, capturer.Pass(),
- encoder.Pass(), &video_stub_));
+ pump_.reset(new VideoFramePump(encode_task_runner_, std::move(capturer),
+ std::move(encoder), &video_stub_));
// Run MessageLoop until the first frame is received.
run_loop.Run();

Powered by Google App Engine
This is Rietveld 408576698