Commit Graph

15875 Commits

Author SHA1 Message Date
12749d89d9 Make P2PTransportChannel inherit from IceTransportInternal.
Make P2PTransportChannel inherit from IceTransportInternal instead of
TransportChannelImpl and TransportChannel, so that the DTLS-related methods can
be separated from P2PTransportChannel.

BUG=none

Review-Url: https://codereview.webrtc.org/2590063002
Cr-Commit-Position: refs/heads/master@{#15743}
2016-12-21 18:26:18 +00:00
eec99094e3 Roll chromium_revision 645df3089e..c26bcdb5fe (440075:440109)
Change log: 645df3089e..c26bcdb5fe
Full diff: 645df3089e..c26bcdb5fe

No dependencies changed.
No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2595923002
Cr-Commit-Position: refs/heads/master@{#15742}
2016-12-21 16:22:23 +00:00
b29e652b10 Revert "Revert of Parse FlexFEC RTP headers in Call and add integration with BWE. (patchset #17 id:460001 of https://codereview.webrtc.org/2553863003/ )"
Problem fixed: RTP header extensions were not properly set in tests.

BUG=webrtc:5654

Review-Url: https://codereview.webrtc.org/2593963003
Cr-Commit-Position: refs/heads/master@{#15741}
2016-12-21 14:37:18 +00:00
9ba94baa9c Roll chromium_revision 40ccb25811..645df3089e (440063:440075)
Change log: 40ccb25811..645df3089e
Full diff: 40ccb25811..645df3089e

No dependencies changed.
No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2591803003
Cr-Commit-Position: refs/heads/master@{#15740}
2016-12-21 13:16:14 +00:00
8ed8acad4c Readd third_party/llvm-build to .gitignore
I thought it needed to be wiped to unblock https://codereview.webrtc.org/2588333002/
but it doesn't seem to be the case, so readding for now.

BUG=None
TBR=brandtr@webrtc.org

Review-Url: https://codereview.webrtc.org/2588423004 .
Cr-Commit-Position: refs/heads/master@{#15739}
2016-12-21 12:53:54 +00:00
23368e1aef RTCStatsCollectorTest: ExpectReportContainsCertificateInfo /w EXPECT_EQ
Modify ExpectReportContainsCertificateInfo to use EXPECT_EQ checks of
RTCCertificateStats objects.

BUG=chromium:627816

Review-Url: https://codereview.webrtc.org/2594553003
Cr-Commit-Position: refs/heads/master@{#15738}
2016-12-21 12:29:17 +00:00
c42ba32877 RTCStatsCollectorTest: Remove ExpectReportContainsCandidate.
Remove ExpectReportContainsCandidate in favor of EXPECT_EQ checks of
RTC[Local/Remote]IceCandidateStats objects.

BUG=chromium:627816

Review-Url: https://codereview.webrtc.org/2594753002
Cr-Commit-Position: refs/heads/master@{#15737}
2016-12-21 11:31:45 +00:00
e55b16c664 Drop unneeded include of media_file.h.
BUG=None

Review-Url: https://codereview.webrtc.org/2587403002
Cr-Commit-Position: refs/heads/master@{#15736}
2016-12-21 11:05:44 +00:00
504b95eff8 Avoid creating receiver_time outliers in the VideoAnalyzer.
Prior to this change, the receiver_time metric had huge outliers
whenever FlexFEC was enabled. This was due to a measurement problem,
where the time of the incoming packet was incorrectly set to zero.
This happened for packets that were lost in transit, but recovered
through FEC.

This CL fixes this problem by simply not recording samples where the
incoming packet time is undefined. The CL also removes the possibility
of timestamp collisions in the data structures.

TESTED=Ran './webrtc_perf_tests --gtest_filter="*ForemanCifPlr5H264Flexfec*" | grep receiver_time' locally 10 times, without experiencing any outliers.
BUG=webrtc:5654

Review-Url: https://codereview.webrtc.org/2596793002
Cr-Commit-Position: refs/heads/master@{#15735}
2016-12-21 10:54:35 +00:00
f9891d51f8 Roll chromium_revision 4bca52942c..40ccb25811 (440045:440063)
Change log: 4bca52942c..40ccb25811
Full diff: 4bca52942c..40ccb25811

No dependencies changed.
No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2593583004
Cr-Commit-Position: refs/heads/master@{#15734}
2016-12-21 10:43:56 +00:00
d39e16ac30 Revert of Refactor webrtc/modules/video_processing for GN check (patchset #3 id:40001 of https://codereview.webrtc.org/2595543002/ )
Reason for revert:
This CL broke some buildbots. I will investigate it later.

Original issue's description:
> Refactor webrtc/modules/video_processing for GN check
>
> This moves some GN check configurations out of .gn to individual
> targets.
>
> The now checked target is:
> "//webrtc/modules/video_processing/*"
>
> BUG=webrtc:6828
> NOTRY=True
>
> Review-Url: https://codereview.webrtc.org/2595543002
> Cr-Commit-Position: refs/heads/master@{#15732}
> Committed: 00a810b844

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

Review-Url: https://codereview.webrtc.org/2594973002
Cr-Commit-Position: refs/heads/master@{#15733}
2016-12-21 10:18:54 +00:00
00a810b844 Refactor webrtc/modules/video_processing for GN check
This moves some GN check configurations out of .gn to individual
targets.

The now checked target is:
"//webrtc/modules/video_processing/*"

BUG=webrtc:6828
NOTRY=True

Review-Url: https://codereview.webrtc.org/2595543002
Cr-Commit-Position: refs/heads/master@{#15732}
2016-12-21 10:01:26 +00:00
dbb64d8f27 RTCStatsCollectorTest: Remove ExpectReportContainsDataChannel.
Remove ExpectReportContainsDataChannel in favor of EXPECT_EQ checks of
RTCDataChannelStats objects.

BUG=chromium:627816

Review-Url: https://codereview.webrtc.org/2597433002
Cr-Commit-Position: refs/heads/master@{#15731}
2016-12-21 09:57:46 +00:00
02d2a92d92 RTCStatsReport::AddStats DCHECKs that the ID is unique.
Previously it was allowed to call AddStats with stats of the same ID
multiple times.

This revealed a few things:
- Local and remote streams can have the same label.
  RTCMediaStreamStats's ID is updated to include "local"/"remote".
- The same certificate can show up multiple times (e.g. for local and
  remote in a loopback), so we skip creating RTCCertificateStats for the
  same certificate multiple times

BUG=chromium:627816

Review-Url: https://codereview.webrtc.org/2593503003
Cr-Commit-Position: refs/heads/master@{#15730}
2016-12-21 09:29:05 +00:00
2a495ca297 Refactor webrtc/modules/pacing for GN check
This moves some GN check configurations out of .gn to individual
targets.

The now checked target is:
"//webrtc/modules/pacing/*"

BUG=webrtc:6828
NOTRY=True

Review-Url: https://codereview.webrtc.org/2594523003
Cr-Commit-Position: refs/heads/master@{#15729}
2016-12-21 08:26:58 +00:00
01c715096f Move nat-related code to target rtc_base_tests_utils.
BUG=None

Review-Url: https://codereview.webrtc.org/2591733002
Cr-Commit-Position: refs/heads/master@{#15728}
2016-12-21 08:23:08 +00:00
70e4053844 Revert of Parse FlexFEC RTP headers in Call and add integration with BWE. (patchset #17 id:460001 of https://codereview.webrtc.org/2553863003/ )
Reason for revert:
Unexpected perf regressions.

Original issue's description:
> Parse FlexFEC RTP headers in Call and add integration with BWE.
>
> BUG=webrtc:5654
>
> Review-Url: https://codereview.webrtc.org/2553863003
> Cr-Commit-Position: refs/heads/master@{#15709}
> Committed: ab2ffa3b28

TBR=philipel@webrtc.org,stefan@webrtc.org,danilchap@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:5654

Review-Url: https://codereview.webrtc.org/2589393002
Cr-Commit-Position: refs/heads/master@{#15727}
2016-12-21 08:22:03 +00:00
ba96730bd8 Refactor webrtc/modules/media_file for GN check
This moves some GN check configurations out of .gn to individual
targets.

The now checked target is:
"//webrtc/modules/media_file/*"

BUG=webrtc:6828
NOTRY=True

Review-Url: https://codereview.webrtc.org/2593693002
Cr-Commit-Position: refs/heads/master@{#15726}
2016-12-21 08:20:52 +00:00
70870b9211 Refactor webrtc/modules/desktop_capture for GN check
This moves some GN check configurations out of .gn to individual
targets.

The now checked target is:
"//webrtc/modules/desktop_capture/*"

BUG=webrtc:6828
NOTRY=True

Review-Url: https://codereview.webrtc.org/2593713002
Cr-Commit-Position: refs/heads/master@{#15725}
2016-12-21 07:42:05 +00:00
bb0d56a5ca Roll chromium_revision bd4620dd0a..4bca52942c (440003:440045)
Change log: bd4620dd0a..4bca52942c
Full diff: bd4620dd0a..4bca52942c

No dependencies changed.
No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2590123003
Cr-Commit-Position: refs/heads/master@{#15724}
2016-12-21 07:16:23 +00:00
88851509c8 Roll chromium_revision 306ab8027c..bd4620dd0a (439956:440003)
Change log: 306ab8027c..bd4620dd0a
Full diff: 306ab8027c..bd4620dd0a

No dependencies changed.
No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2588323003
Cr-Commit-Position: refs/heads/master@{#15723}
2016-12-21 04:27:06 +00:00
fe4a8a41ad Implement current/pending session description methods.
BUG=webrtc:6917

Review-Url: https://codereview.webrtc.org/2590753002
Cr-Commit-Position: refs/heads/master@{#15722}
2016-12-21 01:56:17 +00:00
66f6c7207c Roll chromium_revision 438fa433d3..306ab8027c (439886:439956)
Change log: 438fa433d3..306ab8027c
Full diff: 438fa433d3..306ab8027c

Changed dependencies:
* src/third_party/catapult: 70f42a7c55..f3dc14e52f
DEPS diff: 438fa433d3..306ab8027c/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2591983002
Cr-Commit-Position: refs/heads/master@{#15721}
2016-12-21 01:36:56 +00:00
494dff4c07 Fix a screen capture issue on retina macOS devices.
The CGDisplayStream API returns rects in physical pixel coordinates, not
Density-Independent Pixel coordinates. The code was incorrectly re-applying the
dip_to_pixel scaling.

BUG=chromium:675490

Review-Url: https://codereview.webrtc.org/2588973002
Cr-Commit-Position: refs/heads/master@{#15720}
2016-12-21 01:00:22 +00:00
14a588ab0a Roll chromium_revision 8557f6fd65..438fa433d3 (439808:439886)
Change log: 8557f6fd65..438fa433d3
Full diff: 8557f6fd65..438fa433d3

No dependencies changed.
No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2590953003
Cr-Commit-Position: refs/heads/master@{#15719}
2016-12-20 22:24:47 +00:00
1b08dc33eb To verify the upcoming code changes it is required
that the level of the output in the audio processing
module is monitored. This CL adds that.

BUG=webrtc:6181, webrtc:6183, webrtc:6220

Review-Url: https://codereview.webrtc.org/2549143004
Cr-Commit-Position: refs/heads/master@{#15718}
2016-12-20 21:45:58 +00:00
0838327ec9 Add method needed to extract frame capture and arrival timestamps from rtc event logs.
BUG=None

Review-Url: https://codereview.webrtc.org/2557073002
Cr-Commit-Position: refs/heads/master@{#15717}
2016-12-20 16:51:52 +00:00
f7969df2d9 Roll chromium_revision 374735e0c4..8557f6fd65 (439777:439808)
Change log: 374735e0c4..8557f6fd65
Full diff: 374735e0c4..8557f6fd65

No dependencies changed.
No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2588373003
Cr-Commit-Position: refs/heads/master@{#15716}
2016-12-20 16:23:55 +00:00
64427e563e Add back video_replay. Disappeared in the gn conversion.
BUG=webrtc:6323

Review-Url: https://codereview.webrtc.org/2595533002
Cr-Commit-Position: refs/heads/master@{#15715}
2016-12-20 15:26:58 +00:00
235d5cca4a Fixing relative paths and adding a docstring
BUG=webrtc:6828
NOTRY=True

Review-Url: https://codereview.webrtc.org/2589223002
Cr-Commit-Position: refs/heads/master@{#15714}
2016-12-20 15:19:18 +00:00
4f6296fa65 Roll chromium_revision 03cbb9aff4..374735e0c4 (439759:439777)
Change log: 03cbb9aff4..374735e0c4
Full diff: 03cbb9aff4..374735e0c4

No dependencies changed.
No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2590873002
Cr-Commit-Position: refs/heads/master@{#15713}
2016-12-20 14:01:44 +00:00
a3f2d30182 Remove media/base header files from rtc_media target
Chromium has now been updated, so we can remove the base headers from
rtc_media.

BUG=None

Review-Url: https://codereview.webrtc.org/2590813002
Cr-Commit-Position: refs/heads/master@{#15712}
2016-12-20 13:26:59 +00:00
306127635e Convert rtc_event_log from webrtc::Clock to rtc::TimeMicros.
TBR=pthatcher@webrtc.org
BUG=webrtc:6733

Review-Url: https://codereview.webrtc.org/2515653002
Cr-Commit-Position: refs/heads/master@{#15711}
2016-12-20 13:03:58 +00:00
022b54e86a Wire up H264 fmtp sprop-parameter-sets with H264SpsPpsTracker.
To avoid making this CL large unittests will be added in a followup CL.

BUG=webrtc:5948

patch from issue 2570073002 at patchset 20001 (http://crrev.com/2570073002#ps20001)

Review-Url: https://codereview.webrtc.org/2565173009
Cr-Commit-Position: refs/heads/master@{#15710}
2016-12-20 12:15:59 +00:00
ab2ffa3b28 Parse FlexFEC RTP headers in Call and add integration with BWE.
BUG=webrtc:5654

Review-Url: https://codereview.webrtc.org/2553863003
Cr-Commit-Position: refs/heads/master@{#15709}
2016-12-20 11:33:58 +00:00
b36ee8d498 New method StatsObserver::OnCompleteReports, passing ownership.
The new name, OnCompleteReports rather than OnComplete, is needed
because in C++ method lookup, overriding a method hides all otherwise
inherited methods with the same name, even if they have a different
signature. And here, the intention is that each subclass should
override one or the other of the two methods, and inherit the method it
doesn't override.

This cl is a prerequisite for
https://codereview.webrtc.org/2567143003/, because the Chrome glue
code needs to retain the stats report after the OnComplete method has
returned.

Currently, Chrome makes a copy of the stats mapping (which breaks when
changing ValuePtr from an rtc::linked_ptr to an std::unique_ptr). After
this cl, Chrome can be fixed to take ownership and no longer needs to
copy anything, unblocking cl 2567143003.

BUG=webrtc:6424

Review-Url: https://codereview.webrtc.org/2584553002
Cr-Commit-Position: refs/heads/master@{#15708}
2016-12-20 11:30:00 +00:00
5206667dad Delete unused method PayloadRouter::MaxPayloadLength.
Documentation was also unclear, it seems it returned the RTP packet
size including RTP headers.

BUG=None.

Review-Url: https://codereview.webrtc.org/2588343002
Cr-Commit-Position: refs/heads/master@{#15707}
2016-12-20 11:12:04 +00:00
8bab796db7 Style cleanup in RTCPReceiver
Rename variables and private functions to follow style,
replace remaining asserts with DCHECKs.
add 'ms' suffix to time variables derived from clock_
add 'ntp' suffix to time variables derived from ntp time.
No functional changes expected.

BUG=None

Review-Url: https://codereview.webrtc.org/2588753002
Cr-Commit-Position: refs/heads/master@{#15706}
2016-12-20 10:46:46 +00:00
cb29be5cfa Roll chromium_revision 722be6f390..03cbb9aff4 (439731:439759)
Change log: 722be6f390..03cbb9aff4
Full diff: 722be6f390..03cbb9aff4

No dependencies changed.
No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2589153002
Cr-Commit-Position: refs/heads/master@{#15705}
2016-12-20 10:36:07 +00:00
2037fa4d0d setup_links.py: Always link to base + cleanup.
This is needed to unblock the migration away from Chromium checkouts.
With the existing base/third_party/libevent link, trybots fail patching
base/

BUG=webrtc:5006
TBR=charujain@webrtc.org

Review-Url: https://codereview.webrtc.org/2595483002 .
Cr-Commit-Position: refs/heads/master@{#15704}
2016-12-20 10:26:53 +00:00
d5236e2948 Revert of Add disabled certificate check support to IceServer PeerConnection API. (patchset #8 id:140001 of https://codereview.webrtc.org/2557803002/ )
Reason for revert:
This CL broke all Chromium WebRTC FYI bots. A roll+fix was attempted here: https://codereview.chromium.org/2590783003/, but failed to land. I'm reverting this CL now to make the tree green again. Make the API change gradual when you reland so that we can update Chromium between.

Original issue's description:
> 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.
>
> 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.
>
> BUG=webrtc:6840
>
> Review-Url: https://codereview.webrtc.org/2557803002
> Cr-Commit-Position: refs/heads/master@{#15670}
> Committed: b0f04fdb9e

TBR=pthatcher@webrtc.org,deadbeef@webrtc.org,hnsl@webrtc.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=webrtc:6840

Review-Url: https://codereview.webrtc.org/2590153002
Cr-Commit-Position: refs/heads/master@{#15703}
2016-12-20 10:22:06 +00:00
03ab4e7818 Update .gitignore for changes in third_party
This is needed to avoid errors about unversioned files
after submitting https://codereview.webrtc.org/2588333002/

BUG=webrtc:5006
TBR=charujain@webrtc.org

Review-Url: https://codereview.webrtc.org/2591663002 .
Cr-Commit-Position: refs/heads/master@{#15702}
2016-12-20 10:00:55 +00:00
0012d183b8 Move last of third_party dirs into DEPS entries
BUG=webrtc:5006
TBR=charujain@webrtc.org
NOTRY=True

Review-Url: https://codereview.webrtc.org/2588333002
Cr-Commit-Position: refs/heads/master@{#15701}
2016-12-20 09:36:35 +00:00
59dbfe6d32 Add a unit test for Opus complexity adaptation
The test verifies that the hysteresis window in the configuration works
as intended.

BUG=webrtc:6708

Review-Url: https://codereview.webrtc.org/2594563002
Cr-Commit-Position: refs/heads/master@{#15700}
2016-12-20 09:17:55 +00:00
babbc308ac Roll chromium_revision fab77db556..722be6f390 (439696:439731)
Change log: fab77db556..722be6f390
Full diff: fab77db556..722be6f390

No dependencies changed.
No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2591633002
Cr-Commit-Position: refs/heads/master@{#15699}
2016-12-20 08:01:29 +00:00
5cef469ddc Remove tools/.gitignore
This was missed in https://codereview.webrtc.org/2594553002/

BUG=webrtc:5006
TBR=charujain@webrtc.org

Review-Url: https://codereview.webrtc.org/2593523002 .
Cr-Commit-Position: refs/heads/master@{#15698}
2016-12-20 07:46:59 +00:00
a2ccfc8509 Remove last files in tools/
This finishes the moving out of stuff into tools-webrtc, in preparation
for using a Git subtree mirror of Chromium's tools/ directory, which
is the planned way to get rid of downloading a full Chromium checkout.

BUG=webrtc:5006
TBR=charujain@webrtc.org

Review-Url: https://codereview.webrtc.org/2594553002 .
Cr-Commit-Position: refs/heads/master@{#15697}
2016-12-20 07:44:44 +00:00
c18cb31a32 Remove tools/gritsettings
This directory is no longer needed after migrating from GYP to GN.

BUG=webrtc:5006
TBR=charujain@webrtc.org

Review-Url: https://codereview.webrtc.org/2595443002 .
Cr-Commit-Position: refs/heads/master@{#15696}
2016-12-20 07:27:35 +00:00
9547033637 Move tools/{msan,ubsan} -> tools-webrtc/
After landing https://codereview.chromium.org/2580313002/ in
Chromium and rolled it in, this is now possible.

BUG=webrtc:5006
TBR=charujain@webrtc.org
NOTRY=True

Review-Url: https://codereview.webrtc.org/2589093002 .
Cr-Commit-Position: refs/heads/master@{#15695}
2016-12-20 07:04:25 +00:00
19d0489df7 Roll chromium_revision c6596482a6..fab77db556 (439640:439696)
Change log: c6596482a6..fab77db556
Full diff: c6596482a6..fab77db556

Changed dependencies:
* src/third_party/catapult: d77eaf7f69..70f42a7c55
DEPS diff: c6596482a6..fab77db556/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2588263002
Cr-Commit-Position: refs/heads/master@{#15694}
2016-12-20 04:37:07 +00:00