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

Unified Diff: snapshot/win/crashpad_snapshot_test_crashing_child.cc

Issue 1406993008: win: Rename CrashpadClient::SetHandler() to SetHandlerIPCPipe() (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Revise comment 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 side-by-side diff with in-line comments
Download patch
Index: snapshot/win/crashpad_snapshot_test_crashing_child.cc
diff --git a/snapshot/win/crashpad_snapshot_test_crashing_child.cc b/snapshot/win/crashpad_snapshot_test_crashing_child.cc
index 7f4b8e5babaf68673ce96f3dd5111a47362009e2..d4023c65d4dacdf7145aab58c518cd2b83b5302c 100644
--- a/snapshot/win/crashpad_snapshot_test_crashing_child.cc
+++ b/snapshot/win/crashpad_snapshot_test_crashing_child.cc
@@ -14,20 +14,25 @@
#include <windows.h>
+#include "base/files/file_path.h"
#include "base/logging.h"
#include "client/crashpad_client.h"
#include "util/file/file_io.h"
#include "util/win/address_types.h"
+namespace {
+
__declspec(noinline) crashpad::WinVMAddress CurrentAddress() {
return reinterpret_cast<crashpad::WinVMAddress>(_ReturnAddress());
}
-int main(int argc, char* argv[]) {
+} // namespace
+
+int wmain(int argc, wchar_t* argv[]) {
CHECK_EQ(argc, 2);
crashpad::CrashpadClient client;
- CHECK(client.SetHandler(argv[1]));
+ CHECK(client.SetHandlerIPCPipe(argv[1]));
CHECK(client.UseHandler());
HANDLE out = GetStdHandle(STD_OUTPUT_HANDLE);
« no previous file with comments | « handler/win/self_destroying_test_program.cc ('k') | snapshot/win/crashpad_snapshot_test_dump_without_crashing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698