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

Side by Side Diff: handler/win/crashy_test_program.cc

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
« no previous file with comments | « handler/win/crash_report_exception_handler.h ('k') | minidump/minidump_context_writer.h » ('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 2015 The Crashpad Authors. All rights reserved. 1 // Copyright 2015 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 #include <stdint.h> 15 #include <stdint.h>
16 #include <stdlib.h> 16 #include <stdlib.h>
17 #include <sys/types.h>
17 #include <windows.h> 18 #include <windows.h>
18 #include <winternl.h> 19 #include <winternl.h>
19 20
21 #include <map>
20 #include <string> 22 #include <string>
21 #include <map>
22 #include <vector> 23 #include <vector>
23 24
25 #include "base/files/file_path.h"
26 #include "base/logging.h"
27 #include "base/macros.h"
28 #include "client/crashpad_client.h"
29 #include "util/win/critical_section_with_debug_info.h"
30 #include "util/win/get_function.h"
31
24 // ntstatus.h conflicts with windows.h so define this locally. 32 // ntstatus.h conflicts with windows.h so define this locally.
25 #ifndef STATUS_NO_SUCH_FILE 33 #ifndef STATUS_NO_SUCH_FILE
26 #define STATUS_NO_SUCH_FILE static_cast<NTSTATUS>(0xC000000F) 34 #define STATUS_NO_SUCH_FILE static_cast<NTSTATUS>(0xC000000F)
27 #endif 35 #endif
28 36
29 #include "base/basictypes.h"
30 #include "base/files/file_path.h"
31 #include "base/logging.h"
32 #include "client/crashpad_client.h"
33 #include "util/win/critical_section_with_debug_info.h"
34 #include "util/win/get_function.h"
35
36 namespace crashpad { 37 namespace crashpad {
37 namespace { 38 namespace {
38 39
39 CRITICAL_SECTION g_test_critical_section; 40 CRITICAL_SECTION g_test_critical_section;
40 41
41 ULONG RtlNtStatusToDosError(NTSTATUS status) { 42 ULONG RtlNtStatusToDosError(NTSTATUS status) {
42 static const auto rtl_nt_status_to_dos_error = 43 static const auto rtl_nt_status_to_dos_error =
43 GET_FUNCTION_REQUIRED(L"ntdll.dll", ::RtlNtStatusToDosError); 44 GET_FUNCTION_REQUIRED(L"ntdll.dll", ::RtlNtStatusToDosError);
44 return rtl_nt_status_to_dos_error(status); 45 return rtl_nt_status_to_dos_error(status);
45 } 46 }
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 134
134 return EXIT_SUCCESS; 135 return EXIT_SUCCESS;
135 } 136 }
136 137
137 } // namespace 138 } // namespace
138 } // namespace crashpad 139 } // namespace crashpad
139 140
140 int wmain(int argc, wchar_t* argv[]) { 141 int wmain(int argc, wchar_t* argv[]) {
141 return crashpad::CrashyMain(argc, argv); 142 return crashpad::CrashyMain(argc, argv);
142 } 143 }
OLDNEW
« no previous file with comments | « handler/win/crash_report_exception_handler.h ('k') | minidump/minidump_context_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698