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

Unified Diff: base/win/scoped_handle_unittest.cc

Issue 1752233002: Convert Pass()→std::move() on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 10 months 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 | « base/synchronization/waitable_event_win.cc ('k') | chrome/browser/component_updater/caps_installer_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/win/scoped_handle_unittest.cc
diff --git a/base/win/scoped_handle_unittest.cc b/base/win/scoped_handle_unittest.cc
index b573b66450195bfc9f02193564d846b32fb160fe..47b773418e086177968507d0a426ba5db996d459 100644
--- a/base/win/scoped_handle_unittest.cc
+++ b/base/win/scoped_handle_unittest.cc
@@ -4,6 +4,8 @@
#include "base/win/scoped_handle.h"
+#include <utility>
+
#include "testing/gtest/include/gtest/gtest.h"
TEST(ScopedHandleTest, ScopedHandle) {
@@ -27,6 +29,6 @@ TEST(ScopedHandleTest, ScopedHandle) {
handle = ::CreateMutex(nullptr, FALSE, nullptr);
base::win::ScopedHandle handle_source(handle);
::SetLastError(magic_error);
- handle_holder = handle_source.Pass();
+ handle_holder = std::move(handle_source);
EXPECT_EQ(magic_error, ::GetLastError());
}
« no previous file with comments | « base/synchronization/waitable_event_win.cc ('k') | chrome/browser/component_updater/caps_installer_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698