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

Unified Diff: mojo/edk/test/multiprocess_test_helper_unittest.cc

Issue 1529303004: Convert Pass()→std::move() in mojo/edk/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « mojo/edk/test/multiprocess_test_helper.cc ('k') | mojo/edk/test/test_utils_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/test/multiprocess_test_helper_unittest.cc
diff --git a/mojo/edk/test/multiprocess_test_helper_unittest.cc b/mojo/edk/test/multiprocess_test_helper_unittest.cc
index 84db4216a279f25aff01f455d41a7da844088d6e..8150bbb442273056ea39403dae07fe9a9e367799 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()));
« no previous file with comments | « mojo/edk/test/multiprocess_test_helper.cc ('k') | mojo/edk/test/test_utils_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698