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

Unified Diff: content/child/shared_memory_data_consumer_handle_unittest.cc

Issue 1544293002: Convert Pass()→std::move() in //content (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 | « content/child/shared_memory_data_consumer_handle.cc ('k') | content/child/web_data_consumer_handle_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/shared_memory_data_consumer_handle_unittest.cc
diff --git a/content/child/shared_memory_data_consumer_handle_unittest.cc b/content/child/shared_memory_data_consumer_handle_unittest.cc
index 0454ada5de49a1caa3b1249164f94f66bb8d183f..5694d588bffeffa8a6361e303c73bf6bcf74b9b9 100644
--- a/content/child/shared_memory_data_consumer_handle_unittest.cc
+++ b/content/child/shared_memory_data_consumer_handle_unittest.cc
@@ -7,6 +7,7 @@
#include <stddef.h>
#include <string.h>
#include <string>
+#include <utility>
#include <vector>
#include "base/bind.h"
@@ -127,7 +128,7 @@ class ThreadedSharedMemoryDataConsumerHandleTest : public ::testing::Test {
ReadDataOperation(scoped_ptr<SharedMemoryDataConsumerHandle> handle,
base::MessageLoop* main_message_loop,
const base::Closure& on_done)
- : handle_(handle.Pass()),
+ : handle_(std::move(handle)),
main_message_loop_(main_message_loop),
on_done_(on_done) {}
@@ -1000,8 +1001,8 @@ TEST(SharedMemoryDataConsumerHandleWithoutBackpressureTest, AddData) {
TEST_F(ThreadedSharedMemoryDataConsumerHandleTest, Read) {
base::RunLoop run_loop;
- auto operation = make_scoped_ptr(
- new ReadDataOperation(handle_.Pass(), &loop_, run_loop.QuitClosure()));
+ auto operation = make_scoped_ptr(new ReadDataOperation(
+ std::move(handle_), &loop_, run_loop.QuitClosure()));
scoped_refptr<Logger> logger(new Logger);
base::Thread t("DataConsumerHandle test thread");
« no previous file with comments | « content/child/shared_memory_data_consumer_handle.cc ('k') | content/child/web_data_consumer_handle_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698