101 Commits

Author SHA1 Message Date
Henrik Kjellander
65a830892c Another landmine for low_bandwidth_audio_test
It seems old build output is still causing problems with failed
compile steps.

BUG=webrtc:7430
TBR=lliuu@webrtc.org
CC=oprypin@webrtc.org

Review-Url: https://codereview.webrtc.org/2787023003 .
Cr-Commit-Position: refs/heads/master@{#17478}
2017-03-30 19:32:53 +00:00
oprypin
6d305baa04 Add Windows, Mac, Android support to low bandwidth audio test
BUG=webrtc:7229

Review-Url: https://codereview.webrtc.org/2767383005
Cr-Commit-Position: refs/heads/master@{#17470}
2017-03-30 11:01:30 +00:00
oprypin
30cbd0ba8f Landmine #2 for https://codereview.webrtc.org/2767383005
BUG=webrtc:7229
NOTRY=True

Review-Url: https://codereview.webrtc.org/2787753002
Cr-Commit-Position: refs/heads/master@{#17469}
2017-03-30 10:51:10 +00:00
ehmaldonado
031846393c gtest-parallel: Concatenate the log files in the passed, failed and interrupted dirs.
BUG=webrtc:7391
R=kjellander@webrtc.org
NOTRY=True

Review-Url: https://codereview.webrtc.org/2787453004
Cr-Commit-Position: refs/heads/master@{#17468}
2017-03-30 10:33:19 +00:00
deadbeef
1dcb16409a Rewrite PeerConnection integration tests using better testing practices.
Also renames "peerconnection_unittests" to "peerconnection_integrationtests",
and moves the ICE URL parsing code to separate files.

The main problem previously was that the test assertions
occurred in various places in the main test class, and this shared test
code was overly complex and stateful. As a result, it was difficult to
tell what a test even does, let alone what assertions it's meant to be
making. And writing a new test that does what you want can be a
frustrating ordeal.

The new code still uses helper methods, but they have intuitive names
and a smaller role; all of the important parts of the test's logic are
in the test case itself.

We're planning on merging PeerConnection and WebRtcSession at some point
soon, so it seemed valuable to do this, so that the WebRtcSession tests
can be rewritten as PeerConnection tests using better patterns.

BUG=None

Review-Url: https://codereview.webrtc.org/2738353003
Cr-Commit-Position: refs/heads/master@{#17458}
2017-03-30 04:08:16 +00:00
ehmaldonado
3ff7a95552 Use Chromium's mirror of github for gtest-parallel.
- Move gtest-parallel-wrapper.py to tools-webrtc.
- Update mb.py and mb_unittest.py

BUG=webrtc:7391
NOTRY=True
R=kjellander@webrtc.org

Review-Url: https://codereview.webrtc.org/2785653002
Cr-Commit-Position: refs/heads/master@{#17453}
2017-03-29 16:42:32 +00:00
Henrik Kjellander
6104cb7656 MB: Make new ARM Debug bots actually build Debug.
There was a mistake in
https://codereview.webrtc.org/2787483002 making the new Debug
bots build Release.

BUG=webrtc:7024
NOTRY=True
TBR=ehmaldonado@webrtc.org

Review-Url: https://codereview.webrtc.org/2782883002 .
Cr-Commit-Position: refs/heads/master@{#17448}
2017-03-29 14:14:47 +00:00
Henrik Kjellander
c02b5fad2a MB: Add the new ARM bots.
BUG=webrtc:7024
NOTRY=True
R=ehmaldonado@webrtc.org

Review-Url: https://codereview.webrtc.org/2787483002 .
Cr-Commit-Position: refs/heads/master@{#17446}
2017-03-29 13:51:57 +00:00
aleloi
dbd0a21a5d Disable P2PTransportChannelMultihomedTest test on memcheck.
The test
P2PTransportChannelMultihomedTest.TestContinualGatheringOnNewInterface
fails on Linux memcheck with the following error:

../../webrtc/p2p/base/p2ptransportchannel_unittest.cc:2780: Failure
Value of: ep1_ch1()->GetState() == IceTransportState::STATE_COMPLETED && (conn = GetConnectionWithLocalAddress(ep1_ch1(), cellular[0])) != nullptr && conn != ep1_ch1()->selected_connection() && conn->writable()
  Actual: false
Expected: true

TBR=honghaiz@webrtc.org
BUG=webrtc:7421
NOTRY=true

Review-Url: https://codereview.webrtc.org/2782163002
Cr-Commit-Position: refs/heads/master@{#17445}
2017-03-29 12:04:26 +00:00
oprypin
3c5ec8d918 Landmine for https://codereview.webrtc.org/2767383005
BUG=webrtc:7229
NOTRY=True

Review-Url: https://codereview.webrtc.org/2777873002
Cr-Commit-Position: refs/heads/master@{#17441}
2017-03-29 11:09:44 +00:00
Henrik Kjellander
43d57dea32 Landmine to clobber due to Win Clang Debug linking errors
In https://codereview.webrtc.org/2786603002 we saw several
Win Clang Debug errors. Clang was recently rolled so let's just
wipe our bots clean.

BUG=None
TBR=oprypin@webrtc.org

Review-Url: https://codereview.webrtc.org/2781873003 .
Cr-Commit-Position: refs/heads/master@{#17439}
2017-03-29 10:49:47 +00:00
kjellander
f9e2a36229 Roll chromium_revision 22b81f6c45..d604de96c9 (459032:459307)
MB changes were needed due to https://codereview.chromium.org/2767833002
FullStackTest.ScreenshareSlidesVP9_2SL
test was disabled due to libvpx regression, see webrtc:7401.

Roll chromium_revision 22b81f6c45..d604de96c9 (459032:459307)

Change log: 22b81f6c45..d604de96c9
Full diff: 22b81f6c45..d604de96c9

Changed dependencies:
* src/base: 258342709c..d49079a0cb
* src/build: 4a2354d6ce..a18678dc18
* src/ios: f825ec1419..4afbbbaa88
* src/testing: 83a00745ef..7a028befe4
* src/third_party: 5c1951e265..5903b09f59
* src/third_party/catapult: 1b6a20ab7e..5c300b0898
* src/third_party/ffmpeg: b9acb5c51e..6d2e444456
* src/third_party/libvpx/source/libvpx: 8121f85473..2fac50fa0e
* src/tools: a4f9a9e9e9..3a6ca3a28a
DEPS diff: 22b81f6c45..d604de96c9/DEPS

No update to Clang.

TBR=marpan@webrtc.org,
BUG=webrtc:7401

Review-Url: https://codereview.webrtc.org/2777553002
Cr-Commit-Position: refs/heads/master@{#17376}
2017-03-24 19:17:33 +00:00
deadbeef
f137e97adb Revert of Removing HTTPS and SOCKS proxy server code. (patchset #2 id:20001 of https://codereview.webrtc.org/2731673002/ )
Also needed to revert these CLs, which removed code used by the
code being un-removed:
https://codereview.webrtc.org/2745523004
https://codereview.webrtc.org/2754033003
https://codereview.webrtc.org/2758943002

Reason for revert:
This code is still being used by native application developers, so we should send a PSA announcing the deprecation and suggest an alternative before removing it.

Original issue's description:
> Removing HTTPS and SOCKS proxy server code.
>
> This isn't used any more so there's no point in maintaining it.
>
> BUG=None
>
> Review-Url: https://codereview.webrtc.org/2731673002
> Cr-Commit-Position: refs/heads/master@{#17016}
> Committed: a1991c5175

TBR=pthatcher@webrtc.org
NOPRESUBMIT=true
NOTRY=true
BUG=None

Review-Url: https://codereview.webrtc.org/2766063005
Cr-Commit-Position: refs/heads/master@{#17369}
2017-03-23 22:45:49 +00:00
kjellander
74e8126ac9 MB: Add --quick flag for low_bandwidth_audio_test
This seems to be the preferred way to pass flags to tests running on Swarming.

Add --quick flag to the low_bandwidth_audio_test and support for 'args' keyword
(similar to upstream Chromium's mb.py).
Change the type of the test to non_parallel_console_test_launcher to avoid
running with gtest-parallel, since it will swallow the stdout output.

BUG=webrtc:7229
NOTRY=True
TBR=ehmaldonado@webrtc.org

Review-Url: https://codereview.webrtc.org/2763323003
Cr-Commit-Position: refs/heads/master@{#17353}
2017-03-23 07:51:11 +00:00
kjellander
1372291654 MB: Add low_bandwidth_audio_test to isolate map.
This is needed for the test to be possible to run on Swarming.

BUG=webrtc:7229
NOTRY=True
TBR=ehmaldonado@webrtc.org

Review-Url: https://codereview.webrtc.org/2761213005
Cr-Commit-Position: refs/heads/master@{#17344}
2017-03-22 15:02:38 +00:00
ehmaldonado
e55f91ce47 MB: Add webrtc_perf_tests to gn_isolate_map.pyl
BUG=chromium:687890
NOTRY=True

Review-Url: https://codereview.webrtc.org/2766513006
Cr-Commit-Position: refs/heads/master@{#17340}
2017-03-22 12:40:14 +00:00
philipel
e828c9690a Probing EndToEndTests.
Add tests for inital probing and mid-call probing by reconfiguring max bitrate.

BUG=none

Review-Url: https://codereview.webrtc.org/2760623002
Cr-Commit-Position: refs/heads/master@{#17316}
2017-03-21 10:24:27 +00:00
solenberg
61c703118c Remove obsolete valgrind/MSAN suppressions.
BUG=webrtc:3827,webrtc:6784,webrtc:5988
NOTRY=True

Review-Url: https://codereview.webrtc.org/2758943002
Cr-Commit-Position: refs/heads/master@{#17307}
2017-03-20 11:29:09 +00:00
kjellander
8430825856 Roll chromium_revision 0036d9b08e..2d05f4450c (457220:457366)
Reverting MB changes from https://codereview.webrtc.org/2755433005/
since https://codereview.chromium.org/2695963003 was reverted.

Change log: 0036d9b08e..2d05f4450c
Full diff: 0036d9b08e..2d05f4450c

Changed dependencies:
* src/base: 921d4dc4be..536da69816
* src/build: 15d5fcab1c..81c2772699
* src/ios: 6f28a4ab1b..bee9511bdb
* src/testing: 3cc4ea5920..6d32ea1500
* src/third_party: 95b8b082f7..eccad07478
* src/third_party/catapult: 76b86f523b..faf60eb37f
* src/tools: 04c6d654f7..b06789b11a
DEPS diff: 0036d9b08e..2d05f4450c/DEPS

No update to Clang.

TBR=
BUG=None
NOTRY=True

Review-Url: https://codereview.webrtc.org/2753773005
Cr-Commit-Position: refs/heads/master@{#17268}
2017-03-16 08:35:09 +00:00
kjellander
9f8a566316 Roll chromium_revision 981ff3850e..99c1f4221e (456928:457015)
MB was updated to accomodate changes in https://codereview.chromium.org/2695963003

Change log: 981ff3850e..99c1f4221e
Full diff: 981ff3850e..99c1f4221e

Changed dependencies:
* src/base: be5cf86ede..6d7c22c4f5
* src/build: 2744073131..e8b5e58534
* src/ios: 65ada1572f..8d1f4a15e6
* src/testing: 3d76f6cb4c..d6eb1e0a11
* src/third_party: 779bb26879..24999c043d
* src/tools: f2d0d63fdc..2ffeda5cdc
DEPS diff: 981ff3850e..99c1f4221e/DEPS

No update to Clang.

TBR=
BUG=None
NOTRY=True

Review-Url: https://codereview.webrtc.org/2755433005
Cr-Commit-Position: refs/heads/master@{#17238}
2017-03-15 09:31:11 +00:00
VladimirTechMan
7b188e8fbb Add flag to clean up temporary results after building iOS Framework or static lib
The --purify flag can now be passed to remove the temporary
files and directories created while building the iOS Framework or static
library. That way, only the final result(s) are taking up space in the
output folder.

BUG=None
NOTRY=True

Review-Url: https://codereview.webrtc.org/2740923003
Cr-Commit-Position: refs/heads/master@{#17224}
2017-03-14 10:12:35 +00:00
kthelgason
96feb2ac1c Update licence generation script after GYP->GN migration.
BUG=webrtc:6372

Review-Url: https://codereview.webrtc.org/2735173002
Cr-Commit-Position: refs/heads/master@{#17212}
2017-03-13 15:05:59 +00:00
kjellander
94f4d9effc Revert of PyLint fixes for tools-webrtc and webrtc/tools (patchset #3 id:40001 of https://codereview.webrtc.org/2736233003/ )
Reason for revert:
Fails video quality tests in Chrome:  http://build.chromium.org/p/chromium.webrtc.fyi/builders/Win10%20Tester/builds/6568
I should have looked more closer at those :(

Original issue's description:
> PyLint fixes for tools-webrtc and webrtc/tools
>
> Fix a lot of errors before bringing in the new config in
> https://codereview.webrtc.org/2737963003/
>
> BUG=webrtc:7303
> NOTRY=True
>
> Review-Url: https://codereview.webrtc.org/2736233003
> Cr-Commit-Position: refs/heads/master@{#17137}
> Committed: f5318e1f39

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

Review-Url: https://codereview.webrtc.org/2737233003
Cr-Commit-Position: refs/heads/master@{#17142}
2017-03-09 14:09:33 +00:00
kjellander
f5318e1f39 PyLint fixes for tools-webrtc and webrtc/tools
Fix a lot of errors before bringing in the new config in
https://codereview.webrtc.org/2737963003/

BUG=webrtc:7303
NOTRY=True

Review-Url: https://codereview.webrtc.org/2736233003
Cr-Commit-Position: refs/heads/master@{#17137}
2017-03-09 10:26:46 +00:00
Henrik Kjellander
efff7c534d MB: Add android_experimental trybot configuration
Replaced the unused android_n6 config and changed it
to build Release for ARM 32-bit.

BUG=chromium:685222
NOTRY=True
TBR=ehmaldonado@webrtc.org

Review-Url: https://codereview.webrtc.org/2741653002 .
Cr-Commit-Position: refs/heads/master@{#17127}
2017-03-09 06:18:27 +00:00
ehmaldonado
41f8a88e4f Add AppRTCMobileTestStubbedVideoIO to gn_isolate_map.
This will make it possible for the test to run on swarming bots.

BUG=chromium:685222
R=kjellander@webrtc.org
NOTRY=True

Review-Url: https://codereview.webrtc.org/2731423004
Cr-Commit-Position: refs/heads/master@{#17113}
2017-03-08 12:22:36 +00:00
oprypin
3b2fb203fd Add PESQ precompiled tool for audio quality testing
BUG=webrtc:7229

Review-Url: https://codereview.webrtc.org/2715933003
Cr-Commit-Position: refs/heads/master@{#17055}
2017-03-06 10:23:34 +00:00
mbonadei
9660627c9d Reland of Setting is_component_build to false by default (patchset #1 id:1 of https://codereview.webrtc.org/2731703004/ )
Reason for revert:
Trying to fix this skipping the check if we are building webrtc within chromium.

Original issue's description:
> Revert of Setting is_component_build to false by default (patchset #5 id:80001 of https://codereview.webrtc.org/2728643003/ )
>
> Reason for revert:
> Breaks chrome rolls
>
> Original issue's description:
> > Setting is_component_build to false by default
> >
> > Webrtc does not support component builds so we want to override
> > the chromium default value (which can be true on debug builds if the
> > os is different from iOS).
> >
> > Please note that the user can set this value to true in two ways:
> >
> >  - using --args (e.g.: gn gen out/default --args='is_component_build=true'
> >  - changing the value in the args.gn file
> >
> > But in both cases the value will be ignored because we don't use the
> > 'component' template but we rely directly on 'rtc_static_library' and
> > 'rtc_shared_library'.
> >
> > BUG=webrtc:6975
> > NOTRY=True
> >
> > Review-Url: https://codereview.webrtc.org/2728643003
> > Cr-Commit-Position: refs/heads/master@{#17020}
> > Committed: 2cb3944ba7
>
> TBR=kjellander@webrtc.org,mbonadei@webrtc.org
> # Skipping CQ checks because original CL landed less than 1 days ago.
> NOPRESUBMIT=true
> NOTREECHECKS=true
> NOTRY=true
> BUG=webrtc:6975
>
> Review-Url: https://codereview.webrtc.org/2731703004
> Cr-Commit-Position: refs/heads/master@{#17025}
> Committed: 2d9e7685a5

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

Review-Url: https://codereview.webrtc.org/2729243003
Cr-Commit-Position: refs/heads/master@{#17027}
2017-03-04 03:41:59 +00:00
tommi
2d9e7685a5 Revert of Setting is_component_build to false by default (patchset #5 id:80001 of https://codereview.webrtc.org/2728643003/ )
Reason for revert:
Breaks chrome rolls

Original issue's description:
> Setting is_component_build to false by default
>
> Webrtc does not support component builds so we want to override
> the chromium default value (which can be true on debug builds if the
> os is different from iOS).
>
> Please note that the user can set this value to true in two ways:
>
>  - using --args (e.g.: gn gen out/default --args='is_component_build=true'
>  - changing the value in the args.gn file
>
> But in both cases the value will be ignored because we don't use the
> 'component' template but we rely directly on 'rtc_static_library' and
> 'rtc_shared_library'.
>
> BUG=webrtc:6975
> NOTRY=True
>
> Review-Url: https://codereview.webrtc.org/2728643003
> Cr-Commit-Position: refs/heads/master@{#17020}
> Committed: 2cb3944ba7

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

Review-Url: https://codereview.webrtc.org/2731703004
Cr-Commit-Position: refs/heads/master@{#17025}
2017-03-04 00:15:01 +00:00
mbonadei
2cb3944ba7 Setting is_component_build to false by default
Webrtc does not support component builds so we want to override
the chromium default value (which can be true on debug builds if the
os is different from iOS).

Please note that the user can set this value to true in two ways:

 - using --args (e.g.: gn gen out/default --args='is_component_build=true'
 - changing the value in the args.gn file

But in both cases the value will be ignored because we don't use the
'component' template but we rely directly on 'rtc_static_library' and
'rtc_shared_library'.

BUG=webrtc:6975
NOTRY=True

Review-Url: https://codereview.webrtc.org/2728643003
Cr-Commit-Position: refs/heads/master@{#17020}
2017-03-03 19:36:37 +00:00
sakal
e7b8c3759b Fix perf_setup.sh for zsh.
BUG=None
NOTRY=True

Review-Url: https://codereview.webrtc.org/2724963005
Cr-Commit-Position: refs/heads/master@{#16994}
2017-03-03 08:04:11 +00:00
deadbeef
dc9200e314 Adding YouCompleteMe config for WebRTC.
Mostly just copied from Chromium, replacing instances of "chromium" with
"webrtc".

BUG=None
NOTRY=True

Review-Url: https://codereview.webrtc.org/2725233002
Cr-Commit-Position: refs/heads/master@{#16988}
2017-03-03 05:48:39 +00:00
VladimirTechMan
4cbe286252 Minor correction to the help printout, to reflect the actual behaviour
Just a small update to the embedded description of the script outcome,
to match the actual situation, after a quick sync-up at:

https://codereview.webrtc.org/2712263002/

NOTRY=True
BUG=None

Review-Url: https://codereview.webrtc.org/2715363003
Cr-Commit-Position: refs/heads/master@{#16947}
2017-03-01 15:08:31 +00:00
kthelgason
2892244801 Reland of Do not produce dSYM file for the iOS Frameworks with bitcode (patchset #1 id:1 of https://codereview.webrtc.org/2719773002/ )
Reason for revert:
Fixing issues with the framework builder.

Original issue's description:
> Revert of Do not produce dSYM file for the iOS Frameworks with bitcode (patchset #2 id:20001 of https://codereview.webrtc.org/2705163007/ )
>
> Reason for revert:
> Looks like this caused the iOS API Framework Builder to fail.
>
> https://build.chromium.org/p/client.webrtc/builders/iOS%20API%20Framework%20Builder/builds/3487/steps/zip%20archive/logs/stdio
>
> Zipping /b/rr/tmpkIyP1e/w/webrtc_ios_api_framework.zip...
> Traceback (most recent call last):
>   File "/b/rr/tmpkIyP1e/rw/checkout/scripts/slave/recipe_modules/zip/resources/zip.py", line 144, in <module>
>     sys.exit(main())
>   File "/b/rr/tmpkIyP1e/rw/checkout/scripts/slave/recipe_modules/zip/resources/zip.py", line 130, in main
>     exit_code = zip_with_subprocess(root, output, entries)
>   File "/b/rr/tmpkIyP1e/rw/checkout/scripts/slave/recipe_modules/zip/resources/zip.py", line 43, in zip_with_subprocess
>     assert os.path.isdir(path), path
> AssertionError: /b/c/b/iOS_API_Framework_Builder/src/out_ios_libs/WebRTC.dSYM/
> step returned non-zero exit code: 1
> @@@STEP_FAILURE@@@
>
> Original issue's description:
> > Do not produce dSYM file for the iOS Frameworks with bitcode
> >
> > Though dSYM files can be generated when building applications or libraries
> > with bitcode. They cannot be used to symbolicate crash reports from
> > applications. Instead, developers need to grab the real dSYM files, which
> > are generated for each specific device type after uploading an iOS / tvOS
> > application to App Store (or to a device using Xcode). Apple clearly warns
> > about it in its documentation:
> >
> > https://developer.apple.com/library/content/technotes/tn2151/_index.html#//apple_ref/doc/uid/DTS40008184-CH1-SYMBOLICATION-BITCODE
> >
> > With that in mind, I believe that it would be better to not confuse
> > developers by giving them dSYM files that are not very helpful with
> > the bitcode-enabled framework. Thus, proposing the following modification
> > to the building script, to generate dSYM by default only without
> > the bitcode option. However, if some developers still want to get
> > the dSYM files as a build-process artifact, when enabling bitcode,
> > they can explicitly add --extra-gn-args enable_dsyms=true to the script.
> >
> > Let me know if it lgty.
> >
> > NOTRY=True
> > BUG=None
> >
> > Review-Url: https://codereview.webrtc.org/2705163007
> > Cr-Commit-Position: refs/heads/master@{#16836}
> > Committed: d74517c52a
>
> TBR=kjellander@webrtc.org,kthelgason@webrtc.org,VladimirTechMan@gmail.com
> # Not skipping CQ checks because original CL landed more than 1 days ago.
> BUG=None
> NOTRY=True
>
> Review-Url: https://codereview.webrtc.org/2719773002
> Cr-Commit-Position: refs/heads/master@{#16844}
> Committed: da00077cfa

TBR=kjellander@webrtc.org,vladimirtechman@gmail.com,tommi@webrtc.org
NOTRY=true
BUG=None

Review-Url: https://codereview.webrtc.org/2718983002
Cr-Commit-Position: refs/heads/master@{#16924}
2017-02-28 23:33:26 +00:00
henrika
c6106f4102 Adds profiling support for non-rooted devices.
NOTRY=TRUE
TBR=kjellander
BUG=NONE

Review-Url: https://codereview.webrtc.org/2720613008
Cr-Commit-Position: refs/heads/master@{#16901}
2017-02-28 13:55:44 +00:00
henrika
86d01320eb Minor fixes for profiling - part III
Sorry for all small changes. I tried the scripts on a clean device and
realized that some parts had worked before because files existed on the
device already. Should be OK now.

NOTRY=TRUE
TBR=kjellander
BUG=NONE

Review-Url: https://codereview.webrtc.org/2718103002
Cr-Commit-Position: refs/heads/master@{#16874}
2017-02-27 15:36:45 +00:00
henrika
e71efab73d Minor fix in profiling script, part 2.
Ensures that perf_update works after inital perf_setup.sh call.

NOTRY=TRUE
TBR=kjellander
BUG=NONE

Review-Url: https://codereview.webrtc.org/2719033002
Cr-Commit-Position: refs/heads/master@{#16868}
2017-02-27 13:44:15 +00:00
henrika
19854a0053 Trivial fix in profiling scripts.
NOTRY=TRUE
TBR=kjellander
BUG=NONE

Review-Url: https://codereview.webrtc.org/2723493003
Cr-Commit-Position: refs/heads/master@{#16861}
2017-02-27 13:07:59 +00:00
Henrik Kjellander
98257cf250 Add memcheck suppression file for ortc_unittests to isolates.
BUG=webrtc:7249, webrtc:7248
TBR=ehmaldonado@webrtc.org

Review-Url: https://codereview.webrtc.org/2721533002 .
Cr-Commit-Position: refs/heads/master@{#16851}
2017-02-27 06:51:18 +00:00
tommi
da00077cfa Revert of Do not produce dSYM file for the iOS Frameworks with bitcode (patchset #2 id:20001 of https://codereview.webrtc.org/2705163007/ )
Reason for revert:
Looks like this caused the iOS API Framework Builder to fail.

https://build.chromium.org/p/client.webrtc/builders/iOS%20API%20Framework%20Builder/builds/3487/steps/zip%20archive/logs/stdio

Zipping /b/rr/tmpkIyP1e/w/webrtc_ios_api_framework.zip...
Traceback (most recent call last):
  File "/b/rr/tmpkIyP1e/rw/checkout/scripts/slave/recipe_modules/zip/resources/zip.py", line 144, in <module>
    sys.exit(main())
  File "/b/rr/tmpkIyP1e/rw/checkout/scripts/slave/recipe_modules/zip/resources/zip.py", line 130, in main
    exit_code = zip_with_subprocess(root, output, entries)
  File "/b/rr/tmpkIyP1e/rw/checkout/scripts/slave/recipe_modules/zip/resources/zip.py", line 43, in zip_with_subprocess
    assert os.path.isdir(path), path
AssertionError: /b/c/b/iOS_API_Framework_Builder/src/out_ios_libs/WebRTC.dSYM/
step returned non-zero exit code: 1
@@@STEP_FAILURE@@@

Original issue's description:
> Do not produce dSYM file for the iOS Frameworks with bitcode
>
> Though dSYM files can be generated when building applications or libraries
> with bitcode. They cannot be used to symbolicate crash reports from
> applications. Instead, developers need to grab the real dSYM files, which
> are generated for each specific device type after uploading an iOS / tvOS
> application to App Store (or to a device using Xcode). Apple clearly warns
> about it in its documentation:
>
> https://developer.apple.com/library/content/technotes/tn2151/_index.html#//apple_ref/doc/uid/DTS40008184-CH1-SYMBOLICATION-BITCODE
>
> With that in mind, I believe that it would be better to not confuse
> developers by giving them dSYM files that are not very helpful with
> the bitcode-enabled framework. Thus, proposing the following modification
> to the building script, to generate dSYM by default only without
> the bitcode option. However, if some developers still want to get
> the dSYM files as a build-process artifact, when enabling bitcode,
> they can explicitly add --extra-gn-args enable_dsyms=true to the script.
>
> Let me know if it lgty.
>
> NOTRY=True
> BUG=None
>
> Review-Url: https://codereview.webrtc.org/2705163007
> Cr-Commit-Position: refs/heads/master@{#16836}
> Committed: d74517c52a

TBR=kjellander@webrtc.org,kthelgason@webrtc.org,VladimirTechMan@gmail.com
# Not skipping CQ checks because original CL landed more than 1 days ago.
BUG=None
NOTRY=True

Review-Url: https://codereview.webrtc.org/2719773002
Cr-Commit-Position: refs/heads/master@{#16844}
2017-02-26 14:39:07 +00:00
deadbeef
e814a0dee0 Adding "adapter" ORTC objects on top of ChannelManager/BaseChannel/etc.
This CL adds the following interfaces:
* RtpTransportController
* RtpTransport
* RtpSender
* RtpReceiver

They're implemented on top of the "BaseChannel" object, which is normally used
in a PeerConnection, and roughly corresponds to an SDP "m=" section. As a result
of this, there are several limitations:

* You can only have one of each type of sender and receiver (audio/video) on top
  of the same transport controller.
* The sender/receiver with the same media type must use the same RTP transport.
* You can't change the transport after creating the sender or receiver.
* Some of the parameters aren't supported.

Later, these "adapter" objects will be gradually replaced by real objects that don't
have these limitations, as "BaseChannel", "MediaChannel" and related code is
restructured. In this CL, we essentially have:

ORTC adapter objects -> BaseChannel -> Media engine
PeerConnection -> BaseChannel -> Media engine

And later we hope to have simply:

PeerConnection -> "Real" ORTC objects -> Media engine

See the linked bug for more context.

BUG=webrtc:7013
TBR=stefan@webrtc.org

Review-Url: https://codereview.webrtc.org/2675173003
Cr-Commit-Position: refs/heads/master@{#16842}
2017-02-26 02:15:09 +00:00
VladimirTechMan
d74517c52a Do not produce dSYM file for the iOS Frameworks with bitcode
Though dSYM files can be generated when building applications or libraries
with bitcode. They cannot be used to symbolicate crash reports from
applications. Instead, developers need to grab the real dSYM files, which
are generated for each specific device type after uploading an iOS / tvOS
application to App Store (or to a device using Xcode). Apple clearly warns
about it in its documentation:

https://developer.apple.com/library/content/technotes/tn2151/_index.html#//apple_ref/doc/uid/DTS40008184-CH1-SYMBOLICATION-BITCODE

With that in mind, I believe that it would be better to not confuse
developers by giving them dSYM files that are not very helpful with
the bitcode-enabled framework. Thus, proposing the following modification
to the building script, to generate dSYM by default only without
the bitcode option. However, if some developers still want to get
the dSYM files as a build-process artifact, when enabling bitcode,
they can explicitly add --extra-gn-args enable_dsyms=true to the script.

Let me know if it lgty.

NOTRY=True
BUG=None

Review-Url: https://codereview.webrtc.org/2705163007
Cr-Commit-Position: refs/heads/master@{#16836}
2017-02-25 10:08:27 +00:00
henrika
7a1798d637 Adding support for native profiling of AppRTCMobile.
See perf_setup.sh for instructions.

NOTRY=TRUE
BUG=NONE

Review-Url: https://codereview.webrtc.org/2705063002
Cr-Commit-Position: refs/heads/master@{#16826}
2017-02-24 12:53:50 +00:00
deadbeef
e7cf1a7a7b Clobber to fix errors from landing rtc_api_unittests CL.
rtc_api_unittests turned from a test executable into a directory which
caused some problems.

Relevant CL: https://codereview.webrtc.org/2709573003/

BUG=chromium:694721
TBR=kjellander@webrtc.org
NOTRY=True

Review-Url: https://codereview.webrtc.org/2715923003
Cr-Commit-Position: refs/heads/master@{#16821}
2017-02-24 09:41:09 +00:00
Henrik Kjellander
50956f3f47 Landmine to unblock https://codereview.webrtc.org/2709573003/
BUG=None
TBR=deadbeef@webrtc.org

Review-Url: https://codereview.webrtc.org/2715803003 .
Cr-Commit-Position: refs/heads/master@{#16817}
2017-02-24 08:18:55 +00:00
kjellander
25ae766103 Add MB and iOS JSON entries for ortc_unittests.
BUG=webrtc:7013
TBR=ehmaldonado@webrtc.org
NOTRY=True

Review-Url: https://codereview.webrtc.org/2706403007
Cr-Commit-Position: refs/heads/master@{#16816}
2017-02-24 07:01:54 +00:00
deadbeef
2b62fa218c Adding suppression for race in stats collector test.
See bug for more info. This race is benign, and only exists because a
method is virtual so it can be mocked for testing.

BUG=webrtc:7221
NOTRY=True
TBR=hbos@webrtc.org

Review-Url: https://codereview.webrtc.org/2711783005
Cr-Commit-Position: refs/heads/master@{#16813}
2017-02-24 03:05:39 +00:00
deadbeef
162cb53e7b Making AsyncInvoker destructor thread-safe.
The documentation for AsyncInvoker states that it owns the lifetime of
calls, and when its destructor is called, all in-flight calls are
cancelled or finish executing. The "cancelled" part is working, but if
a call is in the middle of executing, the destructor does *not* wait.

This is fixed by keeping a count of pending invocations, which is
decremented when a call is either cleared from a message queue or
finishes executing.

BUG=webrtc:3914, webrtc:3911

Review-Url: https://codereview.webrtc.org/2694723004
Cr-Commit-Position: refs/heads/master@{#16811}
2017-02-24 01:10:07 +00:00
Henrik Kjellander
47f0799059 Landmine to possibly resolve iOS build problem
This is a speculative change to see if it solves the iOS compile
errors seen in https://codereview.webrtc.org/2709573003/

BUG=None
TBR=deadbeef@webrtc.org

Review-Url: https://codereview.webrtc.org/2705333003 .
Cr-Commit-Position: refs/heads/master@{#16767}
2017-02-22 09:17:58 +00:00
philipel
3399927a09 Disable EndToEndTest.VerifyNackStats on linux memcheck.
BUG=webrtc:7145
NOTRY=True

Review-Url: https://codereview.webrtc.org/2698223002
Cr-Commit-Position: refs/heads/master@{#16644}
2017-02-16 13:38:15 +00:00