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

Issue 2630963002: Migrate tests to use EXPECT_DCHECK_DEATH instead of EXPECT_DEATH. (Closed)

Created:
3 years, 11 months ago by Wez
Modified:
3 years, 11 months ago
Reviewers:
jam
CC:
chromium-reviews, cbentzel+watch_chromium.org, qsr+mojo_chromium.org, vmpstr+watch_chromium.org, samuong+watch_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, asvitkine+watch_chromium.org, darin (slow to review)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Migrate tests to use EXPECT_DCHECK_DEATH instead of EXPECT_DEATH. EXPECT_DCHECK_DEATH() takes into account build configuration options such as DCHECK_ALWAYS_ON, removing the need for each test site to wrap EXPECT_DEATH() with preprocessor conditionals. This is a pre-requisite to enable the dump-on-DCHECK experiment. BUG=596231 Review-Url: https://codereview.chromium.org/2630963002 Cr-Commit-Position: refs/heads/master@{#444087} Committed: https://chromium.googlesource.com/chromium/src/+/976ae7de15986e38271f1dfaf9edc10838de9e0f

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -46 lines) Patch
M base/metrics/sample_vector_unittest.cc View 4 chunks +11 lines, -15 lines 0 comments Download
M base/task/cancelable_task_tracker_unittest.cc View 2 chunks +2 lines, -5 lines 0 comments Download
M chrome/browser/prefs/incognito_mode_prefs_unittest.cc View 2 chunks +3 lines, -12 lines 0 comments Download
M chrome/test/chromedriver/net/timeout_unittest.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M mojo/public/cpp/bindings/tests/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M mojo/public/cpp/bindings/tests/binding_callback_unittest.cc View 2 chunks +2 lines, -11 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 12 (8 generated)
Wez
PTAL: These changes were pulled out of the dump-on-DCHECK implementation patch (issue 2288473002). They're required ...
3 years, 11 months ago (2017-01-15 00:09:59 UTC) #4
jam
lgtm
3 years, 11 months ago (2017-01-17 16:45:26 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2630963002/1
3 years, 11 months ago (2017-01-17 16:58:52 UTC) #9
commit-bot: I haz the power
3 years, 11 months ago (2017-01-17 17:51:39 UTC) #12
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/976ae7de15986e38271f1dfaf9ed...

Powered by Google App Engine
This is Rietveld 408576698