diff options
author | dcheng <dcheng@chromium.org> | 2015-12-18 13:07:16 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-18 21:08:36 +0000 |
commit | 2a370ee9320230d59b317e23e1778846c8d8035d (patch) | |
tree | ced6714341746502230134cfdd57a09236c5bf00 /mojo/edk/test/multiprocess_test_helper_unittest.cc | |
parent | 60b2cdd0d6238b60eb92c120970a7612a2841141 (diff) | |
download | chromium_src-2a370ee9320230d59b317e23e1778846c8d8035d.zip chromium_src-2a370ee9320230d59b317e23e1778846c8d8035d.tar.gz chromium_src-2a370ee9320230d59b317e23e1778846c8d8035d.tar.bz2 |
Convert Pass()→std::move() in //mojo/edk
BUG=557422
R=avi@chromium.org
TBR=ben@chromium.org
Review URL: https://codereview.chromium.org/1529303004
Cr-Commit-Position: refs/heads/master@{#366167}
Diffstat (limited to 'mojo/edk/test/multiprocess_test_helper_unittest.cc')
-rw-r--r-- | mojo/edk/test/multiprocess_test_helper_unittest.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mojo/edk/test/multiprocess_test_helper_unittest.cc b/mojo/edk/test/multiprocess_test_helper_unittest.cc index 84db421..8150bbb4 100644 --- a/mojo/edk/test/multiprocess_test_helper_unittest.cc +++ b/mojo/edk/test/multiprocess_test_helper_unittest.cc @@ -4,6 +4,8 @@ #include "mojo/edk/test/multiprocess_test_helper.h" +#include <utility> + #include "base/logging.h" #include "build/build_config.h" #include "mojo/edk/embedder/scoped_platform_handle.h" @@ -88,7 +90,7 @@ TEST_F(MultiprocessTestHelperTest, MAYBE_PassedChannel) { helper.StartChild("PassedChannel"); // Take ownership of the handle. - ScopedPlatformHandle handle = helper.server_platform_handle.Pass(); + ScopedPlatformHandle handle = std::move(helper.server_platform_handle); // The handle should be non-blocking. EXPECT_TRUE(IsNonBlocking(handle.get())); @@ -111,7 +113,7 @@ MOJO_MULTIPROCESS_TEST_CHILD_MAIN(PassedChannel) { // Take ownership of the handle. ScopedPlatformHandle handle = - MultiprocessTestHelper::client_platform_handle.Pass(); + std::move(MultiprocessTestHelper::client_platform_handle); // The handle should be non-blocking. EXPECT_TRUE(IsNonBlocking(handle.get())); |