7 Commits

Author SHA1 Message Date
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
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
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
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
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
Henrik Kjellander
284acf6eeb Disable VideoSendStreamTest.RemoveOverheadFromBandwidth for memcheck
This fails so often it's blocking rolling DEPS.

BUG=webrtc:6886
TBR=minyue@webrtc.org

Review-Url: https://codereview.webrtc.org/2655293004 .
Cr-Commit-Position: refs/heads/master@{#16312}
2017-01-27 07:31:49 +00:00
kjellander
afd5494455 Move tools/valgrind-webrtc -> tools-webrtc/valgrind
The WebRTC valgrind wrapper scripts needs to be moved in order to
unlock us from depending on a Chromium checkout.

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

Review-Url: https://codereview.webrtc.org/2578093002
Cr-Commit-Position: refs/heads/master@{#15662}
2016-12-17 20:21:39 +00:00