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

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

Issue 1566713002: Use base/macros.h instead of base/basictypes.h (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Windows #incldue → #include Created 4 years, 11 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,
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 <windows.h> 20 #include <windows.h>
21 #include <dbghelp.h> 21 #include <dbghelp.h>
22 #include <stdint.h> 22 #include <stdint.h>
23 #include <sys/types.h>
23 24
24 #include <string> 25 #include <string>
25 26
26 #include "base/basictypes.h" 27 #include "base/macros.h"
27 #include "util/file/file_writer.h" 28 #include "util/file/file_writer.h"
28 29
29 namespace crashpad { 30 namespace crashpad {
30 namespace test { 31 namespace test {
31 32
32 //! \brief A MinidumpMemoryWriter implementation used for testing. 33 //! \brief A MinidumpMemoryWriter implementation used for testing.
33 //! 34 //!
34 //! TestMinidumpMemoryWriter objects are created with a fixed base address and 35 //! TestMinidumpMemoryWriter objects are created with a fixed base address and
35 //! size, and will write the same byte (\a value) repeatedly, \a size times. 36 //! size, and will write the same byte (\a value) repeatedly, \a size times.
36 class TestMinidumpMemoryWriter final : public MinidumpMemoryWriter { 37 class TestMinidumpMemoryWriter final : public MinidumpMemoryWriter {
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 const MINIDUMP_MEMORY_DESCRIPTOR* expected, 97 const MINIDUMP_MEMORY_DESCRIPTOR* expected,
97 const MINIDUMP_MEMORY_DESCRIPTOR* observed, 98 const MINIDUMP_MEMORY_DESCRIPTOR* observed,
98 const std::string& file_contents, 99 const std::string& file_contents,
99 uint8_t value, 100 uint8_t value,
100 bool at_eof); 101 bool at_eof);
101 102
102 } // namespace test 103 } // namespace test
103 } // namespace crashpad 104 } // namespace crashpad
104 105
105 #endif // CRASHPAD_MINIDUMP_TEST_MINIDUMP_MEMORY_WRITER_TEST_UTIL_H_ 106 #endif // CRASHPAD_MINIDUMP_TEST_MINIDUMP_MEMORY_WRITER_TEST_UTIL_H_
OLDNEW
« no previous file with comments | « minidump/test/minidump_context_test_util.cc ('k') | minidump/test/minidump_rva_list_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698