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

Side by Side Diff: util/win/process_info_test.cc

Issue 1428803006: win: Implement CrashpadClient::StartHandler() (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Address review feedback; add a test Created 5 years, 1 month 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/exception_handler_server_test.cc ('k') | no next file » | 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,
(...skipping 13 matching lines...) Expand all
24 #include "base/strings/stringprintf.h" 24 #include "base/strings/stringprintf.h"
25 #include "base/strings/utf_string_conversions.h" 25 #include "base/strings/utf_string_conversions.h"
26 #include "build/build_config.h" 26 #include "build/build_config.h"
27 #include "gtest/gtest.h" 27 #include "gtest/gtest.h"
28 #include "test/errors.h" 28 #include "test/errors.h"
29 #include "test/scoped_temp_dir.h" 29 #include "test/scoped_temp_dir.h"
30 #include "test/paths.h" 30 #include "test/paths.h"
31 #include "test/win/child_launcher.h" 31 #include "test/win/child_launcher.h"
32 #include "util/file/file_io.h" 32 #include "util/file/file_io.h"
33 #include "util/misc/uuid.h" 33 #include "util/misc/uuid.h"
34 #include "util/win/command_line.h"
34 #include "util/win/get_function.h" 35 #include "util/win/get_function.h"
35 #include "util/win/scoped_handle.h" 36 #include "util/win/scoped_handle.h"
36 37
37 namespace crashpad { 38 namespace crashpad {
38 namespace test { 39 namespace test {
39 namespace { 40 namespace {
40 41
41 const wchar_t kNtdllName[] = L"\\ntdll.dll"; 42 const wchar_t kNtdllName[] = L"\\ntdll.dll";
42 43
43 bool IsProcessWow64(HANDLE process_handle) { 44 bool IsProcessWow64(HANDLE process_handle) {
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 EXPECT_TRUE( 634 EXPECT_TRUE(
634 info.LoggingRangeIsFullyReadable(CheckedRange<WinVMAddress, WinVMSize>( 635 info.LoggingRangeIsFullyReadable(CheckedRange<WinVMAddress, WinVMSize>(
635 reinterpret_cast<WinVMAddress>(safe_memory.get()), kAllocationSize))); 636 reinterpret_cast<WinVMAddress>(safe_memory.get()), kAllocationSize)));
636 EXPECT_FALSE(info.LoggingRangeIsFullyReadable( 637 EXPECT_FALSE(info.LoggingRangeIsFullyReadable(
637 CheckedRange<WinVMAddress, WinVMSize>(0, 1024))); 638 CheckedRange<WinVMAddress, WinVMSize>(0, 1024)));
638 } 639 }
639 640
640 } // namespace 641 } // namespace
641 } // namespace test 642 } // namespace test
642 } // namespace crashpad 643 } // namespace crashpad
OLDNEW
« no previous file with comments | « util/win/exception_handler_server_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698