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

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

Issue 675803002: Add MinidumpCrashpadModule, its list form, their writers, and their tests (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Update for https://codereview.chromium.org/679443002/ Created 6 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 unified diff | Download patch
« no previous file with comments | « minidump/minidump_extensions.cc ('k') | minidump/test/minidump_writable_test_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(MinidumpSimpleStringDictionary); 106 MINIDUMP_ALLOW_OVERSIZED_DATA(MinidumpSimpleStringDictionary);
106 107
107 // These types have final fields carrying variable-sized data (typically string 108 // These types have final fields carrying variable-sized data (typically string
108 // data). 109 // data).
109 MINIDUMP_ALLOW_OVERSIZED_DATA(IMAGE_DEBUG_MISC); 110 MINIDUMP_ALLOW_OVERSIZED_DATA(IMAGE_DEBUG_MISC);
110 MINIDUMP_ALLOW_OVERSIZED_DATA(MINIDUMP_STRING); 111 MINIDUMP_ALLOW_OVERSIZED_DATA(MINIDUMP_STRING);
111 MINIDUMP_ALLOW_OVERSIZED_DATA(MinidumpModuleCodeViewRecordPDB20); 112 MINIDUMP_ALLOW_OVERSIZED_DATA(MinidumpModuleCodeViewRecordPDB20);
112 MINIDUMP_ALLOW_OVERSIZED_DATA(MinidumpModuleCodeViewRecordPDB70); 113 MINIDUMP_ALLOW_OVERSIZED_DATA(MinidumpModuleCodeViewRecordPDB70);
113 MINIDUMP_ALLOW_OVERSIZED_DATA(MinidumpUTF8String); 114 MINIDUMP_ALLOW_OVERSIZED_DATA(MinidumpUTF8String);
114 115
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 const MINIDUMP_MODULE_LIST* MinidumpWritableAtLocationDescriptor< 211 const MINIDUMP_MODULE_LIST* MinidumpWritableAtLocationDescriptor<
211 MINIDUMP_MODULE_LIST>(const std::string& file_contents, 212 MINIDUMP_MODULE_LIST>(const std::string& file_contents,
212 const MINIDUMP_LOCATION_DESCRIPTOR& location); 213 const MINIDUMP_LOCATION_DESCRIPTOR& location);
213 214
214 template <> 215 template <>
215 const MINIDUMP_THREAD_LIST* MinidumpWritableAtLocationDescriptor< 216 const MINIDUMP_THREAD_LIST* MinidumpWritableAtLocationDescriptor<
216 MINIDUMP_THREAD_LIST>(const std::string& file_contents, 217 MINIDUMP_THREAD_LIST>(const std::string& file_contents,
217 const MINIDUMP_LOCATION_DESCRIPTOR& location); 218 const MINIDUMP_LOCATION_DESCRIPTOR& location);
218 219
219 template <> 220 template <>
221 const MinidumpModuleCrashpadInfoList*
222 MinidumpWritableAtLocationDescriptor<MinidumpModuleCrashpadInfoList>(
223 const std::string& file_contents,
224 const MINIDUMP_LOCATION_DESCRIPTOR& location);
225
226 template <>
220 const MinidumpModuleCodeViewRecordPDB20* 227 const MinidumpModuleCodeViewRecordPDB20*
221 MinidumpWritableAtLocationDescriptor<MinidumpModuleCodeViewRecordPDB20>( 228 MinidumpWritableAtLocationDescriptor<MinidumpModuleCodeViewRecordPDB20>(
222 const std::string& file_contents, 229 const std::string& file_contents,
223 const MINIDUMP_LOCATION_DESCRIPTOR& location); 230 const MINIDUMP_LOCATION_DESCRIPTOR& location);
224 231
225 template <> 232 template <>
226 const MinidumpModuleCodeViewRecordPDB70* 233 const MinidumpModuleCodeViewRecordPDB70*
227 MinidumpWritableAtLocationDescriptor<MinidumpModuleCodeViewRecordPDB70>( 234 MinidumpWritableAtLocationDescriptor<MinidumpModuleCodeViewRecordPDB70>(
228 const std::string& file_contents, 235 const std::string& file_contents,
229 const MINIDUMP_LOCATION_DESCRIPTOR& location); 236 const MINIDUMP_LOCATION_DESCRIPTOR& location);
230 237
231 template <> 238 template <>
232 const MinidumpSimpleStringDictionary* 239 const MinidumpSimpleStringDictionary*
233 MinidumpWritableAtLocationDescriptor<MinidumpSimpleStringDictionary>( 240 MinidumpWritableAtLocationDescriptor<MinidumpSimpleStringDictionary>(
234 const std::string& file_contents, 241 const std::string& file_contents,
235 const MINIDUMP_LOCATION_DESCRIPTOR& location); 242 const MINIDUMP_LOCATION_DESCRIPTOR& location);
236 243
237 } // namespace test 244 } // namespace test
238 } // namespace crashpad 245 } // namespace crashpad
239 246
240 #endif // CRASHPAD_MINIDUMP_TEST_MINIDUMP_WRITABLE_TEST_UTIL_H_ 247 #endif // CRASHPAD_MINIDUMP_TEST_MINIDUMP_WRITABLE_TEST_UTIL_H_
OLDNEW
« no previous file with comments | « minidump/minidump_extensions.cc ('k') | minidump/test/minidump_writable_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698