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, |
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
12 // See the License for the specific language governing permissions and | 12 // See the License for the specific language governing permissions and |
13 // limitations under the License. | 13 // limitations under the License. |
14 | 14 |
15 #ifndef CRASHPAD_MINIDUMP_TEST_MINIDUMP_MEMORY_WRITER_TEST_UTIL_H_ | 15 #ifndef CRASHPAD_MINIDUMP_TEST_MINIDUMP_MEMORY_WRITER_TEST_UTIL_H_ |
16 #define CRASHPAD_MINIDUMP_TEST_MINIDUMP_MEMORY_WRITER_TEST_UTIL_H_ | 16 #define CRASHPAD_MINIDUMP_TEST_MINIDUMP_MEMORY_WRITER_TEST_UTIL_H_ |
17 | 17 |
18 #include "minidump/minidump_memory_writer.h" | 18 #include "minidump/minidump_memory_writer.h" |
19 | 19 |
20 #include <dbghelp.h> | |
21 #include <stdint.h> | 20 #include <stdint.h> |
22 | 21 |
23 #include <string> | 22 #include <string> |
24 | 23 |
25 #include "base/basictypes.h" | 24 #include "base/basictypes.h" |
| 25 #include "minidump/crashpad_dbghelp.h" |
26 #include "util/file/file_writer.h" | 26 #include "util/file/file_writer.h" |
27 | 27 |
28 namespace crashpad { | 28 namespace crashpad { |
29 namespace test { | 29 namespace test { |
30 | 30 |
31 //! \brief A MinidumpMemoryWriter implementation used for testing. | 31 //! \brief A MinidumpMemoryWriter implementation used for testing. |
32 //! | 32 //! |
33 //! TestMinidumpMemoryWriter objects are created with a fixed base address and | 33 //! TestMinidumpMemoryWriter objects are created with a fixed base address and |
34 //! size, and will write the same byte (\a value) repeatedly, \a size times. | 34 //! size, and will write the same byte (\a value) repeatedly, \a size times. |
35 class TestMinidumpMemoryWriter final : public MinidumpMemoryWriter { | 35 class TestMinidumpMemoryWriter final : public MinidumpMemoryWriter { |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 const MINIDUMP_MEMORY_DESCRIPTOR* expected, | 95 const MINIDUMP_MEMORY_DESCRIPTOR* expected, |
96 const MINIDUMP_MEMORY_DESCRIPTOR* observed, | 96 const MINIDUMP_MEMORY_DESCRIPTOR* observed, |
97 const std::string& file_contents, | 97 const std::string& file_contents, |
98 uint8_t value, | 98 uint8_t value, |
99 bool at_eof); | 99 bool at_eof); |
100 | 100 |
101 } // namespace test | 101 } // namespace test |
102 } // namespace crashpad | 102 } // namespace crashpad |
103 | 103 |
104 #endif // CRASHPAD_MINIDUMP_TEST_MINIDUMP_MEMORY_WRITER_TEST_UTIL_H_ | 104 #endif // CRASHPAD_MINIDUMP_TEST_MINIDUMP_MEMORY_WRITER_TEST_UTIL_H_ |
OLD | NEW |