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

Issue 2642173002: Migrate GCMKeyStore and InkDropImpl tests to use EXPECT_DCHECK_DEATH. (Closed)

Created:
3 years, 11 months ago by Wez
Modified:
3 years, 10 months ago
Reviewers:
johnme, Nicolas Zea, bruthig
CC:
chromium-reviews, zea+watch_chromium.org, tfarina, johnme+watch_chromium.org, dcheng, bruthig+ink_drop_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Migrate GCMKeyStore and InkDropImpl tests to use EXPECT_DCHECK_DEATH. Previously the GCMKeyStore tests used net/ EXPECT_DFATAL(), which avoids forking but is designed to expect LOG(DFATAL) in net/ code, rather than DCHECKs. The InkDropImplTest used ASSERT_DEATH_IF_SUPPORTED but ran conditional on DCHECK_IS_ON(), whereas EXPECT_DCHECK_DEATH() is implicitly executed only if DCHECK_IS_ON(). BUG=596231 Review-Url: https://codereview.chromium.org/2642173002 Cr-Commit-Position: refs/heads/master@{#448022} Committed: https://chromium.googlesource.com/chromium/src/+/a870361a9f6f66ebf3618418cd3759058c844dd1

Patch Set 1 #

Patch Set 2 : Remove static_assert()s #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -23 lines) Patch
M components/gcm_driver/crypto/gcm_key_store_unittest.cc View 1 6 chunks +5 lines, -17 lines 0 comments Download
M ui/views/animation/ink_drop_impl_unittest.cc View 2 chunks +3 lines, -6 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 25 (13 generated)
Wez
johnme: What was the reason for using EXPECT_DFATAL()? Is the issue that EXPECT_DEATH doesn't support ...
3 years, 11 months ago (2017-01-19 19:58:56 UTC) #4
bruthig
lgtm
3 years, 11 months ago (2017-01-19 20:04:49 UTC) #7
Wez
+zea: Nic, do you know the rationale for using EXPECT_DFATAL here? Was it basically that ...
3 years, 10 months ago (2017-01-27 20:25:19 UTC) #11
Peter Beverloo
On 2017/01/27 20:25:19, Wez wrote: > +zea: Nic, do you know the rationale for using ...
3 years, 10 months ago (2017-01-27 20:25:52 UTC) #12
johnme
lgtm, thanks! EXPECT_DCHECK_DEATH didn't yet exist when those GCMKeyStoreTest tests were written. You can't use ...
3 years, 10 months ago (2017-02-01 17:36:13 UTC) #13
Wez
On 2017/02/01 17:36:13, johnme wrote: > lgtm, thanks! EXPECT_DCHECK_DEATH didn't yet exist when those GCMKeyStoreTest ...
3 years, 10 months ago (2017-02-02 23:58:06 UTC) #14
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/2642173002/20001
3 years, 10 months ago (2017-02-02 23:59:08 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/355930)
3 years, 10 months ago (2017-02-03 00:04:40 UTC) #18
Wez
zea: Can haz OWNERS?
3 years, 10 months ago (2017-02-03 00:41:12 UTC) #19
Nicolas Zea
LGTM (sorry, assumed others were owners)
3 years, 10 months ago (2017-02-03 17:36:43 UTC) #20
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/2642173002/20001
3 years, 10 months ago (2017-02-03 17:39:59 UTC) #22
commit-bot: I haz the power
3 years, 10 months ago (2017-02-03 18:06:08 UTC) #25
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/a870361a9f6f66ebf3618418cd37...

Powered by Google App Engine
This is Rietveld 408576698