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

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

Issue 1545333002: Convert Pass()→std::move() in //third_party/mojo (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
Index: third_party/mojo/src/mojo/edk/test/multiprocess_test_helper_unittest.cc
diff --git a/third_party/mojo/src/mojo/edk/test/multiprocess_test_helper_unittest.cc b/third_party/mojo/src/mojo/edk/test/multiprocess_test_helper_unittest.cc
index eb110d10459ab392c0312df0f8b434dda660b917..07d0733089b5551b27bfd6b8a38093663509a220 100644
--- a/third_party/mojo/src/mojo/edk/test/multiprocess_test_helper_unittest.cc
+++ b/third_party/mojo/src/mojo/edk/test/multiprocess_test_helper_unittest.cc
@@ -4,6 +4,8 @@
#include "third_party/mojo/src/mojo/edk/test/multiprocess_test_helper.h"
+#include <utility>
+
#include "base/logging.h"
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -86,7 +88,8 @@ TEST_F(MultiprocessTestHelperTest, MAYBE_PassedChannel) {
helper.StartChild("PassedChannel");
// Take ownership of the handle.
- embedder::ScopedPlatformHandle handle = helper.server_platform_handle.Pass();
+ embedder::ScopedPlatformHandle handle =
+ std::move(helper.server_platform_handle);
// The handle should be non-blocking.
EXPECT_TRUE(IsNonBlocking(handle.get()));
@@ -109,7 +112,7 @@ MOJO_MULTIPROCESS_TEST_CHILD_MAIN(PassedChannel) {
// Take ownership of the handle.
embedder::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 | « third_party/mojo/src/mojo/edk/system/transport_data.cc ('k') | third_party/mojo/src/mojo/edk/test/test_utils_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698