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

Unified Diff: snapshot/test/test_process_snapshot.h

Issue 1483073004: Replace use of .Pass() with crashpad::move(). (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: pass: . Created 5 years, 1 month 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 | « minidump/minidump_thread_writer_test.cc ('k') | snapshot/test/test_thread_snapshot.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: snapshot/test/test_process_snapshot.h
diff --git a/snapshot/test/test_process_snapshot.h b/snapshot/test/test_process_snapshot.h
index ec12448172fb1a71aa03ba3867d99e6d4b3d8001..666fa0a183eafa52bf623312b679aa15480572c8 100644
--- a/snapshot/test/test_process_snapshot.h
+++ b/snapshot/test/test_process_snapshot.h
@@ -32,6 +32,7 @@
#include "snapshot/process_snapshot.h"
#include "snapshot/system_snapshot.h"
#include "snapshot/thread_snapshot.h"
+#include "util/stdlib/move.h"
#include "util/misc/uuid.h"
#include "util/stdlib/pointer_container.h"
@@ -71,7 +72,9 @@ class TestProcessSnapshot final : public ProcessSnapshot {
//!
//! \param[in] system The system snapshot that System() will return. The
//! TestProcessSnapshot object takes ownership of \a system.
- void SetSystem(scoped_ptr<SystemSnapshot> system) { system_ = system.Pass(); }
+ void SetSystem(scoped_ptr<SystemSnapshot> system) {
+ system_ = crashpad::move(system);
+ }
//! \brief Adds a thread snapshot to be returned by Threads().
//!
@@ -94,7 +97,7 @@ class TestProcessSnapshot final : public ProcessSnapshot {
//! \param[in] exception The exception snapshot that Exception() will return.
//! The TestProcessSnapshot object takes ownership of \a exception.
void SetException(scoped_ptr<ExceptionSnapshot> exception) {
- exception_ = exception.Pass();
+ exception_ = crashpad::move(exception);
}
//! \brief Adds a memory map region snapshot to be returned by MemoryMap().
« no previous file with comments | « minidump/minidump_thread_writer_test.cc ('k') | snapshot/test/test_thread_snapshot.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698