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

Unified Diff: media/cast/receiver/frame_receiver_unittest.cc

Issue 1544313002: Convert Pass()→std::move() in //media (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
« no previous file with comments | « media/cast/receiver/frame_receiver.cc ('k') | media/cast/receiver/video_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/receiver/frame_receiver_unittest.cc
diff --git a/media/cast/receiver/frame_receiver_unittest.cc b/media/cast/receiver/frame_receiver_unittest.cc
index 5db3ec9bbc2fe28cfa9685206f5f9e5cb12fade0..59451c4f00259dea3b7864fbf1939d08d0eb2978 100644
--- a/media/cast/receiver/frame_receiver_unittest.cc
+++ b/media/cast/receiver/frame_receiver_unittest.cc
@@ -6,7 +6,6 @@
#include <stdint.h>
#include <deque>
-#include <utility>
#include "base/bind.h"
#include "base/macros.h"
@@ -76,10 +75,8 @@ class FrameReceiverTest : public ::testing::Test {
task_runner_ = new test::FakeSingleThreadTaskRunner(testing_clock_);
cast_environment_ =
- new CastEnvironment(scoped_ptr<base::TickClock>(testing_clock_).Pass(),
- task_runner_,
- task_runner_,
- task_runner_);
+ new CastEnvironment(scoped_ptr<base::TickClock>(testing_clock_),
+ task_runner_, task_runner_, task_runner_);
}
~FrameReceiverTest() override {}
@@ -132,7 +129,7 @@ class FrameReceiverTest : public ::testing::Test {
TestRtcpPacketBuilder rtcp_packet;
rtcp_packet.AddSrWithNtp(config_.sender_ssrc, ntp_seconds, ntp_fraction,
static_cast<uint32_t>(rtp_timestamp));
- ASSERT_TRUE(receiver_->ProcessPacket(rtcp_packet.GetPacket().Pass()));
+ ASSERT_TRUE(receiver_->ProcessPacket(rtcp_packet.GetPacket()));
}
FrameReceiverConfig config_;
@@ -160,7 +157,7 @@ TEST_F(FrameReceiverTest, RejectsUnparsablePackets) {
cast_environment_->logger()->Subscribe(&event_subscriber);
const bool success = receiver_->ProcessPacket(
- scoped_ptr<Packet>(new Packet(kPacketSize, 0xff)).Pass());
+ scoped_ptr<Packet>(new Packet(kPacketSize, 0xff)));
EXPECT_FALSE(success);
// Confirm no log events.
« no previous file with comments | « media/cast/receiver/frame_receiver.cc ('k') | media/cast/receiver/video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698