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

Unified Diff: sql/mojo/vfs_unittest.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/sql_test_base.cc ('k') | sql/recovery.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sql/mojo/vfs_unittest.cc
diff --git a/sql/mojo/vfs_unittest.cc b/sql/mojo/vfs_unittest.cc
index d6eee65059e8943698fee30f835813efaab194cd..dc6a1eec4e0be44512528687b4ab96c9cb030aec 100644
--- a/sql/mojo/vfs_unittest.cc
+++ b/sql/mojo/vfs_unittest.cc
@@ -3,8 +3,8 @@
// found in the LICENSE file.
#include <stdint.h>
-
#include <memory>
+#include <utility>
#include "base/macros.h"
#include "components/filesystem/public/interfaces/file_system.mojom.h"
@@ -60,12 +60,12 @@ class VFSTest : public mojo::test::ApplicationTestBase,
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),
mojo::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)));
}
void TearDown() override {
« no previous file with comments | « sql/mojo/sql_test_base.cc ('k') | sql/recovery.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698