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

Unified Diff: content/browser/fileapi/obfuscated_file_util_unittest.cc

Issue 1545243002: Convert Pass()→std::move() in //content/browser (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/browser/fileapi/fileapi_message_filter.cc ('k') | content/browser/font_list_async.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/fileapi/obfuscated_file_util_unittest.cc
diff --git a/content/browser/fileapi/obfuscated_file_util_unittest.cc b/content/browser/fileapi/obfuscated_file_util_unittest.cc
index cda3c9270c28d40da4e4f7261862ff86f24d9cc0..8d434fa1ca79850ef851cebd6ea64df5330aa52f 100644
--- a/content/browser/fileapi/obfuscated_file_util_unittest.cc
+++ b/content/browser/fileapi/obfuscated_file_util_unittest.cc
@@ -4,10 +4,10 @@
#include <stddef.h>
#include <stdint.h>
-
#include <limits>
#include <set>
#include <string>
+#include <utility>
#include <vector>
#include "base/bind.h"
@@ -192,7 +192,7 @@ class ObfuscatedFileUtilTest : public testing::Test {
scoped_ptr<FileSystemOperationContext> context(
sandbox_file_system_.NewOperationContext());
context->set_allowed_bytes_growth(allowed_bytes_growth);
- return context.Pass();
+ return context;
}
scoped_ptr<FileSystemOperationContext> UnlimitedContext() {
@@ -400,7 +400,7 @@ class ObfuscatedFileUtilTest : public testing::Test {
UsageVerifyHelper(scoped_ptr<FileSystemOperationContext> context,
SandboxFileSystemTestHelper* file_system,
int64_t expected_usage)
- : context_(context.Pass()),
+ : context_(std::move(context)),
sandbox_file_system_(file_system),
expected_usage_(expected_usage) {}
@@ -851,7 +851,7 @@ TEST_F(ObfuscatedFileUtilTest, TestCreateAndDeleteFile) {
ASSERT_TRUE(file.created());
EXPECT_EQ(1, change_observer()->get_and_reset_create_file_count());
- CheckFileAndCloseHandle(url, file.Pass());
+ CheckFileAndCloseHandle(url, std::move(file));
context.reset(NewContext(NULL));
base::FilePath local_path;
@@ -887,7 +887,7 @@ TEST_F(ObfuscatedFileUtilTest, TestCreateAndDeleteFile) {
ASSERT_TRUE(file.created());
EXPECT_EQ(1, change_observer()->get_and_reset_create_file_count());
- CheckFileAndCloseHandle(url, file.Pass());
+ CheckFileAndCloseHandle(url, std::move(file));
context.reset(NewContext(NULL));
EXPECT_EQ(base::File::FILE_OK,
« no previous file with comments | « content/browser/fileapi/fileapi_message_filter.cc ('k') | content/browser/font_list_async.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698