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

Side by Side Diff: third_party/crashpad/crashpad/snapshot/win/crashpad_snapshot_test_crashing_child.cc

Issue 2561963002: base: Remove the string logging from CHECK(). (Closed)
Patch Set: checkstring: rebase Created 4 years 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 17 matching lines...) Expand all
28 28
29 } // namespace 29 } // namespace
30 30
31 int wmain(int argc, wchar_t* argv[]) { 31 int wmain(int argc, wchar_t* argv[]) {
32 CHECK_EQ(argc, 2); 32 CHECK_EQ(argc, 2);
33 33
34 crashpad::CrashpadClient client; 34 crashpad::CrashpadClient client;
35 CHECK(client.SetHandlerIPCPipe(argv[1])); 35 CHECK(client.SetHandlerIPCPipe(argv[1]));
36 36
37 HANDLE out = GetStdHandle(STD_OUTPUT_HANDLE); 37 HANDLE out = GetStdHandle(STD_OUTPUT_HANDLE);
38 PCHECK(out != INVALID_HANDLE_VALUE) << "GetStdHandle"; 38 // GetStdHandle
39 CHECK(out != INVALID_HANDLE_VALUE);
39 crashpad::WinVMAddress break_address = CurrentAddress(); 40 crashpad::WinVMAddress break_address = CurrentAddress();
40 crashpad::CheckedWriteFile(out, &break_address, sizeof(break_address)); 41 crashpad::CheckedWriteFile(out, &break_address, sizeof(break_address));
41 42
42 __debugbreak(); 43 __debugbreak();
43 44
44 return 0; 45 return 0;
45 } 46 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698