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(). |