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

Issue 2783853002: Reland of Don't hardcode MediaType::ANY in FakeNetworkPipe. (Closed)

Created:
3 years, 8 months ago by nisse-webrtc
Modified:
3 years, 8 months ago
CC:
webrtc-reviews_webrtc.org, video-team_agora.io, yujie_mao (webrtc), zhengzhonghou_agora.io, stefan-webrtc, tlegrand-webrtc, tterriberry_mozilla.com, mflodman
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Reland of Don't hardcode MediaType::ANY in FakeNetworkPipe. (patchset #1 id:1 of https://codereview.webrtc.org/2784543002/ ) Reason for revert: Intend to fix perf failures and reland. Original issue's description: > Revert of Don't hardcode MediaType::ANY in FakeNetworkPipe. (patchset #4 id:60001 of https://codereview.webrtc.org/2774463003/ ) > > Reason for revert: > Reverting since this seems to break multiple WebRTC Perf buildbots > > Original issue's description: > > Don't hardcode MediaType::ANY in FakeNetworkPipe. > > > > Instead let each test set the appropriate media type. This simplifies > > demuxing in Call and later in RtpTransportController. > > > > BUG=webrtc:7135 > > > > Review-Url: https://codereview.webrtc.org/2774463003 > > Cr-Commit-Position: refs/heads/master@{#17418} > > Committed: https://chromium.googlesource.com/external/webrtc/+/9c47b00e24da2941eb095df5a4459c6d98a8a88d > > TBR=stefan@webrtc.org,deadbeef@webrtc.org,solenberg@webrtc.org,pbos@webrtc.org,sprang@webrtc.org,nisse@webrtc.org > # Skipping CQ checks because original CL landed less than 1 days ago. > NOPRESUBMIT=true > NOTREECHECKS=true > NOTRY=true > BUG=webrtc:7135 > > Review-Url: https://codereview.webrtc.org/2784543002 > Cr-Commit-Position: refs/heads/master@{#17427} > Committed: https://chromium.googlesource.com/external/webrtc/+/3a3bd5061089da5327fc549337a8430054d66057 TBR=stefan@webrtc.org,deadbeef@webrtc.org,solenberg@webrtc.org,pbos@webrtc.org,sprang@webrtc.org,lliuu@webrtc.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=webrtc:7135 Review-Url: https://codereview.webrtc.org/2783853002 Cr-Commit-Position: refs/heads/master@{#17459} Committed: https://chromium.googlesource.com/external/webrtc/+/e5ad5ca06ab3bfaaecd6dcfa01d136c4e5d8e9b2

Patch Set 1 #

Patch Set 2 : Rebase. #

Patch Set 3 : Configure proper media type in RampUp tests. Add crude payload type demuxer to CallTest. #

Total comments: 10

Patch Set 4 : Fix braces. Add comment on use of demuxer. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+208 lines, -81 lines) Patch
M webrtc/audio/test/low_bandwidth_audio_test.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M webrtc/call/bitrate_estimator_tests.cc View 1 1 chunk +4 lines, -2 lines 0 comments Download
M webrtc/call/call.cc View 1 2 5 chunks +6 lines, -7 lines 0 comments Download
M webrtc/call/call_perf_tests.cc View 1 4 chunks +7 lines, -2 lines 0 comments Download
M webrtc/call/rampup_tests.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/call/rampup_tests.cc View 1 2 1 chunk +21 lines, -0 lines 0 comments Download
M webrtc/media/engine/fakewebrtccall.cc View 1 1 chunk +5 lines, -4 lines 0 comments Download
M webrtc/test/call_test.h View 1 2 3 chunks +21 lines, -0 lines 0 comments Download
M webrtc/test/call_test.cc View 1 2 3 3 chunks +39 lines, -2 lines 0 comments Download
M webrtc/test/direct_transport.h View 1 2 chunks +12 lines, -3 lines 1 comment Download
M webrtc/test/direct_transport.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M webrtc/test/fake_network_pipe.h View 1 3 chunks +5 lines, -2 lines 2 comments Download
M webrtc/test/fake_network_pipe.cc View 1 2 chunks +6 lines, -3 lines 0 comments Download
M webrtc/test/fake_network_pipe_unittest.cc View 1 15 chunks +26 lines, -26 lines 0 comments Download
M webrtc/test/layer_filtering_transport.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M webrtc/test/rtp_rtcp_observer.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/video/end_to_end_tests.cc View 1 14 chunks +34 lines, -17 lines 0 comments Download
M webrtc/video/replay.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/video/video_quality_test.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/video/video_send_stream_tests.cc View 1 3 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
nisse-webrtc
Created Reland of Don't hardcode MediaType::ANY in FakeNetworkPipe.
3 years, 8 months ago (2017-03-29 08:25:24 UTC) #1
nisse-webrtc
Perf tests now work locally (except for a few h.264 tests which for some reason ...
3 years, 8 months ago (2017-03-29 12:12:54 UTC) #2
sprang_webrtc
lgtm https://codereview.webrtc.org/2783853002/diff/300001/webrtc/test/call_test.cc File webrtc/test/call_test.cc (right): https://codereview.webrtc.org/2783853002/diff/300001/webrtc/test/call_test.cc#newcode46 webrtc/test/call_test.cc:46: media_type = MediaType::AUDIO; nit: {} for if/else
3 years, 8 months ago (2017-03-29 12:24:30 UTC) #3
stefan-webrtc
https://codereview.webrtc.org/2783853002/diff/300001/webrtc/test/call_test.cc File webrtc/test/call_test.cc (right): https://codereview.webrtc.org/2783853002/diff/300001/webrtc/test/call_test.cc#newcode105 webrtc/test/call_test.cc:105: } else { Is there a reason why we ...
3 years, 8 months ago (2017-03-29 12:27:25 UTC) #4
nisse-webrtc
https://codereview.webrtc.org/2783853002/diff/300001/webrtc/test/call_test.cc File webrtc/test/call_test.cc (right): https://codereview.webrtc.org/2783853002/diff/300001/webrtc/test/call_test.cc#newcode46 webrtc/test/call_test.cc:46: media_type = MediaType::AUDIO; On 2017/03/29 12:24:30, språng wrote: > ...
3 years, 8 months ago (2017-03-29 12:37:55 UTC) #5
stefan-webrtc
lgtm https://codereview.webrtc.org/2783853002/diff/300001/webrtc/test/call_test.cc File webrtc/test/call_test.cc (right): https://codereview.webrtc.org/2783853002/diff/300001/webrtc/test/call_test.cc#newcode105 webrtc/test/call_test.cc:105: } else { On 2017/03/29 12:37:55, nisse-webrtc wrote: ...
3 years, 8 months ago (2017-03-30 06:47:11 UTC) #6
nisse-webrtc
https://codereview.webrtc.org/2783853002/diff/300001/webrtc/test/call_test.cc File webrtc/test/call_test.cc (right): https://codereview.webrtc.org/2783853002/diff/300001/webrtc/test/call_test.cc#newcode105 webrtc/test/call_test.cc:105: } else { On 2017/03/30 06:47:11, stefan-webrtc wrote: > ...
3 years, 8 months ago (2017-03-30 06:56:45 UTC) #7
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/2783853002/320001
3 years, 8 months ago (2017-03-30 06:57:37 UTC) #10
commit-bot: I haz the power
Committed patchset #4 (id:320001) as https://chromium.googlesource.com/external/webrtc/+/e5ad5ca06ab3bfaaecd6dcfa01d136c4e5d8e9b2
3 years, 8 months ago (2017-03-30 06:57:48 UTC) #13
perkj_webrtc
https://codereview.webrtc.org/2783853002/diff/320001/webrtc/test/direct_transport.h File webrtc/test/direct_transport.h (right): https://codereview.webrtc.org/2783853002/diff/320001/webrtc/test/direct_transport.h#newcode33 webrtc/test/direct_transport.h:33: DirectTransport(Call* send_call, MediaType media_type); How would you write a ...
3 years, 8 months ago (2017-03-30 09:13:25 UTC) #15
nisse-webrtc
3 years, 8 months ago (2017-03-30 09:22:35 UTC) #16
Message was sent while issue was closed.
https://codereview.webrtc.org/2783853002/diff/320001/webrtc/test/fake_network...
File webrtc/test/fake_network_pipe.h (right):

https://codereview.webrtc.org/2783853002/diff/320001/webrtc/test/fake_network...
webrtc/test/fake_network_pipe.h:87: MediaType media_type);
On 2017/03/30 09:13:24, perkj_webrtc wrote:
> This will not work for tests that mux audio and video on the same transport.
The
> fake network pipe then needs to know per packet what type it is. 

For webrtc tests, I fixed that case by adding a payload-type demuxer, see this
cl's changes to call_test.cc.

Letting the network pipe keep track of media type per packet would make sense to
me, but I haven't looked into how to make that work. We'd then need media type
config at all places where packets are inserted into the pipe.

Powered by Google App Engine
This is Rietveld 408576698