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

Issue 2988153003: Replace CHECK(x && y) with two separate CHECK() calls (Closed)

Created:
3 years, 4 months ago by kwiberg-webrtc
Modified:
3 years, 4 months ago
Reviewers:
mflodman
CC:
webrtc-reviews_webrtc.org, video-team_agora.io, danilchap, AleBzk, peah-webrtc, zhuangzesen_agora.io, henrika_webrtc, aleloi, Andrew MacDonald, stefan-webrtc, tlegrand-webrtc, tterriberry_mozilla.com, audio-team_agora.io, hlundin-webrtc, sdk-team_agora.io, kwiberg-webrtc, minyue-webrtc, the sun, zhengzhonghou_agora.io, aluebs-webrtc, bjornv1, jennieyick
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Replace CHECK(x && y) with two separate CHECK() calls That way, the debug printout will tell us which of x and y that was false. BUG=none Review-Url: https://codereview.webrtc.org/2988153003 Cr-Commit-Position: refs/heads/master@{#19297} Committed: https://chromium.googlesource.com/external/webrtc/+/ee89e7870c332c943fb78faebc63e47d0a314d74

Patch Set 1 #

Patch Set 2 : fix link failure #

Total comments: 4

Patch Set 3 : rebase #

Patch Set 4 : fix mistakes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -51 lines) Patch
M webrtc/logging/rtc_event_log/rtc_event_log2stats.cc View 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/logging/rtc_event_log/rtc_event_log_parser.cc View 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/modules/audio_coding/codecs/cng/webrtc_cng.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.cc View 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/modules/audio_device/dummy/file_audio_device_factory.h View 1 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_device/dummy/file_audio_device_factory.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_processing/transient/moving_moments.cc View 1 chunk +4 lines, -1 line 0 comments Download
M webrtc/modules/desktop_capture/desktop_capturer_differ_wrapper.cc View 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/modules/desktop_capture/desktop_frame_generator.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/modules/desktop_capture/win/dxgi_adapter_duplicator.cc View 2 chunks +9 lines, -6 lines 0 comments Download
M webrtc/modules/desktop_capture/win/dxgi_output_duplicator.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M webrtc/modules/desktop_capture/win/dxgi_texture.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/modules/desktop_capture/win/dxgi_texture_mapping.cc View 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/modules/desktop_capture/win/dxgi_texture_staging.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_sender.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M webrtc/modules/video_coding/frame_object.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/p2p/base/p2ptransportchannel_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/p2p/client/basicportallocator.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/pc/datachannel.cc View 2 chunks +7 lines, -4 lines 0 comments Download
M webrtc/pc/remoteaudiosource.cc View 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/pc/rtpreceiver.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/pc/rtpsender.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M webrtc/pc/test/fakedatachannelprovider.h View 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/pc/test/fakertccertificategenerator.h View 1 chunk +4 lines, -4 lines 0 comments Download
M webrtc/rtc_base/macutils.cc View 1 chunk +3 lines, -1 line 0 comments Download
M webrtc/rtc_base/opensslstreamadapter.cc View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M webrtc/rtc_base/proxyserver.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M webrtc/rtc_base/socketaddress.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/voice_engine/channel.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 20 (13 generated)
kwiberg-webrtc
I was recently bit by this, and it wasn't too much work to simply fix ...
3 years, 4 months ago (2017-07-31 14:47:10 UTC) #4
kwiberg-webrtc
Magnus, do you have time to review this, or should I find someone else? (There ...
3 years, 4 months ago (2017-08-09 12:47:29 UTC) #11
mflodman
On 2017/08/09 12:47:29, kwiberg-webrtc wrote: > Magnus, do you have time to review this, or ...
3 years, 4 months ago (2017-08-09 12:51:46 UTC) #12
mflodman
Two RTC_DCHECK_GE that should be RTC_DCHECK_GT, LGTM with that changed. https://codereview.webrtc.org/2988153003/diff/20001/webrtc/modules/desktop_capture/win/dxgi_texture_staging.cc File webrtc/modules/desktop_capture/win/dxgi_texture_staging.cc (right): https://codereview.webrtc.org/2988153003/diff/20001/webrtc/modules/desktop_capture/win/dxgi_texture_staging.cc#newcode90 ...
3 years, 4 months ago (2017-08-09 15:27:07 UTC) #13
kwiberg-webrtc
Thanks a bunch for the careful read-through! https://codereview.webrtc.org/2988153003/diff/20001/webrtc/modules/desktop_capture/win/dxgi_texture_staging.cc File webrtc/modules/desktop_capture/win/dxgi_texture_staging.cc (right): https://codereview.webrtc.org/2988153003/diff/20001/webrtc/modules/desktop_capture/win/dxgi_texture_staging.cc#newcode90 webrtc/modules/desktop_capture/win/dxgi_texture_staging.cc:90: RTC_DCHECK_GE(frame_info.AccumulatedFrames, 0); ...
3 years, 4 months ago (2017-08-09 22:06:07 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.webrtc.org/2988153003/60001
3 years, 4 months ago (2017-08-09 22:06:21 UTC) #17
commit-bot: I haz the power
3 years, 4 months ago (2017-08-10 00:22:10 UTC) #20
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/external/webrtc/+/ee89e7870c332c943fb78faeb...

Powered by Google App Engine
This is Rietveld 408576698