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

Issue 2623473004: Replace all use of the VERIFY macro. (Closed)

Created:
3 years, 11 months ago by nisse-webrtc
Modified:
3 years, 10 months ago
Reviewers:
kwiberg-webrtc
CC:
webrtc-reviews_webrtc.org, the sun, tterriberry_mozilla.com
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Replace all use of the VERIFY macro. Replaced by assigning value to a local variable, followed by a DCHECK. Also deletes dead test code under the always false TEST_DIGEST define. BUG=webrtc:6424 Review-Url: https://codereview.webrtc.org/2623473004 Cr-Commit-Position: refs/heads/master@{#16476} Committed: https://chromium.googlesource.com/external/webrtc/+/c16fa5ea692e06992c30c8b9853356b90da74e2a

Patch Set 1 #

Patch Set 2 : Rebased. #

Patch Set 3 : Fix preprocessor conditionals in taskrunner.h. #

Patch Set 4 : Eliminate final use of ASSERT. #

Patch Set 5 : Rebased. #

Patch Set 6 : Eliminate use of VERIFY macro. #

Patch Set 7 : Replace some NDEBUG tests with RTC_DCHECK_IS_ON. #

Patch Set 8 : Rebased. #

Patch Set 9 : Rebased. #

Patch Set 10 : Rebase. #

Patch Set 11 : Rebased. #

Patch Set 12 : Add some includes of checks.h, to match master. #

Patch Set 13 : Rebase. #

Patch Set 14 : Tweaks after reviewing diff to master. #

Total comments: 30

Patch Set 15 : Address nits. #

Patch Set 16 : Additional cleanup. #

Patch Set 17 : Delete a DCHECK, instead log and return failure. And fix compile error in previous patch set. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -82 lines) Patch
M webrtc/base/asyncsocket.h View 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/base/diskcache.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -6 lines 0 comments Download
M webrtc/base/httpclient.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/base/httpcommon.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +0 lines, -46 lines 0 comments Download
M webrtc/base/httpserver.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/base/network_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M webrtc/base/openssladapter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/base/opensslstreamadapter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/base/physicalsocketserver.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +8 lines, -5 lines 0 comments Download
M webrtc/base/proxydetect.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/base/signalthread.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M webrtc/base/socketadapters.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/base/sslstreamadapter_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +6 lines, -2 lines 0 comments Download
M webrtc/base/win32window.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/examples/peerconnection/client/peer_connection_client.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +0 lines, -2 lines 0 comments Download
M webrtc/media/base/fakemediaengine.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M webrtc/media/engine/fakewebrtcvoiceengine.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M webrtc/media/engine/webrtcvoe.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +9 lines, -4 lines 0 comments Download
M webrtc/p2p/base/candidate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M webrtc/p2p/base/dtlstransportchannel.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/p2p/base/turnport.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +8 lines, -5 lines 0 comments Download
M webrtc/pc/mediasession.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/pc/webrtcsdp.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +3 lines, -1 line 1 comment Download

Messages

Total messages: 18 (6 generated)
nisse-webrtc
This monster patch replaces all use of ASSERT and VERIFY. I hope I got it ...
3 years, 11 months ago (2017-01-11 10:38:22 UTC) #3
kwiberg-webrtc
On 2017/01/11 10:38:22, nisse-webrtc wrote: > This monster patch replaces all use of ASSERT and ...
3 years, 11 months ago (2017-01-11 11:34:53 UTC) #4
nisse-webrtc
On 2017/01/11 11:34:53, kwiberg-webrtc wrote: > On 2017/01/11 10:38:22, nisse-webrtc wrote: > > This monster ...
3 years, 11 months ago (2017-01-11 12:14:00 UTC) #5
nisse-webrtc
Can you review the remaining changes, without splitting more parts out to separate cls? Title ...
3 years, 10 months ago (2017-02-06 14:07:17 UTC) #6
kwiberg-webrtc
https://codereview.webrtc.org/2623473004/diff/250001/webrtc/base/diskcache.cc File webrtc/base/diskcache.cc (right): https://codereview.webrtc.org/2623473004/diff/250001/webrtc/base/diskcache.cc#newcode33 webrtc/base/diskcache.cc:33: #endif #define TRANSPARENT_CACHE_NAMES RTC_DCHECK_IS_ON https://codereview.webrtc.org/2623473004/diff/250001/webrtc/base/network_unittest.cc File webrtc/base/network_unittest.cc (right): https://codereview.webrtc.org/2623473004/diff/250001/webrtc/base/network_unittest.cc#newcode107 ...
3 years, 10 months ago (2017-02-07 09:39:50 UTC) #7
nisse-webrtc
New better version. https://codereview.webrtc.org/2623473004/diff/250001/webrtc/base/diskcache.cc File webrtc/base/diskcache.cc (right): https://codereview.webrtc.org/2623473004/diff/250001/webrtc/base/diskcache.cc#newcode33 webrtc/base/diskcache.cc:33: #endif On 2017/02/07 09:39:49, kwiberg-webrtc wrote: ...
3 years, 10 months ago (2017-02-07 10:48:16 UTC) #9
kwiberg-webrtc
Much better. https://codereview.webrtc.org/2623473004/diff/250001/webrtc/base/win32window.cc File webrtc/base/win32window.cc (right): https://codereview.webrtc.org/2623473004/diff/250001/webrtc/base/win32window.cc#newcode68 webrtc/base/win32window.cc:68: RTC_DCHECK(res); On 2017/02/07 10:48:15, nisse-webrtc wrote: > ...
3 years, 10 months ago (2017-02-07 11:45:08 UTC) #10
kwiberg-webrtc
(By the way, do update the commit message too if you were going to. Ideally, ...
3 years, 10 months ago (2017-02-07 11:46:12 UTC) #11
nisse-webrtc
Resolved the dtls case by deleting the dcheck. And the title and description are updated ...
3 years, 10 months ago (2017-02-07 13:52:40 UTC) #12
kwiberg-webrtc
lgtm https://codereview.webrtc.org/2623473004/diff/310001/webrtc/pc/webrtcsdp.cc File webrtc/pc/webrtcsdp.cc (right): https://codereview.webrtc.org/2623473004/diff/310001/webrtc/pc/webrtcsdp.cc#newcode1381 webrtc/pc/webrtcsdp.cc:1381: RTC_DCHECK(success); :-)
3 years, 10 months ago (2017-02-07 14:08:05 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2623473004/310001
3 years, 10 months ago (2017-02-07 14:09:36 UTC) #15
commit-bot: I haz the power
3 years, 10 months ago (2017-02-07 15:18:47 UTC) #18
Message was sent while issue was closed.
Committed patchset #17 (id:310001) as
https://chromium.googlesource.com/external/webrtc/+/c16fa5ea692e06992c30c8b98...

Powered by Google App Engine
This is Rietveld 408576698