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

Unified Diff: remoting/host/audio_pump_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: include <utility> 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 | « remoting/host/audio_pump.cc ('k') | remoting/host/backoff_timer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/audio_pump_unittest.cc
diff --git a/remoting/host/audio_pump_unittest.cc b/remoting/host/audio_pump_unittest.cc
index fe3b44f98a2c0b1ae4418f887ae4dbb64f91e2e6..b0b0dee7e823ee08e290364a799c54d8105f1eec 100644
--- a/remoting/host/audio_pump_unittest.cc
+++ b/remoting/host/audio_pump_unittest.cc
@@ -6,6 +6,8 @@
#include <stddef.h>
+#include <utility>
+
#include "base/macros.h"
#include "base/memory/scoped_vector.h"
#include "base/message_loop/message_loop.h"
@@ -24,7 +26,7 @@ namespace {
scoped_ptr<AudioPacket> MakeAudioPacket() {
scoped_ptr<AudioPacket> packet(new AudioPacket);
packet->add_data()->resize(1000);
- return packet.Pass();
+ return packet;
}
} // namespace
@@ -53,7 +55,7 @@ class FakeAudioEncoder : public AudioEncoder {
~FakeAudioEncoder() override {}
scoped_ptr<AudioPacket> Encode(scoped_ptr<AudioPacket> packet) override {
- return packet.Pass();
+ return packet;
}
int GetBitrate() override {
return 160000;
@@ -108,7 +110,7 @@ void AudioPumpTest::TearDown() {
void AudioPumpTest::ProcessAudioPacket(
scoped_ptr<AudioPacket> audio_packet,
const base::Closure& done) {
- sent_packets_.push_back(audio_packet.Pass());
+ sent_packets_.push_back(std::move(audio_packet));
done_closures_.push_back(done);
}
« no previous file with comments | « remoting/host/audio_pump.cc ('k') | remoting/host/backoff_timer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698