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

Side by Side Diff: minidump/test/minidump_writable_test_util.h

Issue 707543002: MinidumpLocationDescriptorListWriter (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 6 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Crashpad Authors. All rights reserved. 1 // Copyright 2014 The Crashpad Authors. All rights reserved.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License. 4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at 5 // You may obtain a copy of the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, 10 // distributed under the License is distributed on an "AS IS" BASIS,
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 } 95 }
96 96
97 // This type appears only as a variable-sized list. 97 // This type appears only as a variable-sized list.
98 MINIDUMP_ALLOW_OVERSIZED_DATA(MINIDUMP_DIRECTORY); 98 MINIDUMP_ALLOW_OVERSIZED_DATA(MINIDUMP_DIRECTORY);
99 99
100 // These types are permitted to be oversized because their final fields are 100 // These types are permitted to be oversized because their final fields are
101 // variable-sized lists. 101 // variable-sized lists.
102 MINIDUMP_ALLOW_OVERSIZED_DATA(MINIDUMP_MEMORY_LIST); 102 MINIDUMP_ALLOW_OVERSIZED_DATA(MINIDUMP_MEMORY_LIST);
103 MINIDUMP_ALLOW_OVERSIZED_DATA(MINIDUMP_MODULE_LIST); 103 MINIDUMP_ALLOW_OVERSIZED_DATA(MINIDUMP_MODULE_LIST);
104 MINIDUMP_ALLOW_OVERSIZED_DATA(MINIDUMP_THREAD_LIST); 104 MINIDUMP_ALLOW_OVERSIZED_DATA(MINIDUMP_THREAD_LIST);
105 MINIDUMP_ALLOW_OVERSIZED_DATA(MinidumpModuleCrashpadInfoList); 105 MINIDUMP_ALLOW_OVERSIZED_DATA(MinidumpLocationDescriptorList);
106 MINIDUMP_ALLOW_OVERSIZED_DATA(MinidumpSimpleStringDictionary); 106 MINIDUMP_ALLOW_OVERSIZED_DATA(MinidumpSimpleStringDictionary);
107 107
108 // These types have final fields carrying variable-sized data (typically string 108 // These types have final fields carrying variable-sized data (typically string
109 // data). 109 // data).
110 MINIDUMP_ALLOW_OVERSIZED_DATA(IMAGE_DEBUG_MISC); 110 MINIDUMP_ALLOW_OVERSIZED_DATA(IMAGE_DEBUG_MISC);
111 MINIDUMP_ALLOW_OVERSIZED_DATA(MINIDUMP_STRING); 111 MINIDUMP_ALLOW_OVERSIZED_DATA(MINIDUMP_STRING);
112 MINIDUMP_ALLOW_OVERSIZED_DATA(MinidumpModuleCodeViewRecordPDB20); 112 MINIDUMP_ALLOW_OVERSIZED_DATA(MinidumpModuleCodeViewRecordPDB20);
113 MINIDUMP_ALLOW_OVERSIZED_DATA(MinidumpModuleCodeViewRecordPDB70); 113 MINIDUMP_ALLOW_OVERSIZED_DATA(MinidumpModuleCodeViewRecordPDB70);
114 MINIDUMP_ALLOW_OVERSIZED_DATA(MinidumpUTF8String); 114 MINIDUMP_ALLOW_OVERSIZED_DATA(MinidumpUTF8String);
115 115
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 const MINIDUMP_MODULE_LIST* MinidumpWritableAtLocationDescriptor< 211 const MINIDUMP_MODULE_LIST* MinidumpWritableAtLocationDescriptor<
212 MINIDUMP_MODULE_LIST>(const std::string& file_contents, 212 MINIDUMP_MODULE_LIST>(const std::string& file_contents,
213 const MINIDUMP_LOCATION_DESCRIPTOR& location); 213 const MINIDUMP_LOCATION_DESCRIPTOR& location);
214 214
215 template <> 215 template <>
216 const MINIDUMP_THREAD_LIST* MinidumpWritableAtLocationDescriptor< 216 const MINIDUMP_THREAD_LIST* MinidumpWritableAtLocationDescriptor<
217 MINIDUMP_THREAD_LIST>(const std::string& file_contents, 217 MINIDUMP_THREAD_LIST>(const std::string& file_contents,
218 const MINIDUMP_LOCATION_DESCRIPTOR& location); 218 const MINIDUMP_LOCATION_DESCRIPTOR& location);
219 219
220 template <> 220 template <>
221 const MinidumpModuleCrashpadInfoList* 221 const MinidumpLocationDescriptorList*
222 MinidumpWritableAtLocationDescriptor<MinidumpModuleCrashpadInfoList>( 222 MinidumpWritableAtLocationDescriptor<MinidumpLocationDescriptorList>(
223 const std::string& file_contents, 223 const std::string& file_contents,
224 const MINIDUMP_LOCATION_DESCRIPTOR& location); 224 const MINIDUMP_LOCATION_DESCRIPTOR& location);
225 225
226 template <> 226 template <>
227 const MinidumpModuleCodeViewRecordPDB20* 227 const MinidumpModuleCodeViewRecordPDB20*
228 MinidumpWritableAtLocationDescriptor<MinidumpModuleCodeViewRecordPDB20>( 228 MinidumpWritableAtLocationDescriptor<MinidumpModuleCodeViewRecordPDB20>(
229 const std::string& file_contents, 229 const std::string& file_contents,
230 const MINIDUMP_LOCATION_DESCRIPTOR& location); 230 const MINIDUMP_LOCATION_DESCRIPTOR& location);
231 231
232 template <> 232 template <>
233 const MinidumpModuleCodeViewRecordPDB70* 233 const MinidumpModuleCodeViewRecordPDB70*
234 MinidumpWritableAtLocationDescriptor<MinidumpModuleCodeViewRecordPDB70>( 234 MinidumpWritableAtLocationDescriptor<MinidumpModuleCodeViewRecordPDB70>(
235 const std::string& file_contents, 235 const std::string& file_contents,
236 const MINIDUMP_LOCATION_DESCRIPTOR& location); 236 const MINIDUMP_LOCATION_DESCRIPTOR& location);
237 237
238 template <> 238 template <>
239 const MinidumpSimpleStringDictionary* 239 const MinidumpSimpleStringDictionary*
240 MinidumpWritableAtLocationDescriptor<MinidumpSimpleStringDictionary>( 240 MinidumpWritableAtLocationDescriptor<MinidumpSimpleStringDictionary>(
241 const std::string& file_contents, 241 const std::string& file_contents,
242 const MINIDUMP_LOCATION_DESCRIPTOR& location); 242 const MINIDUMP_LOCATION_DESCRIPTOR& location);
243 243
244 } // namespace test 244 } // namespace test
245 } // namespace crashpad 245 } // namespace crashpad
246 246
247 #endif // CRASHPAD_MINIDUMP_TEST_MINIDUMP_WRITABLE_TEST_UTIL_H_ 247 #endif // CRASHPAD_MINIDUMP_TEST_MINIDUMP_WRITABLE_TEST_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698