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

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

Issue 1419623003: Write MINIDUMP_HANDLE_DATA_STREAM to minidump (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: . Created 5 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
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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 } 83 }
84 84
85 // This type appears only as a variable-sized list. 85 // This type appears only as a variable-sized list.
86 MINIDUMP_ALLOW_OVERSIZED_DATA(MINIDUMP_DIRECTORY); 86 MINIDUMP_ALLOW_OVERSIZED_DATA(MINIDUMP_DIRECTORY);
87 87
88 // These types are permitted to be oversized because their final fields are 88 // These types are permitted to be oversized because their final fields are
89 // variable-sized lists. 89 // variable-sized lists.
90 MINIDUMP_ALLOW_OVERSIZED_DATA(MINIDUMP_MEMORY_LIST); 90 MINIDUMP_ALLOW_OVERSIZED_DATA(MINIDUMP_MEMORY_LIST);
91 MINIDUMP_ALLOW_OVERSIZED_DATA(MINIDUMP_MODULE_LIST); 91 MINIDUMP_ALLOW_OVERSIZED_DATA(MINIDUMP_MODULE_LIST);
92 MINIDUMP_ALLOW_OVERSIZED_DATA(MINIDUMP_THREAD_LIST); 92 MINIDUMP_ALLOW_OVERSIZED_DATA(MINIDUMP_THREAD_LIST);
93 MINIDUMP_ALLOW_OVERSIZED_DATA(MINIDUMP_HANDLE_DATA_STREAM);
93 MINIDUMP_ALLOW_OVERSIZED_DATA(MINIDUMP_MEMORY_INFO_LIST); 94 MINIDUMP_ALLOW_OVERSIZED_DATA(MINIDUMP_MEMORY_INFO_LIST);
94 MINIDUMP_ALLOW_OVERSIZED_DATA(MinidumpModuleCrashpadInfoList); 95 MINIDUMP_ALLOW_OVERSIZED_DATA(MinidumpModuleCrashpadInfoList);
95 MINIDUMP_ALLOW_OVERSIZED_DATA(MinidumpRVAList); 96 MINIDUMP_ALLOW_OVERSIZED_DATA(MinidumpRVAList);
96 MINIDUMP_ALLOW_OVERSIZED_DATA(MinidumpSimpleStringDictionary); 97 MINIDUMP_ALLOW_OVERSIZED_DATA(MinidumpSimpleStringDictionary);
97 98
98 // These types have final fields carrying variable-sized data (typically string 99 // These types have final fields carrying variable-sized data (typically string
99 // data). 100 // data).
100 MINIDUMP_ALLOW_OVERSIZED_DATA(IMAGE_DEBUG_MISC); 101 MINIDUMP_ALLOW_OVERSIZED_DATA(IMAGE_DEBUG_MISC);
101 MINIDUMP_ALLOW_OVERSIZED_DATA(MINIDUMP_STRING); 102 MINIDUMP_ALLOW_OVERSIZED_DATA(MINIDUMP_STRING);
102 MINIDUMP_ALLOW_OVERSIZED_DATA(CodeViewRecordPDB20); 103 MINIDUMP_ALLOW_OVERSIZED_DATA(CodeViewRecordPDB20);
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 const MINIDUMP_MODULE_LIST* MinidumpWritableAtLocationDescriptor< 185 const MINIDUMP_MODULE_LIST* MinidumpWritableAtLocationDescriptor<
185 MINIDUMP_MODULE_LIST>(const std::string& file_contents, 186 MINIDUMP_MODULE_LIST>(const std::string& file_contents,
186 const MINIDUMP_LOCATION_DESCRIPTOR& location); 187 const MINIDUMP_LOCATION_DESCRIPTOR& location);
187 188
188 template <> 189 template <>
189 const MINIDUMP_THREAD_LIST* MinidumpWritableAtLocationDescriptor< 190 const MINIDUMP_THREAD_LIST* MinidumpWritableAtLocationDescriptor<
190 MINIDUMP_THREAD_LIST>(const std::string& file_contents, 191 MINIDUMP_THREAD_LIST>(const std::string& file_contents,
191 const MINIDUMP_LOCATION_DESCRIPTOR& location); 192 const MINIDUMP_LOCATION_DESCRIPTOR& location);
192 193
193 template <> 194 template <>
195 const MINIDUMP_HANDLE_DATA_STREAM* MinidumpWritableAtLocationDescriptor<
196 MINIDUMP_HANDLE_DATA_STREAM>(const std::string& file_contents,
197 const MINIDUMP_LOCATION_DESCRIPTOR& location);
198
199 template <>
194 const MINIDUMP_MEMORY_INFO_LIST* MinidumpWritableAtLocationDescriptor< 200 const MINIDUMP_MEMORY_INFO_LIST* MinidumpWritableAtLocationDescriptor<
195 MINIDUMP_MEMORY_INFO_LIST>(const std::string& file_contents, 201 MINIDUMP_MEMORY_INFO_LIST>(const std::string& file_contents,
196 const MINIDUMP_LOCATION_DESCRIPTOR& location); 202 const MINIDUMP_LOCATION_DESCRIPTOR& location);
197 203
198 template <> 204 template <>
199 const CodeViewRecordPDB20* MinidumpWritableAtLocationDescriptor< 205 const CodeViewRecordPDB20* MinidumpWritableAtLocationDescriptor<
200 CodeViewRecordPDB20>(const std::string& file_contents, 206 CodeViewRecordPDB20>(const std::string& file_contents,
201 const MINIDUMP_LOCATION_DESCRIPTOR& location); 207 const MINIDUMP_LOCATION_DESCRIPTOR& location);
202 208
203 template <> 209 template <>
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 private: 259 private:
254 uint32_t value_; 260 uint32_t value_;
255 261
256 DISALLOW_COPY_AND_ASSIGN(TestUInt32MinidumpWritable); 262 DISALLOW_COPY_AND_ASSIGN(TestUInt32MinidumpWritable);
257 }; 263 };
258 264
259 } // namespace test 265 } // namespace test
260 } // namespace crashpad 266 } // namespace crashpad
261 267
262 #endif // CRASHPAD_MINIDUMP_TEST_MINIDUMP_WRITABLE_TEST_UTIL_H_ 268 #endif // CRASHPAD_MINIDUMP_TEST_MINIDUMP_WRITABLE_TEST_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698