Index: minidump/test/minidump_writable_test_util.cc |
diff --git a/minidump/test/minidump_writable_test_util.cc b/minidump/test/minidump_writable_test_util.cc |
index 3e98a0335dadd3abe9ac94810833fc37dd79470e..ccee7ed12c17e1453a5d5bf792378861d3f514c8 100644 |
--- a/minidump/test/minidump_writable_test_util.cc |
+++ b/minidump/test/minidump_writable_test_util.cc |
@@ -160,6 +160,14 @@ struct MinidumpThreadListTraits { |
} |
}; |
+struct MinidumpModuleCrashpadInfoListTraits { |
+ typedef MinidumpModuleCrashpadInfoList ListType; |
+ static constexpr size_t kElementSize = sizeof(MINIDUMP_LOCATION_DESCRIPTOR); |
+ static size_t ElementCount(const ListType* list) { |
+ return list->count; |
+ } |
+}; |
+ |
struct MinidumpSimpleStringDictionaryListTraits { |
typedef MinidumpSimpleStringDictionary ListType; |
static constexpr size_t kElementSize = |
@@ -217,6 +225,15 @@ const MINIDUMP_THREAD_LIST* MinidumpWritableAtLocationDescriptor< |
} |
template <> |
+const MinidumpModuleCrashpadInfoList* |
+MinidumpWritableAtLocationDescriptor<MinidumpModuleCrashpadInfoList>( |
+ const std::string& file_contents, |
+ const MINIDUMP_LOCATION_DESCRIPTOR& location) { |
+ return MinidumpListAtLocationDescriptor<MinidumpModuleCrashpadInfoListTraits>( |
+ file_contents, location); |
+} |
+ |
+template <> |
const MinidumpSimpleStringDictionary* |
MinidumpWritableAtLocationDescriptor<MinidumpSimpleStringDictionary>( |
const std::string& file_contents, |