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

Unified Diff: sql/mojo/sql_test_base.cc

Issue 1550693002: Global conversion of Pass()→std::move() on Linux (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 | « sql/mojo/mojo_vfs.cc ('k') | sql/mojo/vfs_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sql/mojo/sql_test_base.cc
diff --git a/sql/mojo/sql_test_base.cc b/sql/mojo/sql_test_base.cc
index caa903a2bb80930a560632f7d6f2f008f1c52ce0..1df60966dacfdddac9c4cd45e288df1901f93fae 100644
--- a/sql/mojo/sql_test_base.cc
+++ b/sql/mojo/sql_test_base.cc
@@ -6,6 +6,7 @@
#include <stddef.h>
#include <stdint.h>
+#include <utility>
#include "mojo/application/public/cpp/application_impl.h"
#include "mojo/util/capture_util.h"
@@ -79,7 +80,7 @@ bool SQLTestBase::CorruptSizeInHeaderOfDB() {
test::CorruptSizeInHeaderMemory(&header.front(), db_size);
uint32_t num_bytes_written = 0;
- file_ptr->Write(header.Pass(), 0, filesystem::WHENCE_FROM_BEGIN,
+ file_ptr->Write(std::move(header), 0, filesystem::WHENCE_FROM_BEGIN,
Capture(&error, &num_bytes_written));
file_ptr.WaitForIncomingResponse();
if (error != filesystem::FILE_ERROR_OK)
@@ -112,7 +113,7 @@ void SQLTestBase::WriteJunkToDatabase(WriteJunkType type) {
memcpy(&data.front(), kJunk, strlen(kJunk));
uint32_t num_bytes_written = 0;
- file_ptr->Write(data.Pass(), 0, filesystem::WHENCE_FROM_BEGIN,
+ file_ptr->Write(std::move(data), 0, filesystem::WHENCE_FROM_BEGIN,
Capture(&error, &num_bytes_written));
file_ptr.WaitForIncomingResponse();
}
@@ -143,12 +144,12 @@ void SQLTestBase::SetUp() {
filesystem::FileError error = filesystem::FILE_ERROR_FAILED;
filesystem::DirectoryPtr directory;
- files()->OpenFileSystem("temp", GetProxy(&directory), client.Pass(),
+ files()->OpenFileSystem("temp", GetProxy(&directory), std::move(client),
Capture(&error));
ASSERT_TRUE(files().WaitForIncomingResponse());
ASSERT_EQ(filesystem::FILE_ERROR_OK, error);
- vfs_.reset(new ScopedMojoFilesystemVFS(directory.Pass()));
+ vfs_.reset(new ScopedMojoFilesystemVFS(std::move(directory)));
ASSERT_TRUE(db_.Open(db_path()));
}
« no previous file with comments | « sql/mojo/mojo_vfs.cc ('k') | sql/mojo/vfs_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698