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

Issue 3083028: PyAuto test for renderer crash reporting (Closed)

Created:
10 years, 4 months ago by Nirnimesh
Modified:
9 years, 7 months ago
Reviewers:
John Grabowski
CC:
chromium-reviews, Paweł Hajdan Jr., ben+cc_chromium.org, John Grabowski, pam+watch_chromium.org
Visibility:
Public.

Description

PyAuto test for renderer crash reporting - Add a helper class (ExistingPathReplacer) to temporarily back up a path while pyauto uses it, and then reinstate it. Used by crash reporter test - Increase PyAuto's default logging level to INFO Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=56906

Patch Set 1 #

Total comments: 6

Patch Set 2 : . #

Patch Set 3 : DIR_CRASH_DUMPS #

Patch Set 4 : . #

Total comments: 1

Patch Set 5 : pyauto_utils_test.py #

Patch Set 6 : . #

Patch Set 7 : . #

Patch Set 8 : after merge #

Patch Set 9 : . #

Total comments: 4

Patch Set 10 : jrg #

Unified diffs Side-by-side diffs Delta from patch set Stats (+209 lines, -1 line) Patch
M chrome/browser/automation/automation_provider.cc View 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/test/functional/PYAUTO_TESTS View 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/functional/crash_reporter.py View 1 2 3 4 5 6 7 8 9 1 chunk +38 lines, -0 lines 0 comments Download
M chrome/test/pyautolib/pyauto.py View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
A chrome/test/pyautolib/pyauto_utils.py View 1 2 3 4 5 6 1 chunk +79 lines, -0 lines 0 comments Download
A chrome/test/pyautolib/pyauto_utils_test.py View 1 chunk +87 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Nirnimesh
10 years, 4 months ago (2010-08-09 19:06:49 UTC) #1
John Grabowski
http://codereview.chromium.org/3083028/diff/1/2 File chrome/test/functional/crash_reporter.py (right): http://codereview.chromium.org/3083028/diff/1/2#newcode27 chrome/test/functional/crash_reporter.py:27: if pyauto.PyUITest.IsMac(): Windows: http://superuser.com/questions/624/where-is-google-chrome-crash-dump-located Linux: http://code.google.com/p/chromium/wiki/LinuxCrashDumping http://codereview.chromium.org/3083028/diff/1/2#newcode27 chrome/test/functional/crash_reporter.py:27: if ...
10 years, 4 months ago (2010-08-09 20:00:03 UTC) #2
Nirnimesh
I fixed the value of chrome::DIR_CRASH_DUMPS on Mac (, so I can now ask chrome ...
10 years, 4 months ago (2010-08-20 18:34:48 UTC) #3
Nirnimesh
Added some tests for pyauto_utils. Also, please ignore the comments in chrome/app/breakpad_mac.mm in the previous ...
10 years, 4 months ago (2010-08-20 18:44:04 UTC) #4
John Grabowski
LGTM http://codereview.chromium.org/3083028/diff/25001/26003 File chrome/test/functional/crash_reporter.py (right): http://codereview.chromium.org/3083028/diff/25001/26003#newcode29 chrome/test/functional/crash_reporter.py:29: logging.warn('Cannot figure crash dir. Bailing out.') make an ...
10 years, 4 months ago (2010-08-20 19:37:23 UTC) #5
Nirnimesh
10 years, 4 months ago (2010-08-20 19:51:00 UTC) #6
http://codereview.chromium.org/3083028/diff/25001/26003
File chrome/test/functional/crash_reporter.py (right):

http://codereview.chromium.org/3083028/diff/25001/26003#newcode29
chrome/test/functional/crash_reporter.py:29: logging.warn('Cannot figure crash
dir. Bailing out.')
On 2010/08/20 19:37:23, John Grabowski wrote:
> make an error?
> 

Done.

http://codereview.chromium.org/3083028/diff/25001/26003#newcode33
chrome/test/functional/crash_reporter.py:33: dmp_files =
glob.glob(os.path.join(breakpad_folder, '*.dmp'))
On 2010/08/20 19:37:23, John Grabowski wrote:
> Do we need to wait for anything here?
> Specifically, does NavigateToURL() wait adequately for the crash to finish
> dumping before returning?

Apparently it does wait.

Powered by Google App Engine
This is Rietveld 408576698