diff options
author | dcheng <dcheng@chromium.org> | 2015-12-14 21:11:17 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-15 05:12:13 +0000 |
commit | 9dfa123958e957648cef4670c05d1a8f6d666fdc (patch) | |
tree | d1b4182e5ca0f57a68d6acd83d9b699eaa857c99 /base/files/file_proxy_unittest.cc | |
parent | d738ccdbf70dff7b1aef51a7b01b084e27088d58 (diff) | |
download | chromium_src-9dfa123958e957648cef4670c05d1a8f6d666fdc.zip chromium_src-9dfa123958e957648cef4670c05d1a8f6d666fdc.tar.gz chromium_src-9dfa123958e957648cef4670c05d1a8f6d666fdc.tar.bz2 |
Rewrite Pass() to std::move() in base/
Behold the power of this fully armed and operational clang refactoring tool...
BUG=557422
Review URL: https://codereview.chromium.org/1523853003
Cr-Commit-Position: refs/heads/master@{#365154}
Diffstat (limited to 'base/files/file_proxy_unittest.cc')
-rw-r--r-- | base/files/file_proxy_unittest.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/base/files/file_proxy_unittest.cc b/base/files/file_proxy_unittest.cc index ab3e9ae..72c430e 100644 --- a/base/files/file_proxy_unittest.cc +++ b/base/files/file_proxy_unittest.cc @@ -4,6 +4,8 @@ #include "base/files/file_proxy.h" +#include <utility> + #include "base/bind.h" #include "base/files/file.h" #include "base/files/file_util.h" @@ -208,7 +210,7 @@ TEST_F(FileProxyTest, SetAndTake) { ASSERT_TRUE(file.IsValid()); FileProxy proxy(file_task_runner()); EXPECT_FALSE(proxy.IsValid()); - proxy.SetFile(file.Pass()); + proxy.SetFile(std::move(file)); EXPECT_TRUE(proxy.IsValid()); EXPECT_FALSE(file.IsValid()); |