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