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

Unified Diff: snapshot/test/test_memory_map_region_snapshot.h

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/snapshot_test.gyp ('k') | snapshot/test/test_memory_map_region_snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: snapshot/test/test_memory_map_region_snapshot.h
diff --git a/snapshot/win/memory_map_region_snapshot_win.h b/snapshot/test/test_memory_map_region_snapshot.h
similarity index 50%
copy from snapshot/win/memory_map_region_snapshot_win.h
copy to snapshot/test/test_memory_map_region_snapshot.h
index 725c12565e941492d1ecd2f5a9568df1537667d6..e9edc5ca6fb4e9559196229cf6368d2dcd85c980 100644
--- a/snapshot/win/memory_map_region_snapshot_win.h
+++ b/snapshot/test/test_memory_map_region_snapshot.h
@@ -12,26 +12,36 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#ifndef CRASHPAD_SNAPSHOT_WIN_MEMORY_MAP_REGION_SNAPSHOT_WIN_H_
-#define CRASHPAD_SNAPSHOT_WIN_MEMORY_MAP_REGION_SNAPSHOT_WIN_H_
+#ifndef CRASHPAD_SNAPSHOT_TEST_TEST_MEMORY_MAP_REGION_SNAPSHOT_H_
+#define CRASHPAD_SNAPSHOT_TEST_TEST_MEMORY_MAP_REGION_SNAPSHOT_H_
+#include <vector>
+
+#include "base/basictypes.h"
#include "snapshot/memory_map_region_snapshot.h"
namespace crashpad {
-namespace internal {
+namespace test {
-class MemoryMapRegionSnapshotWin : public MemoryMapRegionSnapshot {
+//! \brief A test MemoryMapRegionSnapshot that can carry arbitrary data for
+//! testing purposes.
+class TestMemoryMapRegionSnapshot final : public MemoryMapRegionSnapshot {
public:
- explicit MemoryMapRegionSnapshotWin(const MEMORY_BASIC_INFORMATION64& mbi);
- ~MemoryMapRegionSnapshotWin() override;
+ TestMemoryMapRegionSnapshot();
+ ~TestMemoryMapRegionSnapshot() override;
+
+ void SetMindumpMemoryInfo(const MINIDUMP_MEMORY_INFO& mmi);
- virtual const MINIDUMP_MEMORY_INFO& AsMinidumpMemoryInfo() const override;
+ // MemoryMapRegionSnapshot:
+ const MINIDUMP_MEMORY_INFO& AsMinidumpMemoryInfo() const override;
private:
MINIDUMP_MEMORY_INFO memory_info_;
+
+ DISALLOW_COPY_AND_ASSIGN(TestMemoryMapRegionSnapshot);
};
-} // namespace internal
+} // namespace test
} // namespace crashpad
-#endif // CRASHPAD_SNAPSHOT_WIN_MEMORY_MAP_REGION_SNAPSHOT_WIN_H_
+#endif // CRASHPAD_SNAPSHOT_TEST_TEST_MEMORY_MAP_REGION_SNAPSHOT_H_
« no previous file with comments | « snapshot/snapshot_test.gyp ('k') | snapshot/test/test_memory_map_region_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698