Commit Graph

9450 Commits

Author SHA1 Message Date
7d2542623a Delete unneeded includes of base/common.h.
Bulk of the changes were done using

   git grep -l '#include "webrtc/base/common.h"' | \
     xargs sed -i '\,^#include.*webrtc/base/common\.h,d'

followed by adding back the include in the few places where it is
still needed, and in one case (pseudotcp.cc) instead deleting its use
of RTC_UNUSED.

BUG=webrtc:6424

Review-Url: https://codereview.webrtc.org/2644103002
Cr-Commit-Position: refs/heads/master@{#16263}
2017-01-25 09:47:24 +00:00
b63a8ac5da Moving gn_isolate_map.pyl to tools-webrtc/mb
BUG=webrtc:7030
R=kjellander@webrtc.org

Review-Url: https://codereview.webrtc.org/2648353004 .
Cr-Commit-Position: refs/heads/master@{#16262}
2017-01-25 08:36:50 +00:00
630f46a31e Moving adb_shell script to tools-webrtc
BUG=webrtc:7030

Review-Url: https://codereview.webrtc.org/2650653005
Cr-Commit-Position: refs/heads/master@{#16260}
2017-01-25 07:49:13 +00:00
18e83ea598 Moving sanitizers from build/ to base/
We have to move the content of the 'webrtc/build/' directory up of one level (see crbug.com/611808 for further details).

To avoid a collision with the DEPSed build/ at the top level we are moving all the content of 'webrtc/build/' to different locations (see webrtc:7030 for the suggested locations).

BUG=webrtc:7030
NOTRY=True

Review-Url: https://codereview.webrtc.org/2651913002
Cr-Commit-Position: refs/heads/master@{#16259}
2017-01-25 07:04:51 +00:00
f534659ee6 Adding ability for BaseChannel to use PacketTransportInterface.
... As opposed to DtlsTransportInternal.

The code is suboptimal right now, storing two pointers to the different
interfaces. This will all be cleaned up when we have an "RtpTransport"
abstraction that BaseChannel can use.

This CL also cleans up the "fake transport" classes a bit, and gives
them their own header files.

BUG=None

Review-Url: https://codereview.webrtc.org/2648233003
Cr-Commit-Position: refs/heads/master@{#16258}
2017-01-25 05:51:21 +00:00
eaae505d02 Removing unused variable OUTPUT_LIB
BUG=None
NOTRY=True

Review-Url: https://codereview.webrtc.org/2652553004
Cr-Commit-Position: refs/heads/master@{#16255}
2017-01-25 00:07:59 +00:00
ed111dad4d Adding deadbeef@webrtc.org to webrtc/base/OWNERS.
Also removing jiayl@webrtc.org, who's no longer working on webrtc.

BUG=None

Review-Url: https://codereview.webrtc.org/2652763005
Cr-Commit-Position: refs/heads/master@{#16253}
2017-01-24 22:17:09 +00:00
e9f36d55da Make sure min and max bitrate is always set for audio.
BUG=webrtc:5079

Review-Url: https://codereview.webrtc.org/2654503005
Cr-Commit-Position: refs/heads/master@{#16250}
2017-01-24 16:18:45 +00:00
e256bc582a Delete left-over using declaration.
BUG=webrtc:6796

Review-Url: https://codereview.webrtc.org/2638763002
Cr-Commit-Position: refs/heads/master@{#16249}
2017-01-24 15:43:16 +00:00
a388310af2 Added api/webrtcsdp.h forwarding header to work around upstream projects.
NOTRY=true  # Small change, in a hurry and msan is being slow
TBR=tommi@webrtc.org
BUG=webrtc:5883

Review-Url: https://codereview.webrtc.org/2653703004
Cr-Commit-Position: refs/heads/master@{#16248}
2017-01-24 15:13:59 +00:00
9aa3f0a200 Reland of Moving webrtc.gni up one level from build/ (patchset #1 id:1 of https://codereview.webrtc.org/2657563002/ )
Reason for revert:
Starting to work on a fix (it seems that there are third_party dependencies that depends on the path to the webrtc.gni file)

Original issue's description:
> Revert of Moving webrtc.gni up one level from build/ (patchset #1 id:1 of https://codereview.webrtc.org/2651543003/ )
>
> Reason for revert:
> This was causing the following failure: https://build.chromium.org/p/chromium.webrtc.fyi/builders/Android%20Builder/builds/838/steps/generate_build_files/logs/stdio
>
> Original issue's description:
> > Moving webrtc.gni up one level from build/
> >
> > BUG=webrtc:7030
> >
> > Review-Url: https://codereview.webrtc.org/2651543003
> > Cr-Commit-Position: refs/heads/master@{#16241}
> > Committed: 35a32700fc
>
> TBR=kjellander@webrtc.org
> # Skipping CQ checks because original CL landed less than 1 days ago.
> NOPRESUBMIT=true
> NOTREECHECKS=true
> NOTRY=true
> BUG=webrtc:7030
>
> Review-Url: https://codereview.webrtc.org/2657563002
> Cr-Commit-Position: refs/heads/master@{#16244}
> Committed: 69dc7dbe24

TBR=kjellander@webrtc.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=webrtc:7030

Review-Url: https://codereview.webrtc.org/2654773002
Cr-Commit-Position: refs/heads/master@{#16247}
2017-01-24 14:58:22 +00:00
b54c63ffb0 Moving no_op_function.cc out of webrtc/build
BUG=webrtc:7030

Review-Url: https://codereview.webrtc.org/2645223003
Cr-Commit-Position: refs/heads/master@{#16246}
2017-01-24 13:25:12 +00:00
dabbea670c Moving whitespace file up by one folder
BUG=webrtc:7030
NOTRY=True

Review-Url: https://codereview.webrtc.org/2650593004
Cr-Commit-Position: refs/heads/master@{#16245}
2017-01-24 13:19:42 +00:00
69dc7dbe24 Revert of Moving webrtc.gni up one level from build/ (patchset #1 id:1 of https://codereview.webrtc.org/2651543003/ )
Reason for revert:
This was causing the following failure: https://build.chromium.org/p/chromium.webrtc.fyi/builders/Android%20Builder/builds/838/steps/generate_build_files/logs/stdio

Original issue's description:
> Moving webrtc.gni up one level from build/
>
> BUG=webrtc:7030
>
> Review-Url: https://codereview.webrtc.org/2651543003
> Cr-Commit-Position: refs/heads/master@{#16241}
> Committed: 35a32700fc

TBR=kjellander@webrtc.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=webrtc:7030

Review-Url: https://codereview.webrtc.org/2657563002
Cr-Commit-Position: refs/heads/master@{#16244}
2017-01-24 13:14:35 +00:00
4b7c952376 Reland of "Log audio network adapter decisions in event log."
This was originally reviewed https://codereview.webrtc.org/2559953002/

It was reverted due to a bug in the original CL, see https://codereview.webrtc.org/2631703002/

This CL is to fix and reland.

BUG=webrtc:6845

Review-Url: https://codereview.webrtc.org/2644863002
Cr-Commit-Position: refs/heads/master@{#16242}
2017-01-24 12:54:59 +00:00
35a32700fc Moving webrtc.gni up one level from build/
BUG=webrtc:7030

Review-Url: https://codereview.webrtc.org/2651543003
Cr-Commit-Position: refs/heads/master@{#16241}
2017-01-24 12:49:35 +00:00
62d02c328d Unit test out of band H264 SPS,PPS within RtpStreamReceiver.
This CL introduces a dedicated unit test for webrtc::RtpStreamReceiver.
Focus of this CL is testing RtpStreamReciver::OnReceivedPayloadData().
Dependencies with virtual interfaces are (g)mocked, non-virtual
dependencies are instantiated.

This CL is chained to https://codereview.webrtc.org/2638933002/ .

BUG=webrtc:5948

Review-Url: https://codereview.webrtc.org/2641463002
Cr-Commit-Position: refs/heads/master@{#16240}
2017-01-24 12:38:27 +00:00
822d2586fb Move webrtc/build/android -> tools-webrtc/android
BUG=webrtc:7030

Review-Url: https://codereview.webrtc.org/2649883004
Cr-Commit-Position: refs/heads/master@{#16239}
2017-01-24 12:22:11 +00:00
81eab61172 Count FlexFEC packets in |fec_bitrate_| in RTPSenderVideo.
BUG=webrtc:5654

Review-Url: https://codereview.webrtc.org/2649913002
Cr-Commit-Position: refs/heads/master@{#16238}
2017-01-24 12:06:09 +00:00
365aebdade Make CongestionController::remote_bitrate_estimator_ a non-pointer.
It was only assigned at construction, and this improves consistency
with remote_estimator_proxy_.

The declaration of the private WrappingBitrateEstimator had to be
moved to the header file, and it was also converted from
system_wrappers' CriticalSectionWrapper to rtc::CriticalSection.

BUG=webrtc:6847

Review-Url: https://codereview.webrtc.org/2642363003
Cr-Commit-Position: refs/heads/master@{#16236}
2017-01-24 10:53:38 +00:00
d2b092f38a Reland of H264SpsPpsTracker.InsertSpsPpsNalus() should accept Nalus with header.
Fixed memory leak in test case.

Original issue's description
> Revert of H264SpsPpsTracker.InsertSpsPpsNalus() should accept Nalus with header. (patchset #3 id:40001 of https://codereview.webrtc.org/2638933002/ )
>
> Reason for revert:
> Triggers leak on Linux memcheck (non-default trybot):
>
> Original issue's description:
> > H264SpsPpsTracker.InsertSpsPpsNalus() should accept Nalus with header.
> >
> > - Changed method name to clarify that entire Nalus are expected.
> > - Added unit test code.
> > - Adjusted InsetSpsPpsNalus() implementation to above requirement.
> >
> > BUG=webrtc:5948
> >
> > Review-Url: https://codereview.webrtc.org/2638933002
> > Cr-Commit-Position: refs/heads/master@{#16221}
> > Committed: f53d7374cf
>
> TBR=philipel@webrtc.org,sprang@webrtc.org,johan@webrtc.org
> # Skipping CQ checks because original CL landed less than 1 days ago.
> NOPRESUBMIT=true
> NOTREECHECKS=true
> NOTRY=true
> BUG=webrtc:5948
> Review-Url: https://codereview.webrtc.org/2649113003
> Cr-Commit-Position: refs/heads/master@{#16225}
> Committed: 914d49d0fd
>

BUG=webrtc:5948

Review-Url: https://codereview.webrtc.org/2651593004
Cr-Commit-Position: refs/heads/master@{#16235}
2017-01-24 10:38:17 +00:00
15389c034d Drop pacer and retransmission_rate_limiter from RtpStreamReceiver constructor.
They were passed on via RtpRtcp::Configuration, but unused for a
receive only RtpRtcp module.

BUG=webrtc:6847

Review-Url: https://codereview.webrtc.org/2639423007
Cr-Commit-Position: refs/heads/master@{#16234}
2017-01-24 10:36:58 +00:00
568c9e72d1 New simulators to test BWE at low bitrates (15-50kbps range).
I've tested both the old and the new delay estimators and they all work ok at 15 kbps. The new estimators are a bit slower to adapt down so the maximum delay is a bit higher, especially at lower bitrates.

None of the estimators work at 10 kbps, but that is likely because the bitrate controller is configured to never go below 10 kbps. This means that it's impossible to empty the queues after a capacity drop to 10kbps (regardless of what the estimators do), so the delay stays high until the capacity increases.

BUG=webrtc:7022

Review-Url: https://codereview.webrtc.org/2644463009
Cr-Commit-Position: refs/heads/master@{#16233}
2017-01-24 10:03:31 +00:00
a4a753857e Android: Script for building libwebrtc.aar.
BUG=webrtc:7023

Review-Url: https://codereview.webrtc.org/2653533004
Cr-Commit-Position: refs/heads/master@{#16232}
2017-01-24 09:25:50 +00:00
e04064deb2 Revert of Delete unused class/template ScopedMessageData. (patchset #1 id:1 of https://codereview.webrtc.org/2652663002/ )
Reason for revert:
ScopedMessageData can't be removed just yet. It broke an internal project.

Original issue's description:
> Delete unused class/template ScopedMessageData.
>
> This appears unused since cl https://codereview.webrtc.org/2564333002
>
> BUG=webrtc:6424
>
> Review-Url: https://codereview.webrtc.org/2652663002
> Cr-Commit-Position: refs/heads/master@{#16229}
> Committed: d83fb921a8

TBR=pthatcher@webrtc.org,deadbeef@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:6424

Review-Url: https://codereview.webrtc.org/2654753003
Cr-Commit-Position: refs/heads/master@{#16231}
2017-01-24 09:20:39 +00:00
dc2b3f3b9f Delete unused class CompositeMediaEngineWithFakeVoiceEngine.
BUG=None

Review-Url: https://codereview.webrtc.org/2645333002
Cr-Commit-Position: refs/heads/master@{#16230}
2017-01-24 08:54:59 +00:00
d83fb921a8 Delete unused class/template ScopedMessageData.
This appears unused since cl https://codereview.webrtc.org/2564333002

BUG=webrtc:6424

Review-Url: https://codereview.webrtc.org/2652663002
Cr-Commit-Position: refs/heads/master@{#16229}
2017-01-24 08:36:38 +00:00
c23b0b26df Delete unused classes DesktopId and ScreencastEventCatcher.
BUG=webrtc:6424

Review-Url: https://codereview.webrtc.org/2650703002
Cr-Commit-Position: refs/heads/master@{#16228}
2017-01-24 08:03:32 +00:00
ad452287b0 Moving get_landmines.py (build/ -> tools-webrtc/)
BUG=webrtc:7030
NOTRY=True

Review-Url: https://codereview.webrtc.org/2656553002
Cr-Commit-Position: refs/heads/master@{#16227}
2017-01-24 08:01:49 +00:00
914d49d0fd Revert of H264SpsPpsTracker.InsertSpsPpsNalus() should accept Nalus with header. (patchset #3 id:40001 of https://codereview.webrtc.org/2638933002/ )
Reason for revert:
Triggers leak on Linux memcheck (non-default trybot):

### BEGIN MEMORY TOOL REPORT (error hash=#0112A395AF2326BC#)
Command: ../Release/./modules_unittests --isolated-script-test-output=/b/s/w/ioUlJCnu/output.json --isolated-script-test-chartjson-output=/b/s/w/ioUlJCnu/chartjson-output.json --gtest_filter=-CommonFormats/AudioProcessingTest*
Leak_DefinitelyLost
45 bytes in 1 blocks are definitely lost in loss record 118 of 277
  operator new[](unsigned long) (m_replacemalloc/vg_replace_malloc.c:363)
  webrtc::video_coding::H264SpsPpsTracker::CopyAndFixBitstream(webrtc::VCMPacket*) (/b/s/w/irJgAGsR/out/Release/modules_unittests)
  webrtc::video_coding::TestH264SpsPpsTracker_SpsPpsOutOfBand_Test::TestBody() (/b/s/w/irJgAGsR/out/Release/modules_unittests)
Suppression (error hash=#0112A395AF2326BC#):
  For more info on using suppressions see http://dev.chromium.org/developers/tree-sheriffs/sheriff-details-chromium/memory-sheriff#TOC-Suppressing-memory-reports
{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   fun:_Zna*
   fun:_ZN6webrtc12video_coding17H264SpsPpsTracker19CopyAndFixBitstreamEPNS_9VCMPacketE
   fun:_ZN6webrtc12video_coding42TestH264SpsPpsTracker_SpsPpsOutOfBand_Test8TestBodyEv
}
### END MEMORY TOOL REPORT (error hash=#0112A395AF2326BC#)

Original issue's description:
> H264SpsPpsTracker.InsertSpsPpsNalus() should accept Nalus with header.
>
> - Changed method name to clarify that entire Nalus are expected.
> - Added unit test code.
> - Adjusted InsetSpsPpsNalus() implementation to above requirement.
>
> BUG=webrtc:5948
>
> Review-Url: https://codereview.webrtc.org/2638933002
> Cr-Commit-Position: refs/heads/master@{#16221}
> Committed: f53d7374cf

TBR=philipel@webrtc.org,sprang@webrtc.org,johan@webrtc.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=webrtc:5948

Review-Url: https://codereview.webrtc.org/2649113003
Cr-Commit-Position: refs/heads/master@{#16225}
2017-01-24 04:16:58 +00:00
1b54a5f018 Relanding: Removing #defines previously used for building without BoringSSL/OpenSSL.
These defines don't work any more, so they only cause confusion:

FEATURE_ENABLE_SSL
HAVE_OPENSSL_SSL_H
SSL_USE_OPENSSL

BUG=webrtc:7025

Review-Url: https://codereview.webrtc.org/2640513002
Cr-Commit-Position: refs/heads/master@{#16224}
2017-01-24 03:39:57 +00:00
4c78702d12 iOS: Add MedianSlopeFilter field trial.
BUG=0

Review-Url: https://codereview.webrtc.org/2646443013
Cr-Commit-Position: refs/heads/master@{#16223}
2017-01-23 19:24:57 +00:00
5c4f24a141 Move implmentation specific constants out of rtp_header_extension.h
BUG=None

Review-Url: https://codereview.webrtc.org/2642783006
Cr-Commit-Position: refs/heads/master@{#16222}
2017-01-23 19:10:20 +00:00
f53d7374cf H264SpsPpsTracker.InsertSpsPpsNalus() should accept Nalus with header.
- Changed method name to clarify that entire Nalus are expected.
- Added unit test code.
- Adjusted InsetSpsPpsNalus() implementation to above requirement.

BUG=webrtc:5948

Review-Url: https://codereview.webrtc.org/2638933002
Cr-Commit-Position: refs/heads/master@{#16221}
2017-01-23 17:29:33 +00:00
e1405ad0d1 Removed double-special-casing of ISAC in libjingle and WebRtcVoE.
webrtcvoiceengine.cc ensured that if the bitrate set for ISAC was 0,
it was changed to -1 so that the codec could manage the bitrate
itself.

webrtcsdp.cc ensured that if the bitrate set for ISAC was 0, it was
explicitly set to default values to avoid the codec's built in bitrate
management.

Eventually, there'll be no codec specific code like this in these
layers. This is one step towards that goal.

BUG=webrtc:5806

Review-Url: https://codereview.webrtc.org/2642923003
Cr-Commit-Position: refs/heads/master@{#16220}
2017-01-23 16:55:48 +00:00
cb893ee634 Removing unused code from webrtc/build
First step in moving the content of webrtc/build up one level.

BUG=webrtc:7030

Review-Url: https://codereview.webrtc.org/2653593003
Cr-Commit-Position: refs/heads/master@{#16219}
2017-01-23 16:49:12 +00:00
1bed2e486e video_loopback: fall back to fake capturer if we can't open camera.
Test manually, since it's a manual test.

BUG=webrtc:7036

Review-Url: https://codereview.webrtc.org/2652713002
Cr-Commit-Position: refs/heads/master@{#16218}
2017-01-23 16:46:51 +00:00
435ddf978d Add TransportFeedbackPacketLossTracker.
This CL is to calculate packet loss metrics from TransportFeedback. The outcome of this will be passed down to audio encoder.

BUG=webrtc:6904

Review-Url: https://codereview.webrtc.org/2579613003
Cr-Commit-Position: refs/heads/master@{#16217}
2017-01-23 16:07:05 +00:00
ed582f7e36 Script to start stubbed loopback video test with Espresso
BUG=webrtc:7034

Review-Url: https://codereview.webrtc.org/2632323003
Cr-Commit-Position: refs/heads/master@{#16216}
2017-01-23 15:55:42 +00:00
0ebdf2757c Delete or update left-over ASSERT use and comments.
BUG=webrtc:6424,webrtc:6323

Review-Url: https://codereview.webrtc.org/2647663002
Cr-Commit-Position: refs/heads/master@{#16215}
2017-01-23 15:43:05 +00:00
da25006431 Fixed public_deps for libjingle_peerconnection{,_api}
https://codereview.webrtc.org/2514883002/ changed and moved these targets around but did not add public dependencies for the fallbacks, which causes gn gen --check a lot of anger.

NOTRY=true # Only build changes and windows bots are cranky atm.
BUG=webrtc:5806

Review-Url: https://codereview.webrtc.org/2651663002
Cr-Commit-Position: refs/heads/master@{#16214}
2017-01-23 15:37:43 +00:00
50cfe1fda7 RTCMediaStreamTrackStats.framesDropped collected by RTCStatsCollector.
Spec: https://w3c.github.io/webrtc-stats/#dom-rtcmediastreamtrackstats-framesdropped
Implemented as frames_received - frames_rendered.

Part of this CL is adding frames_rendered to VideoReceiveStream::Stats
and updating it at ReceiveStatisticsProxy::OnRenderedFrame.

BUG=webrtc:6757, chromium:659137, chromium:627816
NOTRY=True

Review-Url: https://codereview.webrtc.org/2607933002
Cr-Commit-Position: refs/heads/master@{#16213}
2017-01-23 15:21:55 +00:00
9c3d4c4d88 Stop leaking FlexfecReceiveStream objects after call shutdown.
BUG=webrtc:7017

Review-Url: https://codereview.webrtc.org/2645703003
Cr-Commit-Position: refs/heads/master@{#16212}
2017-01-23 14:59:13 +00:00
a067013e90 Minor style change suggested by internal static analysis tool.
BUG=None

Review-Url: https://codereview.webrtc.org/2645333003
Cr-Commit-Position: refs/heads/master@{#16211}
2017-01-23 14:09:35 +00:00
7bb87ee4e8 Create //webrtc/api:libjingle_peerconnection_api + refactorings.
Create a new target //webrtc/api:libjingle_peerconnection_api and start moving
things into it. Move remaining parts of //webrtc/api:libjingle_peerconnection
to //webrtc/pc:libjingle_peerconnection.

Moved the RTCStatsCollectorCallback into its own header file, so that
PeerConnectionInterface can include that instead of pulling in
RTCStatsCollector and PeerConnection and everything.

Separated cricket::MediaType into its own header/source set, so that it
can be used in the api.

BUG=webrtc:5883

Review-Url: https://codereview.webrtc.org/2514883002
Cr-Commit-Position: refs/heads/master@{#16210}
2017-01-23 12:56:25 +00:00
f49ff260d1 GN: Make audio_processing_unittests compile with rtc_enable_protobuf=false
BUG=webrtc:6626
NOTRY=True

Review-Url: https://codereview.webrtc.org/2647003002
Cr-Commit-Position: refs/heads/master@{#16209}
2017-01-23 12:26:02 +00:00
fd870db0b2 Add metric for decode time and max decode time in video quality tests.
BUG=chromium:672007

Review-Url: https://codereview.webrtc.org/2640263002
Cr-Commit-Position: refs/heads/master@{#16208}
2017-01-23 11:22:15 +00:00
011240333e Minor style change suggested by internal static analysis tool.
TBR=sakal@webrtc.org
BUG=None

Review-Url: https://codereview.webrtc.org/2646413002
Cr-Commit-Position: refs/heads/master@{#16207}
2017-01-23 11:10:39 +00:00
0b56279da1 Catch failure to load native dependencies.
BUG=webrtc:6751

Review-Url: https://codereview.webrtc.org/2652623002
Cr-Commit-Position: refs/heads/master@{#16205}
2017-01-23 11:02:56 +00:00
de8ca92755 New script to count usage of C++ classes.
This script is similar to header_usage.sh, but it counts usage (number
of files) of each class defined in some header file.

E.g., the following classes appear unused,

  AsyncHttpsProxyServerSocket
  CompositeMediaEngineWithFakeVoiceEngine
  DesktopId
  RtpDataCallback
  ScopedMessageData
  ScreencastEventCatcher

NOTRY=true
BUG=None

Review-Url: https://codereview.webrtc.org/2649103002
Cr-Commit-Position: refs/heads/master@{#16204}
2017-01-23 10:41:08 +00:00