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

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: headers 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
« no previous file with comments | « snapshot/test/test_memory_map_region_snapshot.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 61%
copy from test/scoped_temp_dir.cc
copy to snapshot/test/test_memory_map_region_snapshot.cc
index 5c151cc0057d69699fe38ed8380c59ca4d336651..53500c647624a19617dbf0609b3337eaf05f4e05 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() : memory_info_() {
}
-ScopedTempDir::~ScopedTempDir() {
- RecursivelyDeleteTemporaryDirectory(path());
+TestMemoryMapRegionSnapshot::~TestMemoryMapRegionSnapshot() {
+}
+
+void TestMemoryMapRegionSnapshot::SetMindumpMemoryInfo(
+ const MINIDUMP_MEMORY_INFO& mmi) {
+ memory_info_ = mmi;
+}
+
+const MINIDUMP_MEMORY_INFO& TestMemoryMapRegionSnapshot::AsMinidumpMemoryInfo()
+ const {
+ return memory_info_;
}
} // namespace test
« no previous file with comments | « snapshot/test/test_memory_map_region_snapshot.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698