Index: snapshot/test/test_memory_map_region_snapshot.cc |
diff --git a/test/scoped_temp_dir.cc b/snapshot/test/test_memory_map_region_snapshot.cc |
similarity index 60% |
copy from test/scoped_temp_dir.cc |
copy to snapshot/test/test_memory_map_region_snapshot.cc |
index 5c151cc0057d69699fe38ed8380c59ca4d336651..3333ed3db9d7ad3829d7fcd3b52b650f7ff92601 100644 |
--- a/test/scoped_temp_dir.cc |
+++ b/snapshot/test/test_memory_map_region_snapshot.cc |
@@ -12,16 +12,25 @@ |
// See the License for the specific language governing permissions and |
// limitations under the License. |
-#include "test/scoped_temp_dir.h" |
+#include "snapshot/test/test_memory_map_region_snapshot.h" |
namespace crashpad { |
namespace test { |
-ScopedTempDir::ScopedTempDir() : path_(CreateTemporaryDirectory()) { |
+TestMemoryMapRegionSnapshot::TestMemoryMapRegionSnapshot() { |
+ memset(&memory_info_, 0, sizeof(memory_info_)); |
Mark Mentovai
2015/10/12 14:34:47
Use the initializer form (memory_info()) instead o
scottmg
2015/10/13 19:51:29
Done.
|
} |
-ScopedTempDir::~ScopedTempDir() { |
- RecursivelyDeleteTemporaryDirectory(path()); |
+TestMemoryMapRegionSnapshot::~TestMemoryMapRegionSnapshot() { |
+} |
+ |
+void TestMemoryMapRegionSnapshot::SetMindumpMemoryInfo( |
+ const MINIDUMP_MEMORY_INFO& mmi) { |
+ memory_info_ = mmi; |
+} |
+ |
+MINIDUMP_MEMORY_INFO TestMemoryMapRegionSnapshot::AsMinidumpMemoryInfo() const { |
+ return memory_info_; |
} |
} // namespace test |