OLD | NEW |
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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 EXPECT_EQ('\0', cv_pdb->pdb_name[string_length]); | 284 EXPECT_EQ('\0', cv_pdb->pdb_name[string_length]); |
285 return nullptr; | 285 return nullptr; |
286 } | 286 } |
287 | 287 |
288 return cv_pdb; | 288 return cv_pdb; |
289 } | 289 } |
290 | 290 |
291 } // namespace | 291 } // namespace |
292 | 292 |
293 template <> | 293 template <> |
294 const MinidumpModuleCodeViewRecordPDB20* | 294 const CodeViewRecordPDB20* MinidumpWritableAtLocationDescriptor< |
295 MinidumpWritableAtLocationDescriptor<MinidumpModuleCodeViewRecordPDB20>( | 295 CodeViewRecordPDB20>(const std::string& file_contents, |
296 const std::string& file_contents, | 296 const MINIDUMP_LOCATION_DESCRIPTOR& location) { |
297 const MINIDUMP_LOCATION_DESCRIPTOR& location) { | 297 return MinidumpCVPDBAtLocationDescriptor<CodeViewRecordPDB20>(file_contents, |
298 return MinidumpCVPDBAtLocationDescriptor<MinidumpModuleCodeViewRecordPDB20>( | 298 location); |
299 file_contents, location); | |
300 } | 299 } |
301 | 300 |
302 template <> | 301 template <> |
303 const MinidumpModuleCodeViewRecordPDB70* | 302 const CodeViewRecordPDB70* MinidumpWritableAtLocationDescriptor< |
304 MinidumpWritableAtLocationDescriptor<MinidumpModuleCodeViewRecordPDB70>( | 303 CodeViewRecordPDB70>(const std::string& file_contents, |
305 const std::string& file_contents, | 304 const MINIDUMP_LOCATION_DESCRIPTOR& location) { |
306 const MINIDUMP_LOCATION_DESCRIPTOR& location) { | 305 return MinidumpCVPDBAtLocationDescriptor<CodeViewRecordPDB70>(file_contents, |
307 return MinidumpCVPDBAtLocationDescriptor<MinidumpModuleCodeViewRecordPDB70>( | 306 location); |
308 file_contents, location); | |
309 } | 307 } |
310 | 308 |
311 TestUInt32MinidumpWritable::TestUInt32MinidumpWritable(uint32_t value) | 309 TestUInt32MinidumpWritable::TestUInt32MinidumpWritable(uint32_t value) |
312 : MinidumpWritable(), | 310 : MinidumpWritable(), |
313 value_(value) { | 311 value_(value) { |
314 } | 312 } |
315 | 313 |
316 TestUInt32MinidumpWritable::~TestUInt32MinidumpWritable() { | 314 TestUInt32MinidumpWritable::~TestUInt32MinidumpWritable() { |
317 } | 315 } |
318 | 316 |
319 size_t TestUInt32MinidumpWritable::SizeOfObject() { | 317 size_t TestUInt32MinidumpWritable::SizeOfObject() { |
320 return sizeof(value_); | 318 return sizeof(value_); |
321 } | 319 } |
322 | 320 |
323 bool TestUInt32MinidumpWritable::WriteObject(FileWriterInterface* file_writer) { | 321 bool TestUInt32MinidumpWritable::WriteObject(FileWriterInterface* file_writer) { |
324 return file_writer->Write(&value_, sizeof(value_)); | 322 return file_writer->Write(&value_, sizeof(value_)); |
325 } | 323 } |
326 | 324 |
327 } // namespace test | 325 } // namespace test |
328 } // namespace crashpad | 326 } // namespace crashpad |
OLD | NEW |