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

Side by Side Diff: util/win/process_info_test.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 | « util/win/process_info.h ('k') | util/win/scoped_process_suspend.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 "util/win/process_info.h" 15 #include "util/win/process_info.h"
16 16
17 #include <dbghelp.h> 17 #include <dbghelp.h>
18 #include <intrin.h> 18 #include <intrin.h>
19 #include <wchar.h> 19 #include <wchar.h>
20 20
21 #include "base/files/file_path.h" 21 #include "base/files/file_path.h"
22 #include "base/memory/scoped_ptr.h" 22 #include "base/memory/scoped_ptr.h"
23 #include "base/strings/stringprintf.h" 23 #include "base/strings/stringprintf.h"
24 #include "base/strings/utf_string_conversions.h" 24 #include "base/strings/utf_string_conversions.h"
25 #include "build/build_config.h" 25 #include "build/build_config.h"
26 #include "gtest/gtest.h" 26 #include "gtest/gtest.h"
27 #include "test/errors.h" 27 #include "test/errors.h"
28 #include "test/paths.h"
28 #include "test/scoped_temp_dir.h" 29 #include "test/scoped_temp_dir.h"
29 #include "test/paths.h"
30 #include "test/win/child_launcher.h" 30 #include "test/win/child_launcher.h"
31 #include "util/file/file_io.h" 31 #include "util/file/file_io.h"
32 #include "util/misc/random_string.h" 32 #include "util/misc/random_string.h"
33 #include "util/misc/uuid.h" 33 #include "util/misc/uuid.h"
34 #include "util/win/command_line.h" 34 #include "util/win/command_line.h"
35 #include "util/win/get_function.h" 35 #include "util/win/get_function.h"
36 #include "util/win/handle.h" 36 #include "util/win/handle.h"
37 #include "util/win/scoped_handle.h" 37 #include "util/win/scoped_handle.h"
38 38
39 namespace crashpad { 39 namespace crashpad {
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 EXPECT_TRUE( 639 EXPECT_TRUE(
640 info.LoggingRangeIsFullyReadable(CheckedRange<WinVMAddress, WinVMSize>( 640 info.LoggingRangeIsFullyReadable(CheckedRange<WinVMAddress, WinVMSize>(
641 reinterpret_cast<WinVMAddress>(safe_memory.get()), kAllocationSize))); 641 reinterpret_cast<WinVMAddress>(safe_memory.get()), kAllocationSize)));
642 EXPECT_FALSE(info.LoggingRangeIsFullyReadable( 642 EXPECT_FALSE(info.LoggingRangeIsFullyReadable(
643 CheckedRange<WinVMAddress, WinVMSize>(0, 1024))); 643 CheckedRange<WinVMAddress, WinVMSize>(0, 1024)));
644 } 644 }
645 645
646 } // namespace 646 } // namespace
647 } // namespace test 647 } // namespace test
648 } // namespace crashpad 648 } // namespace crashpad
OLDNEW
« no previous file with comments | « util/win/process_info.h ('k') | util/win/scoped_process_suspend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698