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

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

Issue 2833533003: Update Crashpad to f487da4ff2c47a129e2f8f3a7e0c769b54e4585f (Closed)
Patch Set: Created 3 years, 8 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 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 test_executable.DirName() 144 test_executable.DirName()
145 .Append(directory_modification) 145 .Append(directory_modification)
146 .Append(test_executable.BaseName().RemoveFinalExtension().value() + 146 .Append(test_executable.BaseName().RemoveFinalExtension().value() +
147 L"_process_info_test_child.exe") 147 L"_process_info_test_child.exe")
148 .value(); 148 .value();
149 149
150 std::wstring args; 150 std::wstring args;
151 AppendCommandLineArgument(done_uuid.ToString16(), &args); 151 AppendCommandLineArgument(done_uuid.ToString16(), &args);
152 152
153 ChildLauncher child(child_test_executable, args); 153 ChildLauncher child(child_test_executable, args);
154 child.Start(); 154 ASSERT_NO_FATAL_FAILURE(child.Start());
155 155
156 // The child sends us a code address we can look up in the memory map. 156 // The child sends us a code address we can look up in the memory map.
157 WinVMAddress code_address; 157 WinVMAddress code_address;
158 CheckedReadFileExactly( 158 CheckedReadFileExactly(
159 child.stdout_read_handle(), &code_address, sizeof(code_address)); 159 child.stdout_read_handle(), &code_address, sizeof(code_address));
160 160
161 ASSERT_TRUE(process_info.Initialize(child.process_handle())); 161 ASSERT_TRUE(process_info.Initialize(child.process_handle()));
162 162
163 // Tell the test it's OK to shut down now that we've read our data. 163 // Tell the test it's OK to shut down now that we've read our data.
164 EXPECT_TRUE(SetEvent(done.get())) << ErrorMessage("SetEvent"); 164 EXPECT_TRUE(SetEvent(done.get())) << ErrorMessage("SetEvent");
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 EXPECT_TRUE( 641 EXPECT_TRUE(
642 info.LoggingRangeIsFullyReadable(CheckedRange<WinVMAddress, WinVMSize>( 642 info.LoggingRangeIsFullyReadable(CheckedRange<WinVMAddress, WinVMSize>(
643 reinterpret_cast<WinVMAddress>(safe_memory.get()), kAllocationSize))); 643 reinterpret_cast<WinVMAddress>(safe_memory.get()), kAllocationSize)));
644 EXPECT_FALSE(info.LoggingRangeIsFullyReadable( 644 EXPECT_FALSE(info.LoggingRangeIsFullyReadable(
645 CheckedRange<WinVMAddress, WinVMSize>(0, 1024))); 645 CheckedRange<WinVMAddress, WinVMSize>(0, 1024)));
646 } 646 }
647 647
648 } // namespace 648 } // namespace
649 } // namespace test 649 } // namespace test
650 } // namespace crashpad 650 } // namespace crashpad
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698