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

Unified Diff: snapshot/test/test_memory_map_region_snapshot.cc

Issue 1379873005: win: Write memory map info as MINIDUMP_MEMORY_INFO[_LIST] (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@save-peb-more-2
Patch Set: typo Created 5 years, 2 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
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

Powered by Google App Engine
This is Rietveld 408576698