Commit Graph

15338 Commits

Author SHA1 Message Date
bb377517cd RTCMediaStreamTrackStats.ssrcIds removed.
As per recent spec change:
https://github.com/w3c/webrtc-stats/pull/129

BUG=chromium:659137, chromium:627816

Review-Url: https://codereview.webrtc.org/2628573002
Cr-Commit-Position: refs/heads/master@{#16006}
2017-01-11 12:47:23 +00:00
c999a08128 Revert of Android: Add field trial for Intel HW Vp8 encoder (patchset #1 id:1 of https://codereview.webrtc.org/2614373004/ )
Reason for revert:
Breaks external test code.

Original issue's description:
> Android: Add field trial for Intel HW Vp8 encoder
>
> Also enable Intel HW Vp8 encoder by default in AppRTCMobile.
>
> BUG=webrtc:6683
>
> Review-Url: https://codereview.webrtc.org/2614373004
> Cr-Commit-Position: refs/heads/master@{#16002}
> Committed: cecf86e9b0

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

Review-Url: https://codereview.webrtc.org/2624143002
Cr-Commit-Position: refs/heads/master@{#16005}
2017-01-11 11:02:13 +00:00
482284d533 Roll chromium_revision 0c11ed986f..cf29e966c7 (442829:442833)
Change log: 0c11ed986f..cf29e966c7
Full diff: 0c11ed986f..cf29e966c7

Changed dependencies:
* src/build: 91344e61c7..c44568cdb8
* src/testing: 0415945e2b..48ea2af1e5
* src/third_party: 577aaaf3ad..4cf168c4c4
DEPS diff: 0c11ed986f..cf29e966c7/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2622203002
Cr-Commit-Position: refs/heads/master@{#16004}
2017-01-11 11:01:29 +00:00
ea142f8de3 Don't detect a new frame if a previous packet is used in a previous frame.
In this CL:
 - Removed unused variable |last_seq_num_|.
 - Fixed bug where a new incomplete frame was detected as a complete frame.
 - Added fuzzer to video_coding::PacketBuffer.

BUG=chromium:677101

Review-Url: https://codereview.webrtc.org/2613833003
Cr-Commit-Position: refs/heads/master@{#16003}
2017-01-11 10:01:56 +00:00
cecf86e9b0 Android: Add field trial for Intel HW Vp8 encoder
Also enable Intel HW Vp8 encoder by default in AppRTCMobile.

BUG=webrtc:6683

Review-Url: https://codereview.webrtc.org/2614373004
Cr-Commit-Position: refs/heads/master@{#16002}
2017-01-11 08:57:43 +00:00
9ba57b51b3 Roll chromium_revision 2c7d29a159..0c11ed986f (442785:442829)
Change log: 2c7d29a159..0c11ed986f
Full diff: 2c7d29a159..0c11ed986f

Changed dependencies:
* src/base: 7ec0ebf844..255fd3d62e
* src/testing: cd7329bdfe..0415945e2b
* src/third_party: 78f83f65ee..577aaaf3ad
* src/tools: de02fe913a..0371a14068
DEPS diff: 2c7d29a159..0c11ed986f/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2627833002
Cr-Commit-Position: refs/heads/master@{#16001}
2017-01-11 08:03:09 +00:00
d96fb23b5a Roll chromium_revision d6539dc7b8..2c7d29a159 (442744:442785)
Change log: d6539dc7b8..2c7d29a159
Full diff: d6539dc7b8..2c7d29a159

Changed dependencies:
* src/base: 88c05b582d..7ec0ebf844
* src/testing: ab336985b9..cd7329bdfe
* src/third_party: 6d7b62b4e5..78f83f65ee
* src/third_party/catapult: 854df3eb01..8b10e7828a
* src/tools: 1429a96e3a..de02fe913a
DEPS diff: d6539dc7b8..2c7d29a159/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2626913003
Cr-Commit-Position: refs/heads/master@{#16000}
2017-01-11 04:37:48 +00:00
5623afe95f Roll chromium_revision 9ff3d6e6ca..d6539dc7b8 (442700:442744)
Change log: 9ff3d6e6ca..d6539dc7b8
Full diff: 9ff3d6e6ca..d6539dc7b8

Changed dependencies:
* src/testing: 301651d008..ab336985b9
* src/third_party: cac3d000cc..6d7b62b4e5
* src/third_party/catapult: d49320dbc4..854df3eb01
* src/tools: b3b48c364a..1429a96e3a
DEPS diff: 9ff3d6e6ca..d6539dc7b8/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2624903002
Cr-Commit-Position: refs/heads/master@{#15999}
2017-01-11 01:50:48 +00:00
6bea3089b2 Roll chromium_revision 1f59c91a97..9ff3d6e6ca (442639:442700)
Change log: 1f59c91a97..9ff3d6e6ca
Full diff: 1f59c91a97..9ff3d6e6ca

Changed dependencies:
* src/base: a2c51a1569..88c05b582d
* src/testing: fa3343c69f..301651d008
* src/third_party: ff9c9b3f72..cac3d000cc
* src/tools: 7614842a7e..b3b48c364a
DEPS diff: 1f59c91a97..9ff3d6e6ca/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2624003002
Cr-Commit-Position: refs/heads/master@{#15998}
2017-01-10 22:47:24 +00:00
68458b95a3 Roll chromium_revision 2cad8b6680..1f59c91a97 (442611:442639)
Change log: 2cad8b6680..1f59c91a97
Full diff: 2cad8b6680..1f59c91a97

Changed dependencies:
* src/base: 30a8fbf87c..a2c51a1569
* src/build: 74170c9ee8..91344e61c7
* src/third_party: 7356d95001..ff9c9b3f72
* src/tools: ab4f87b059..7614842a7e
DEPS diff: 2cad8b6680..1f59c91a97/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2620063002
Cr-Commit-Position: refs/heads/master@{#15997}
2017-01-10 19:37:26 +00:00
2bb28a8547 Roll chromium_revision 1a401559f9..2cad8b6680 (442570:442611)
Change log: 1a401559f9..2cad8b6680
Full diff: 1a401559f9..2cad8b6680

Changed dependencies:
* src/base: 62b610d471..30a8fbf87c
* src/build: aa92b7aef9..74170c9ee8
* src/testing: 71b97e1e4f..fa3343c69f
* src/third_party: 61ae06f036..7356d95001
* src/third_party/catapult: f1ec9eb8cd..d49320dbc4
* src/tools: b53786a349..ab4f87b059
DEPS diff: 1a401559f9..2cad8b6680/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2621063002
Cr-Commit-Position: refs/heads/master@{#15996}
2017-01-10 17:29:48 +00:00
284542b882 Make OverheadObserver::OnOverheadChanged count RTP headers only
This lets the RTP code be unaware of lower layers, and the
SetTransportOverhead method is deleted from RTPSender and RtpRtcp.

Instead, that method is added to CongestionController and
TransportFeedbackAdapter, where it is more appropriate.

BUG=wertc:6847

Review-Url: https://codereview.webrtc.org/2589743002
Cr-Commit-Position: refs/heads/master@{#15995}
2017-01-10 16:58:32 +00:00
c0ce6cc85e Android: Wrap webrtc::field_trial::FindFullName in Java
The purpose is to be able to add field trials in Java code.

BUG=webrtc:6683

Review-Url: https://codereview.webrtc.org/2621003002
Cr-Commit-Position: refs/heads/master@{#15994}
2017-01-10 16:02:03 +00:00
af916899cc Move VideoFrame and related declarations to webrtc/api/video.
Moves webrtc/common_video/rotation.h and parts of
webrtc/common_video/include/video_frame_buffer.h and
webrtc/video_frame.h, and adds to a new GN target api:video_frame_api.

BUG=webrtc:5880

Review-Url: https://codereview.webrtc.org/2517173004
Cr-Commit-Position: refs/heads/master@{#15993}
2017-01-10 15:44:26 +00:00
658024ee92 Reduce FlexFEC logging severity in two places.
BUG=webrtc:5654

Review-Url: https://codereview.webrtc.org/2621833004
Cr-Commit-Position: refs/heads/master@{#15992}
2017-01-10 14:49:58 +00:00
e911dbd83b Roll chromium_revision 3dab3b9517..1a401559f9 (442547:442570)
Change log: 3dab3b9517..1a401559f9
Full diff: 3dab3b9517..1a401559f9

Changed dependencies:
* src/third_party: 4065226c8f..61ae06f036
* src/third_party/catapult: 0c217fe876..f1ec9eb8cd
* src/tools: 3dfccef9ec..b53786a349
DEPS diff: 3dab3b9517..1a401559f9/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2622903002
Cr-Commit-Position: refs/heads/master@{#15991}
2017-01-10 14:36:17 +00:00
8054c7ecf8 EndToEndTest.ReceivesAndRetransmitsNack now handles reordering.
Since packets can be received out of order NACKs could be triggered before any
packet was actually dropped. This cause the test to never drop packets which in
turn caused the block of code which set the |observation_complete_| event to
never execute.

BUG=webrtc:2845

Review-Url: https://codereview.webrtc.org/2613443002
Cr-Commit-Position: refs/heads/master@{#15990}
2017-01-10 13:19:19 +00:00
11273f1e00 Reorder assignments in WebRtcVideoChannel2::ConfigureReceiverRtp to match definition in VideoReceiveStream::Config.
No functional changes are intended by this CL.

BUG=None

Review-Url: https://codereview.webrtc.org/2617373002
Cr-Commit-Position: refs/heads/master@{#15989}
2017-01-10 13:18:15 +00:00
e996a99721 Add a check for CameraCapturer being initialized before calling startCapture.
BUG=webrtc:6945
R=magjed@webrtc.org

Review-Url: https://codereview.webrtc.org/2621633002
Cr-Commit-Position: refs/heads/master@{#15988}
2017-01-10 12:30:31 +00:00
0d1b2b6880 Reland of Rename RTPVideoHeader.isFirstPacket to .is_first_packet_in_frame.
Add RTC_DEPRACATed anonymous unions to not break downstream projects.

Orignal issue's description:
> commit 0ad21111fcc57a7e978edba3c4263f0062d7f9ff
> Author: danilchap <danilchap@webrtc.org>
> Date:   Mon Dec 19 09:36:33 2016 -0800
>
>     Revert of Rename RTPVideoHeader.isFirstPacket to
>     .is_first_packet_in_frame. (patchset #1 id:1 of
>     https://codereview.webrtc.org/2574943003/ )
>
>     Reason for revert:
>     breaks downstream project.
>
>     Can you make this change in a compatible way using anonymous
>     union:
>     union {
>       bool is_first_packet_in_frame;
>       RTC_DEPRECATED bool isFirstPacket;
>     };
>     (unfortunetly this this treak breaks braced initialization in
>     rtp_rtcp_impl_unittest.cc,
>     so that should be rewritting in a more classic way)
>
>     Original issue's description:
>     > Rename RTPVideoHeader.isFirstPacket to
>     > .is_first_packet_in_frame.
>     >
>     > Name should represent the actual meaning.
>     >
>     > BUG=None
>     >
>     > Review-Url: https://codereview.webrtc.org/2574943003
>     > Cr-Commit-Position: refs/heads/master@{#15684}
>     > Committed:
>     > efde908380
>
>     TBR=stefan@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=None
>
>     Review-Url: https://codereview.webrtc.org/2589783003
>     Cr-Commit-Position: refs/heads/master@{#15686}
>

BUG=None

Review-Url: https://codereview.webrtc.org/2614503002
Cr-Commit-Position: refs/heads/master@{#15987}
2017-01-10 12:21:35 +00:00
989ec098d1 Drop unneeded includes of base/stream.h.
BUG=webrtc:6424

Review-Url: https://codereview.webrtc.org/2587423002
Cr-Commit-Position: refs/heads/master@{#15986}
2017-01-10 11:44:41 +00:00
48e779f31d Final removal of webrtc/api/android
External dependencies have been updated to use webrtc/sdk/android
instead, and we can remove the remaining files in webrtc/api/android.

BUG=webrtc:5882
TBR=tommi

Review-Url: https://codereview.webrtc.org/2628553003
Cr-Commit-Position: refs/heads/master@{#15985}
2017-01-10 11:43:21 +00:00
abf1752ff4 Fix for left shift of potentially negative value.
Left shifting of negative integers is undefined behavior, and should be prevented. This CL fixes one such instance in the Levinson Durbin function.

BUG=chromium:675349

Review-Url: https://codereview.webrtc.org/2621693002
Cr-Commit-Position: refs/heads/master@{#15984}
2017-01-10 11:37:20 +00:00
6969c56871 Roll chromium_revision 5347b46f28..3dab3b9517 (442520:442547)
Change log: 5347b46f28..3dab3b9517
Full diff: 5347b46f28..3dab3b9517

Changed dependencies:
* src/base: fa580ca173..62b610d471
* src/third_party: 43d3f5ede4..4065226c8f
* src/third_party/usrsctp/usrsctplib: 7f9228152a..8679f2b0bf
* src/tools: 17e1b70e8b..3dfccef9ec
DEPS diff: 5347b46f28..3dab3b9517/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2626593002
Cr-Commit-Position: refs/heads/master@{#15983}
2017-01-10 11:36:00 +00:00
a3f6ce10ed Update bitrate adjustment with true buffer used size.
This used to be updated with the reserved capacity of the buffer,
not the actual portion in use.

BUG=webrtc:6034

Review-Url: https://codereview.webrtc.org/2620653005
Cr-Commit-Position: refs/heads/master@{#15982}
2017-01-10 11:02:04 +00:00
5d682ca7a1 Disable some filesystem tests that don't make sense on iOS.
BUG=webrtc:5571
NOTRY=true

Review-Url: https://codereview.webrtc.org/2627583002
Cr-Commit-Position: refs/heads/master@{#15981}
2017-01-10 11:00:41 +00:00
b3f7dbc7a5 Add advice about Optional function arguments
This comes from here:
https://codereview.webrtc.org/2585293002/diff/1/webrtc/modules/audio_coding/audio_network_adaptor/fec_controller.h#newcode91

BUG=none
NOTRY=true

Review-Url: https://codereview.webrtc.org/2624573004
Cr-Commit-Position: refs/heads/master@{#15980}
2017-01-10 10:11:17 +00:00
ebfbc8ebfd Revert of Fix BitrateProber to match the requested bitrate more precisely (patchset #4 id:60001 of https://codereview.webrtc.org/2613543003/ )
Reason for revert:
Speculative revert.
Linux memcheck bot started failing a lot at the time of this cl. Doesn't look related at first glance, but we don't have another lead yet.

Original issue's description:
> Fix BitrateProber to match the requested bitrate more precisely
>
> Previously BirateProber was calculating delay between probes based on
> the size of the previous probe. Because of that the actual sent bitrate
> can deviate greatly from the target value. With this change it uses
> total number of bytes in the cluster to estimate delay before each
> probe.
>
> BUG=webrtc:6952
>
> Review-Url: https://codereview.webrtc.org/2613543003
> Cr-Commit-Position: refs/heads/master@{#15971}
> Committed: 599c5011e7

TBR=philipel@webrtc.org,stefan@webrtc.org,sergeyu@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=webrtc:6952

Review-Url: https://codereview.webrtc.org/2626473004
Cr-Commit-Position: refs/heads/master@{#15979}
2017-01-10 09:27:28 +00:00
9774447b8f Move FilePlayer and FileRecorder to Voice Engine
Because Voice Engine was the only user.

(We have tried to land this many times before. I'm hoping that this
time all external dependencies on these files will really be gone.)

BUG=none

Review-Url: https://codereview.webrtc.org/2622493002
Cr-Commit-Position: refs/heads/master@{#15978}
2017-01-10 09:12:51 +00:00
429a407b8f Roll chromium_revision 5b39e4105e..5347b46f28 (442467:442520)
Change log: 5b39e4105e..5347b46f28
Full diff: 5b39e4105e..5347b46f28

Changed dependencies:
* src/base: f87512427b..fa580ca173
* src/build: da5025b672..aa92b7aef9
* src/testing: 2c31fc5b31..71b97e1e4f
* src/third_party: 9652e24c30..43d3f5ede4
* src/third_party/catapult: 886ff596e4..0c217fe876
* src/tools: 5fbb36a332..17e1b70e8b
DEPS diff: 5b39e4105e..5347b46f28/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2620903002
Cr-Commit-Position: refs/heads/master@{#15977}
2017-01-10 07:52:54 +00:00
139b9c8229 Roll chromium_revision bd9d6be993..5b39e4105e (442427:442467)
Change log: bd9d6be993..5b39e4105e
Full diff: bd9d6be993..5b39e4105e

Changed dependencies:
* src/base: 5de2eb12bb..f87512427b
* src/testing: 52486c5b36..2c31fc5b31
* src/third_party: 612fd8b078..9652e24c30
* src/third_party/catapult: d7650682ca..886ff596e4
DEPS diff: bd9d6be993..5b39e4105e/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2621603003
Cr-Commit-Position: refs/heads/master@{#15976}
2017-01-10 05:02:58 +00:00
cd97f25d2e Roll chromium_revision 83519fc19e..bd9d6be993 (442364:442427)
Change log: 83519fc19e..bd9d6be993
Full diff: 83519fc19e..bd9d6be993

Changed dependencies:
* src/base: 443deeb775..5de2eb12bb
* src/build: 23e15e0b3e..da5025b672
* src/testing: 0efefbd4fd..52486c5b36
* src/third_party: e59e6deb25..612fd8b078
* src/third_party/catapult: 01464d2b3b..d7650682ca
* src/tools: 561c6332f0..5fbb36a332
DEPS diff: 83519fc19e..bd9d6be993/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2618403003
Cr-Commit-Position: refs/heads/master@{#15975}
2017-01-10 01:58:01 +00:00
5d0b6d8da3 Merge RTCConfiguration with RTCMediaConstraints in Java/Obj-C wrappers.
The intention of SetConfiguration is that it modifies the configuration,
while keeping the constraints passed into CreatePeerConnection. Right
now that's now happening. See bug for more explanation.

BUG=webrtc:6942

Review-Url: https://codereview.webrtc.org/2603653002
Cr-Commit-Position: refs/heads/master@{#15974}
2017-01-10 00:05:28 +00:00
953c2cea5e Reland of: Separating SCTP code from BaseChannel/MediaChannel.
The BaseChannel code is geared around RTP; the presence of media engines,
send and receive streams, SRTP, SDP directional attribute negotiation, etc.
It doesn't make sense to use it for SCTP as well. This separation should make
future work both on BaseChannel and the SCTP code paths easier.

SctpDataEngine now becomes SctpTransport, and is used by WebRtcSession
directly. cricket::DataChannel is also renamed, to RtpDataChannel, so it
doesn't get confused with webrtc::DataChannel any more.

Beyond just moving code around, some consequences of this CL:
- We'll now stop using the worker thread for SCTP. Packets will be
  processed right on the network thread instead.
- The SDP directional attribute is ignored, as it's supposed to be.

BUG=None

Review-Url: https://codereview.webrtc.org/2564333002
Cr-Original-Commit-Position: refs/heads/master@{#15906}
Committed: 67b3bbe639
Review-Url: https://codereview.webrtc.org/2564333002
Cr-Commit-Position: refs/heads/master@{#15973}
2017-01-09 22:53:41 +00:00
1f035c0f2a Roll chromium_revision d65a54696b..83519fc19e (442299:442364)
Change log: d65a54696b..83519fc19e
Full diff: d65a54696b..83519fc19e

Changed dependencies:
* src/base: e8aca5a44f..443deeb775
* src/testing: 95301730db..0efefbd4fd
* src/third_party: 48c320830b..e59e6deb25
* src/third_party/catapult: 7ec93bcc8d..01464d2b3b
* src/tools: 0e9bc2dbff..561c6332f0
DEPS diff: d65a54696b..83519fc19e/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2625543002
Cr-Commit-Position: refs/heads/master@{#15972}
2017-01-09 22:45:35 +00:00
599c5011e7 Fix BitrateProber to match the requested bitrate more precisely
Previously BirateProber was calculating delay between probes based on
the size of the previous probe. Because of that the actual sent bitrate
can deviate greatly from the target value. With this change it uses
total number of bytes in the cluster to estimate delay before each
probe.

BUG=webrtc:6952

Review-Url: https://codereview.webrtc.org/2613543003
Cr-Commit-Position: refs/heads/master@{#15971}
2017-01-09 20:38:05 +00:00
06195757ac Roll chromium_revision 75b1c6e681..d65a54696b (442240:442299)
Change log: 75b1c6e681..d65a54696b
Full diff: 75b1c6e681..d65a54696b

Changed dependencies:
* src/base: 08fc4234e9..e8aca5a44f
* src/build: 4f7aa48518..23e15e0b3e
* src/testing: 70ac26d0f9..95301730db
* src/third_party: 1116ff7b03..48c320830b
* src/third_party/catapult: 487c2d0050..7ec93bcc8d
* src/tools: b9e3aaee2b..0e9bc2dbff
DEPS diff: 75b1c6e681..d65a54696b/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2624483002
Cr-Commit-Position: refs/heads/master@{#15970}
2017-01-09 19:48:06 +00:00
5d3b28b853 Ensure internal_source is false for internal encoders.
webrtcvideoengine2.cc uses a field for parameters_, and doesn't empty
out the current state in functions like SetCodec. In the case of
internal_source, SetCodec only set it for external encoders, which
means that in a switch from an internal-source external encoder to an
internal encoder, the internal_source bit would stay set.

(It's plausible that there are other places that are also unsafe and we
just don't notice because codec switches are uncommon in most usage)

In combination with https://codereview.webrtc.org/2574183002/,
generic_encoder.cc now creates 1x1 uninitialized frames as fake frames
for internal_source keyframe requests. The vp8 software encoder doesn't
deal correctly with frames of resolutions that don't match the
configured resolution (besides a DCHECK) and no longer throws these
away (they used to be 0x0 frames), so this results in the VP8
encoder creating a keyframe of the configured send codec size by reading
random memory off the end of the fake I420 frame. This could either
cause crashes or encoding junk data, depending on where the allocation
was.

BUG=webrtc:6957

Review-Url: https://codereview.webrtc.org/2617003003
Cr-Commit-Position: refs/heads/master@{#15969}
2017-01-09 18:06:28 +00:00
c61a948e43 Roll chromium_revision d1a04b0087..75b1c6e681 (442227:442240)
Change log: d1a04b0087..75b1c6e681
Full diff: d1a04b0087..75b1c6e681

Changed dependencies:
* src/third_party: ddd0dd570f..1116ff7b03
* src/tools: 5019fd0aa0..b9e3aaee2b
DEPS diff: d1a04b0087..75b1c6e681/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2623523002
Cr-Commit-Position: refs/heads/master@{#15968}
2017-01-09 16:46:57 +00:00
0483362377 Add disabled certificate check support to IceServer PeerConnection API.
Refactor "OPT_SSLTCP" renaming it to "OPT_TLS_FAKE", making it clear
that it's not actually some kind of SSL over TCP. Also making it clear
that it's mutually exclusive with OPT_TLS. Maintaining deprecated
backwards compatible support for "OPT_SSLTCP".

Add "OPT_TLS_INSECURE" that implements the new certificate-check
disabled TLS mode, which is also mutually exclusive with the other
TLS options.

PortAllocator: Add a new TLS policy enum TlsCertPolicy which defines
the new insecure mode and added it as a RelayCredentials member.

TurnPort: Add new TLS policy member with appropriate getter and setter
to avoid constructor bloat. Initialize it from the RelayCredentials
after the TurnPort is created.

Expose the new feature in the PeerConnection API via
IceServer.tls_certificate_policy as well as via the Android JNI
PeerConnection API.

For security reasons we ensure that:

	1) The policy is always explicitly initialized to secure.
        2) API users have to explicitly integrate with the feature to
           use it, and will otherwise get no change in behavior.
	3) The feature is not immediately exposed in non-native
	   contexts. For example, disabling of certificate validation
           is not implemented via URI parsing since this would
           immediately allow it to be used from a web page.

This is a second attempt of https://codereview.webrtc.org/2557803002/
which was rolled back in https://codereview.webrtc.org/2590153002/

BUG=webrtc:6840

Review-Url: https://codereview.webrtc.org/2594623002
Cr-Commit-Position: refs/heads/master@{#15967}
2017-01-09 16:35:45 +00:00
4843dd13aa Fix for left-shift of potentially negative values in NetEq.
Left shifting negative integers is undefined behavior, and should be prevented. This CL fixes one such instance in the NetEq Expand function.

BUG=chromium:677106

Review-Url: https://codereview.webrtc.org/2616363003
Cr-Commit-Position: refs/heads/master@{#15966}
2017-01-09 16:31:42 +00:00
39ced8cf35 Delete final remnants of the buzz namespace.
The code using this namespace was deleted in cl
https://codereview.webrtc.org/2617443003.

TBR=pthatcher@webrtc.org
BUG=webrtc:5539

Review-Url: https://codereview.webrtc.org/2622543003
Cr-Commit-Position: refs/heads/master@{#15965}
2017-01-09 16:29:51 +00:00
c7e7e079a4 Lower bad call logging severity
BUG=webrtc:6814

Review-Url: https://codereview.webrtc.org/2584723003
Cr-Commit-Position: refs/heads/master@{#15964}
2017-01-09 15:23:33 +00:00
0b7bd75659 AVFoundationVideoCapturer: Fix apply_rotation() logic
When apply_rotation() returns true, rotation and captured width/heigh are not set correctly.

BUG=webrtc:6925

Review-Url: https://codereview.webrtc.org/2611113003
Cr-Commit-Position: refs/heads/master@{#15963}
2017-01-09 15:09:23 +00:00
075c6d7f7e Temporarily remove SSRC DCHECK in RTPSender::SendToNetwork.
Removing the DCHECK due to (sometimes) failing voe_auto_test.
Long-term, this DCHECK should be readded. Before that can happen,
the SSRC in the RTPSender should be made immutable.

TESTED=No failures when running third_party/gtest-parallel/gtest-parallel --repeat=5000 --gtest_filter="VolumeTest.ManualInputMutingMutesMicrophone" out/Debug/voe_auto_test.
BUG=webrtc:6887

Review-Url: https://codereview.webrtc.org/2610873002
Cr-Commit-Position: refs/heads/master@{#15962}
2017-01-09 13:11:09 +00:00
29fe6f338f Make magjed@ owner of webrtc/sdk/objc
Also, move owner file from webrtc/sdk to webrtc/sdk/objc since we now
also have webrtc/sdk/android directory.

BUG=None
TBR=tkchin
NOTRY=True

Review-Url: https://codereview.webrtc.org/2589233002
Cr-Commit-Position: refs/heads/master@{#15961}
2017-01-09 12:20:30 +00:00
38d8b3c9b0 Clean up ramp-up tests and make sure they all pass.
BUG=webrtc:6935

Review-Url: https://codereview.webrtc.org/2599013002
Cr-Commit-Position: refs/heads/master@{#15960}
2017-01-09 12:19:24 +00:00
5e8ca36892 Roll chromium_revision e1df850a47..d1a04b0087 (442202:442227)
Change log: e1df850a47..d1a04b0087
Full diff: e1df850a47..d1a04b0087

Changed dependencies:
* src/build: 87eca92f3e..4f7aa48518
* src/third_party: 749c10e0aa..ddd0dd570f
DEPS diff: e1df850a47..d1a04b0087/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2622523002
Cr-Commit-Position: refs/heads/master@{#15959}
2017-01-09 11:40:58 +00:00
438062bd43 Reland of Fixing package-boundary violation with srjar_deps (patchset #1 id:1 of https://codereview.webrtc.org/2617533005/ )
Reason for revert:
Skipping the build of the target "//webrtc/modules/audio_device:audio_device_java" when building webrtc with chromium.

This was causing a failure because in that case it is not possible to refer to the script used by the template "android_shared_srcjar" with an absolute path (which seems to be necessary since the script attribute of action is relative to the invocation target and not to the template declaration).

Original issue's description:
> Revert of Fixing package-boundary violation with srjar_deps (patchset #5 id:80001 of https://codereview.webrtc.org/2610823002/ )
>
> Reason for revert:
> This CL is breaking a chromium.webrtc.fyi: https://build.chromium.org/p/chromium.webrtc.fyi/builders/Android%20Builder/builds/226
>
> I am trying to reproduce the issue on my local machine and I will try to re-land the CL later.
>
> Original issue's description:
> > Fixing package-boundary violation with srjar_deps
> >
> > Without the usage of the srcjar_deps attribute we were not able to
> > include .java files from other packages without violating the package
> > boundary contraint.
> >
> > As an example, in this CL the target "libjingle_peerconnection_java" was
> > directly including .java files from another packages in its "java_files"
> > attribute.
> >
> > Using srcjar_deps we are able to declare the dependency of the target
> > avoiding to create hidden dependencies in the codebase.
> >
> > This is not fixing the webrtc:6356 bug directly but it is a first step to
> > include ThreadUtils classes in libjingle_peerconnection_client_java.jar
> > again.
> >
> > It seems also to be related to the chromium:648244 bug. This can be solved
> > if we can find a way to perform srcjar generation in the android_library
> > target without changing the semantic of the target.
> >
> > BUG=webrtc:6356
> >
> > Review-Url: https://codereview.webrtc.org/2610823002
> > Cr-Commit-Position: refs/heads/master@{#15914}
> > Committed: 10a76592a7
>
> TBR=kjellander@webrtc.org
> # Skipping CQ checks because original CL landed less than 1 days ago.
> NOPRESUBMIT=true
> NOTREECHECKS=true
> NOTRY=true
> BUG=webrtc:6356
>
> Review-Url: https://codereview.webrtc.org/2617533005
> Cr-Commit-Position: refs/heads/master@{#15915}
> Committed: eb731ed09e

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

Review-Url: https://codereview.webrtc.org/2612953004
Cr-Commit-Position: refs/heads/master@{#15958}
2017-01-09 10:37:21 +00:00
c1b661eee0 Remove duplicate implementations of string conversion methods.
BUG=webrtc:4773

Review-Url: https://codereview.webrtc.org/2583853002
Cr-Commit-Position: refs/heads/master@{#15957}
2017-01-09 09:40:03 +00:00