diff options
Diffstat (limited to 'extensions/renderer/api/serial/data_sender_unittest.cc')
-rw-r--r-- | extensions/renderer/api/serial/data_sender_unittest.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/extensions/renderer/api/serial/data_sender_unittest.cc b/extensions/renderer/api/serial/data_sender_unittest.cc index 461f012..dfda6cd 100644 --- a/extensions/renderer/api/serial/data_sender_unittest.cc +++ b/extensions/renderer/api/serial/data_sender_unittest.cc @@ -3,6 +3,7 @@ // found in the LICENSE file. #include <queue> +#include <utility> #include "device/serial/data_sink_receiver.h" #include "device/serial/data_stream.mojom.h" @@ -39,7 +40,7 @@ class DataSenderTest : public ApiTestBase { void CreateDataSink( mojo::InterfaceRequest<device::serial::DataSink> request) { receiver_ = new device::DataSinkReceiver( - request.Pass(), + std::move(request), base::Bind(&DataSenderTest::ReadyToReceive, base::Unretained(this)), base::Bind(&DataSenderTest::OnCancel, base::Unretained(this)), base::Bind(base::DoNothing)); @@ -48,7 +49,7 @@ class DataSenderTest : public ApiTestBase { void ReadyToReceive(scoped_ptr<device::ReadOnlyBuffer> buffer) { std::string data(buffer->GetData(), buffer->GetSize()); if (expected_data_.empty()) { - buffer_ = buffer.Pass(); + buffer_ = std::move(buffer); return; } |