diff options
author | dcheng <dcheng@chromium.org> | 2015-12-27 14:05:10 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-27 22:06:04 +0000 |
commit | 64f325fc1d271609f83819102a8eba6d54d98d4b (patch) | |
tree | c21ad0baee4eec54413eff1df2deb4f13e0ab9a9 /device/serial/data_sink_unittest.cc | |
parent | 38b2f73d2594ec921ea1b73bebfd2da113b6799e (diff) | |
download | chromium_src-64f325fc1d271609f83819102a8eba6d54d98d4b.zip chromium_src-64f325fc1d271609f83819102a8eba6d54d98d4b.tar.gz chromium_src-64f325fc1d271609f83819102a8eba6d54d98d4b.tar.bz2 |
Convert Pass()→std::move() in //device
❆(੭ु ◜◡‾)੭ु⁾☃❆
BUG=557422
R=avi@chromium.org
TBR=rockot@chromium.org
Review URL: https://codereview.chromium.org/1544323002
Cr-Commit-Position: refs/heads/master@{#366937}
Diffstat (limited to 'device/serial/data_sink_unittest.cc')
-rw-r--r-- | device/serial/data_sink_unittest.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/device/serial/data_sink_unittest.cc b/device/serial/data_sink_unittest.cc index 2b17791..a5872f5 100644 --- a/device/serial/data_sink_unittest.cc +++ b/device/serial/data_sink_unittest.cc @@ -4,6 +4,7 @@ #include <stddef.h> #include <stdint.h> +#include <utility> #include "base/bind.h" #include "base/macros.h" @@ -47,7 +48,8 @@ class DataSinkTest : public testing::Test { base::Bind(&DataSinkTest::OnDataToRead, base::Unretained(this)), base::Bind(&DataSinkTest::OnCancel, base::Unretained(this)), base::Bind(&DataSinkTest::OnError, base::Unretained(this))); - sender_.reset(new DataSender(sink_handle.Pass(), kBufferSize, kFatalError)); + sender_.reset( + new DataSender(std::move(sink_handle), kBufferSize, kFatalError)); } void TearDown() override { @@ -158,7 +160,7 @@ class DataSinkTest : public testing::Test { } void OnDataToRead(scoped_ptr<ReadOnlyBuffer> buffer) { - read_buffer_ = buffer.Pass(); + read_buffer_ = std::move(buffer); read_buffer_contents_ = std::string(read_buffer_->GetData(), read_buffer_->GetSize()); EventReceived(EVENT_READ_BUFFER_READY); |