| Index: remoting/host/native_messaging/native_messaging_reader_unittest.cc
|
| diff --git a/remoting/host/native_messaging/native_messaging_reader_unittest.cc b/remoting/host/native_messaging/native_messaging_reader_unittest.cc
|
| index 8c076b4919041a7ca52178dd2c1f6432486aa1b6..73ff362ad71a0cec286e0681f5ff2ecf29e38b86 100644
|
| --- a/remoting/host/native_messaging/native_messaging_reader_unittest.cc
|
| +++ b/remoting/host/native_messaging/native_messaging_reader_unittest.cc
|
| @@ -6,6 +6,8 @@
|
|
|
| #include <stdint.h>
|
|
|
| +#include <utility>
|
| +
|
| #include "base/bind.h"
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/message_loop/message_loop.h"
|
| @@ -49,14 +51,12 @@ class NativeMessagingReaderTest : public testing::Test {
|
| base::RunLoop run_loop_;
|
| };
|
|
|
| -NativeMessagingReaderTest::NativeMessagingReaderTest() {
|
| -}
|
| -
|
| +NativeMessagingReaderTest::NativeMessagingReaderTest() {}
|
| NativeMessagingReaderTest::~NativeMessagingReaderTest() {}
|
|
|
| void NativeMessagingReaderTest::SetUp() {
|
| ASSERT_TRUE(MakePipe(&read_file_, &write_file_));
|
| - reader_.reset(new NativeMessagingReader(read_file_.Pass()));
|
| + reader_.reset(new NativeMessagingReader(std::move(read_file_)));
|
| }
|
|
|
| void NativeMessagingReaderTest::Run() {
|
| @@ -72,7 +72,7 @@ void NativeMessagingReaderTest::Run() {
|
| }
|
|
|
| void NativeMessagingReaderTest::OnMessage(scoped_ptr<base::Value> message) {
|
| - message_ = message.Pass();
|
| + message_ = std::move(message);
|
| }
|
|
|
| void NativeMessagingReaderTest::WriteMessage(const std::string& message) {
|
|
|