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

Unified Diff: third_party/mojo/src/mojo/edk/system/channel_endpoint_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/system/channel_endpoint_unittest.cc
diff --git a/third_party/mojo/src/mojo/edk/system/channel_endpoint_unittest.cc b/third_party/mojo/src/mojo/edk/system/channel_endpoint_unittest.cc
index 659b9b7fc3aa6035af53f81a56d0bbe0d517f3fc..4782b62e0cf76d35e23d4d7a24acff1e716907dd 100644
--- a/third_party/mojo/src/mojo/edk/system/channel_endpoint_unittest.cc
+++ b/third_party/mojo/src/mojo/edk/system/channel_endpoint_unittest.cc
@@ -4,6 +4,8 @@
#include "third_party/mojo/src/mojo/edk/system/channel_endpoint.h"
+#include <utility>
+
#include "base/synchronization/waitable_event.h"
#include "base/test/test_timeouts.h"
#include "mojo/public/cpp/system/macros.h"
@@ -72,7 +74,7 @@ TEST_F(ChannelEndpointTest, Basic) {
EXPECT_FALSE(read_event.IsSignaled());
// Send it through channel/endpoint 1.
- EXPECT_TRUE(endpoint1->EnqueueMessage(send_message.Pass()));
+ EXPECT_TRUE(endpoint1->EnqueueMessage(std::move(send_message)));
// Wait to receive it.
EXPECT_TRUE(read_event.TimedWait(TestTimeouts::tiny_timeout()));
« no previous file with comments | « third_party/mojo/src/mojo/edk/system/channel_endpoint.cc ('k') | third_party/mojo/src/mojo/edk/system/channel_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698