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

Issue 2217803003: Add {ASSERT,EXPECT}_DCHECK macros for tests (Closed)

Created:
4 years, 4 months ago by johnme
Modified:
4 years, 4 months ago
CC:
cbentzel+watch_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@iid8hookupcrypto_empty
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add {ASSERT,EXPECT}_DCHECK macros for tests The existing {ASSERT,EXPECT}_DFATAL macros were not suitable for DCHECKs since for release builds where DCHECK_IS_ON(), the DCHECK still runs at LOG_DCHECK severity which is FATAL, whereas the *_DFATAL macros are expecting LOG_DFATAL severity which is only ERROR in release builds. BUG=none Committed: https://crrev.com/4501a135f39f0acb7f3864f188bae59f62fd64d5 Cr-Commit-Position: refs/heads/master@{#410330}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Switch to do { ... } while (false) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -29 lines) Patch
M net/test/gtest_util.h View 1 3 chunks +50 lines, -29 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
johnme
4 years, 4 months ago (2016-08-05 13:27:54 UTC) #2
johnme
I've factored this patch out from https://codereview.chromium.org/2111973002/, which will introduce the first usage of the ...
4 years, 4 months ago (2016-08-05 13:28:48 UTC) #3
johnme
On 2016/08/05 13:28:48, johnme wrote: > I've factored this patch out from https://codereview.chromium.org/2111973002/, > which ...
4 years, 4 months ago (2016-08-05 13:30:13 UTC) #4
Paweł Hajdan Jr.
https://codereview.chromium.org/2217803003/diff/1/net/test/gtest_util.h File net/test/gtest_util.h (right): https://codereview.chromium.org/2217803003/diff/1/net/test/gtest_util.h#newcode133 net/test/gtest_util.h:133: if (true) { \ Could you explain more this ...
4 years, 4 months ago (2016-08-05 14:35:07 UTC) #5
johnme
+rch FYI, as I'm refactoring your macros and you may know of reasons why they ...
4 years, 4 months ago (2016-08-05 16:57:37 UTC) #7
Paweł Hajdan Jr.
LGTM
4 years, 4 months ago (2016-08-08 09:02:28 UTC) #8
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/2217803003/20001
4 years, 4 months ago (2016-08-08 10:56:08 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-08 11:45:36 UTC) #11
commit-bot: I haz the power
4 years, 4 months ago (2016-08-08 11:47:41 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/4501a135f39f0acb7f3864f188bae59f62fd64d5
Cr-Commit-Position: refs/heads/master@{#410330}

Powered by Google App Engine
This is Rietveld 408576698