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

Issue 1994015: Moved exception_handler_test to the more aptly named exception_handler_death_... (Closed)

Created:
10 years, 7 months ago by hansl_g
Modified:
9 years, 7 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Moved exception_handler_test to the more aptly named exception_handler_death_test. It doesn't test anything else than death and exit. Created the exception_handler_test that test the generation of dump and the dumps themselves. Moved all dump analysis code from minidump to its right class DumpAnalysis. The class is used by both minidump_test and exception_handler_test. The tests are way simpler that way (ie. no handling of HANDLE). minidump_test now uses the minidump_generator class instead of using Win32. It works well and pass all tests. exception_handler now passes both the exception and assertion infos to the client to generate the dump. If one is NULL it's going to be handled correctly. crash_generation_client can now RequestDump with both exception and assertion info. minidump_generator returns both the mini and full dump string pointers, and output both (or either) depending on which was generated. All original interfaces and method signature are still there, but call the new functions if possible. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=596

Patch Set 1 #

Total comments: 22

Patch Set 2 : '' #

Total comments: 6

Patch Set 3 : '' #

Total comments: 2

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+484 lines, -1220 lines) Patch
M src/client/windows/crash_generation/crash_generation_client.h View 1 3 chunks +6 lines, -3 lines 0 comments Download
M src/client/windows/crash_generation/crash_generation_client.cc View 1 2 2 chunks +10 lines, -19 lines 0 comments Download
M src/client/windows/crash_generation/minidump_generator.h View 1 3 chunks +17 lines, -3 lines 0 comments Download
M src/client/windows/crash_generation/minidump_generator.cc View 3 chunks +21 lines, -1 line 0 comments Download
M src/client/windows/handler/exception_handler.cc View 4 chunks +12 lines, -17 lines 0 comments Download
M src/client/windows/unittests/client_tests.gyp View 1 1 chunk +4 lines, -0 lines 0 comments Download
A + src/client/windows/unittests/dump_analysis.h View 1 1 chunk +37 lines, -417 lines 0 comments Download
A + src/client/windows/unittests/dump_analysis.cc View 1 2 3 1 chunk +110 lines, -408 lines 0 comments Download
A + src/client/windows/unittests/exception_handler_death_test.cc View 1 chunk +15 lines, -0 lines 0 comments Download
M src/client/windows/unittests/exception_handler_test.cc View 1 2 3 3 chunks +113 lines, -63 lines 0 comments Download
M src/client/windows/unittests/minidump_test.cc View 1 2 3 5 chunks +139 lines, -289 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
hansl_g
Please review this. I think I wrote all necessary information to describe this change, but ...
10 years, 7 months ago (2010-05-11 20:47:48 UTC) #1
Sigurður Ásgeirsson
Awesome, I have but a couple of nits. http://codereview.chromium.org/1994015/diff/1/2 File src/client/windows/crash_generation/crash_generation_client.cc (right): http://codereview.chromium.org/1994015/diff/1/2#newcode292 src/client/windows/crash_generation/crash_generation_client.cc:292: bool ...
10 years, 7 months ago (2010-05-11 21:33:41 UTC) #2
hansl_g
There you go. Happy review! http://codereview.chromium.org/1994015/diff/1/3 File src/client/windows/crash_generation/crash_generation_client.h (right): http://codereview.chromium.org/1994015/diff/1/3#newcode30 src/client/windows/crash_generation/crash_generation_client.h:30: #ifndef SRC_CLIENT_WINDOWS_CRASH_GENERATION_CRASH_GENERATION_CLIENT_H_ On 2010/05/11 ...
10 years, 7 months ago (2010-05-12 16:35:07 UTC) #3
Sigurður Ásgeirsson
Sweet, still a couple of minor nits... http://codereview.chromium.org/1994015/diff/1/11 File src/client/windows/unittests/exception_handler_test.cc (right): http://codereview.chromium.org/1994015/diff/1/11#newcode39 src/client/windows/unittests/exception_handler_test.cc:39: #include "./dump_analysis.h" ...
10 years, 7 months ago (2010-05-12 17:09:12 UTC) #4
Sigurður Ásgeirsson
Sweet, still a couple of minor nits... http://codereview.chromium.org/1994015/diff/14001/5002 File src/client/windows/crash_generation/crash_generation_client.cc (right): http://codereview.chromium.org/1994015/diff/14001/5002#newcode293 src/client/windows/crash_generation/crash_generation_client.cc:293: return this->RequestDump(ex_info, ...
10 years, 7 months ago (2010-05-12 17:09:12 UTC) #5
hansl_g
All done. I've removed the "./" path and put a NOLINT. Looks better that way. ...
10 years, 7 months ago (2010-05-12 17:16:08 UTC) #6
Sigurður Ásgeirsson
10 years, 7 months ago (2010-05-12 17:27:20 UTC) #7
lgtm with two minor nits, thanks!

http://codereview.chromium.org/1994015/diff/12002/28007
File src/client/windows/unittests/dump_analysis.cc (right):

http://codereview.chromium.org/1994015/diff/12002/28007#newcode34
src/client/windows/unittests/dump_analysis.cc:34: #include "dump_analysis.h"  //
 NOLINT
nit: only one space after //

http://codereview.chromium.org/1994015/diff/12002/28011
File src/client/windows/unittests/minidump_test.cc (right):

http://codereview.chromium.org/1994015/diff/12002/28011#newcode35
src/client/windows/unittests/minidump_test.cc:35: #include "dump_analysis.h"  //
 NOLINT
nit: only one space after //

Powered by Google App Engine
This is Rietveld 408576698