| 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_
|
|
|