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

Issue 1405023016: Convert usage of ARRAY_SIZE to arraysize. (Closed)

Created:
5 years, 1 month ago by tfarina
Modified:
5 years, 1 month ago
CC:
webrtc-reviews_webrtc.org, yujie_mao (webrtc), Andrew MacDonald, tterriberry_mozilla.com, qiang.lu, niklas.enbom, peah-webrtc
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Convert usage of ARRAY_SIZE to arraysize. ARRAY_SIZE is the old version of arraysize and does not cover all the cases in C++, arraysize is a copy of Chromium's version and thus have wider coverage. BUG=None R=tommi@webrtc.org Committed: https://crrev.com/5237aaf243d29732f59557361b7a993c0a18cf0e Cr-Commit-Position: refs/heads/master@{#10594}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : talk/media/base #

Patch Set 4 : webrtc/sound #

Patch Set 5 : webrtc/p2p #

Patch Set 6 : webrtc/libjingle #

Patch Set 7 : webrtc/modules #

Patch Set 8 : webrtc/examples #

Patch Set 9 : REBASE #

Patch Set 10 : talk/session/media/ #

Patch Set 11 : talk/ #

Patch Set 12 : webrtc/base #

Patch Set 13 : fixes #

Patch Set 14 : fixes #

Patch Set 15 : fix win #

Patch Set 16 : remove always true assertion #

Total comments: 4

Patch Set 17 : static_cast<int> #

Unified diffs Side-by-side diffs Delta from patch set Stats (+237 lines, -186 lines) Patch
M talk/app/webrtc/jsepsessiondescription.cc View 2 chunks +2 lines, -1 line 0 comments Download
M talk/app/webrtc/peerconnection.cc View 3 chunks +4 lines, -3 lines 0 comments Download
M talk/app/webrtc/videosource.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -1 line 0 comments Download
M talk/app/webrtc/webrtcsdp.cc View 1 3 chunks +3 lines, -2 lines 0 comments Download
M talk/media/base/capturemanager_unittest.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M talk/media/base/streamparams_unittest.cc View 1 2 6 chunks +12 lines, -11 lines 0 comments Download
M talk/media/base/testutils.h View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M talk/media/base/testutils.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M talk/media/base/videocommon.cc View 1 2 3 chunks +3 lines, -2 lines 0 comments Download
M talk/media/base/videoframe.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M talk/media/devices/devicemanager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -4 lines 0 comments Download
M talk/media/devices/win32devicemanager.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -1 line 0 comments Download
M talk/media/sctp/sctpdataengine.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +3 lines, -2 lines 0 comments Download
M talk/media/webrtc/simulcast.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +4 lines, -2 lines 0 comments Download
M talk/media/webrtc/webrtcmediaengine.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -2 lines 0 comments Download
M talk/media/webrtc/webrtcvideocapturer.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +6 lines, -5 lines 0 comments Download
M talk/media/webrtc/webrtcvoiceengine.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +7 lines, -5 lines 0 comments Download
M talk/media/webrtc/webrtcvoiceengine_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 14 chunks +17 lines, -18 lines 0 comments Download
M talk/session/media/channel_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +10 lines, -13 lines 0 comments Download
M webrtc/base/bitbuffer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -2 lines 0 comments Download
M webrtc/base/bytebuffer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -1 line 0 comments Download
M webrtc/base/common.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -2 lines 0 comments Download
M webrtc/base/crc32.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -2 lines 0 comments Download
M webrtc/base/diskcache.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -1 line 0 comments Download
M webrtc/base/fileutils.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -2 lines 0 comments Download
M webrtc/base/httpcommon.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -1 line 0 comments Download
M webrtc/base/httpcommon-inl.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +4 lines, -3 lines 0 comments Download
M webrtc/base/natsocketfactory.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -1 line 0 comments Download
M webrtc/base/openssladapter.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -1 line 0 comments Download
M webrtc/base/physicalsocketserver.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +6 lines, -5 lines 0 comments Download
M webrtc/base/proxydetect.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -1 line 0 comments Download
M webrtc/base/socket_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +4 lines, -3 lines 0 comments Download
M webrtc/base/stringencode_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +3 lines, -2 lines 0 comments Download
M webrtc/base/task_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +3 lines, -2 lines 0 comments Download
M webrtc/base/testutils.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -1 line 0 comments Download
M webrtc/base/unixfilesystem.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +6 lines, -5 lines 0 comments Download
M webrtc/base/urlencode_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +7 lines, -6 lines 0 comments Download
M webrtc/base/virtualsocket_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -3 lines 0 comments Download
M webrtc/base/win32.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -1 line 0 comments Download
M webrtc/base/win32filesystem.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +15 lines, -14 lines 0 comments Download
M webrtc/base/win32regkey_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -2 lines 0 comments Download
M webrtc/base/win32windowpicker.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -1 line 0 comments Download
M webrtc/base/win32windowpicker_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -1 line 0 comments Download
M webrtc/examples/peerconnection/client/defaults.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M webrtc/examples/peerconnection/client/main_wnd.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M webrtc/libjingle/xmpp/chatroommoduleimpl.cc View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M webrtc/libjingle/xmpp/presenceouttask.cc View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M webrtc/modules/remote_bitrate_estimator/test/bwe_test.cc View 1 2 3 4 5 6 7 8 4 chunks +6 lines, -5 lines 0 comments Download
M webrtc/modules/remote_bitrate_estimator/test/bwe_unittest.cc View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M webrtc/modules/remote_bitrate_estimator/test/estimators/nada.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M webrtc/modules/remote_bitrate_estimator/test/estimators/nada_unittest.cc View 1 2 3 4 5 6 4 chunks +4 lines, -3 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/h264_sps_parser_unittest.cc View 1 2 3 4 5 6 6 chunks +6 lines, -5 lines 0 comments Download
M webrtc/p2p/base/port_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -1 line 0 comments Download
M webrtc/p2p/base/pseudotcp.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M webrtc/p2p/base/stun_unittest.cc View 1 2 3 4 2 chunks +6 lines, -5 lines 0 comments Download
M webrtc/p2p/base/transportdescription.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M webrtc/sound/alsasoundsystem.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +6 lines, -7 lines 0 comments Download
M webrtc/sound/automaticallychosensoundsystem_unittest.cc View 1 2 3 7 chunks +9 lines, -7 lines 0 comments Download
M webrtc/sound/linuxsoundsystem.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M webrtc/sound/pulseaudiosoundsystem.cc View 1 2 3 4 2 chunks +6 lines, -4 lines 0 comments Download

Messages

Total messages: 20 (9 generated)
tfarina
Hey Tomas! Could you please take a look at this. Let me know if I ...
5 years, 1 month ago (2015-11-06 13:32:14 UTC) #3
tommi (sloooow) - chröme
lgtm with the casts fixed. thanks for doing this! :) https://codereview.chromium.org/1405023016/diff/290001/talk/media/webrtc/webrtcvoiceengine.cc File talk/media/webrtc/webrtcvoiceengine.cc (right): https://codereview.chromium.org/1405023016/diff/290001/talk/media/webrtc/webrtcvoiceengine.cc#newcode471 ...
5 years, 1 month ago (2015-11-06 22:33:25 UTC) #5
tfarina
https://codereview.chromium.org/1405023016/diff/290001/talk/media/webrtc/webrtcvoiceengine.cc File talk/media/webrtc/webrtcvoiceengine.cc (right): https://codereview.chromium.org/1405023016/diff/290001/talk/media/webrtc/webrtcvoiceengine.cc#newcode471 talk/media/webrtc/webrtcvoiceengine.cc:471: (int)arraysize(kCodecPrefs) - (pref - kCodecPrefs)); On 2015/11/06 22:33:25, tommi ...
5 years, 1 month ago (2015-11-10 23:02:45 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1405023016/310001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1405023016/310001
5 years, 1 month ago (2015-11-10 23:03:19 UTC) #9
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even if an ...
5 years, 1 month ago (2015-11-10 23:03:25 UTC) #11
tommi
lgtm
5 years, 1 month ago (2015-11-10 23:09:12 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1405023016/310001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1405023016/310001
5 years, 1 month ago (2015-11-10 23:09:26 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_TIMED_OUT, no build URL)
5 years, 1 month ago (2015-11-11 01:09:37 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1405023016/310001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1405023016/310001
5 years, 1 month ago (2015-11-11 07:39:23 UTC) #18
commit-bot: I haz the power
Committed patchset #17 (id:310001)
5 years, 1 month ago (2015-11-11 07:44:35 UTC) #19
commit-bot: I haz the power
5 years, 1 month ago (2015-11-11 07:44:52 UTC) #20
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/5237aaf243d29732f59557361b7a993c0a18cf0e
Cr-Commit-Position: refs/heads/master@{#10594}

Powered by Google App Engine
This is Rietveld 408576698