webrtc/pc/test
Steve Anton 3871f6f9d4 Rewrite StatsCollector tests to use a fake PeerConnection
This removes use of the MockPeerConnection and replaces it with a fake
implementation of PeerConnection tailored to the needs of
StatsCollector and (soon) RTCStatsCollector.

The stats collector tests really care about the PeerConnection only so
much as to set up scenarios to test the StatsCollector with. Since each
scenario (e.g., adding a track) affects the results of multiple methods
(e.g., voice_channel and SessionStats), the tests were needing to
manually configure these dependent operations which was tedious, error
prone and difficult to change. The new fake lets the tests express the
scenario more concisely (e.g., AddVoiceChannel) while filling in all
the affected methods on the PeerConnection automatically. Furthermore,
this can be expanded to use with the RTCStatsCollector and to cover
more scenarios in the future.

Bug: webrtc:8764
Change-Id: I195074174684256543f7cdc27c3834e5ff0b4702
Reviewed-on: https://webrtc-review.googlesource.com/43521
Commit-Queue: Steve Anton <steveanton@webrtc.org>
Reviewed-by: Henrik Boström <hbos@webrtc.org>
Reviewed-by: Peter Thatcher <pthatcher@webrtc.org>
Reviewed-by: Taylor Brandstetter <deadbeef@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#21778}
2018-01-26 19:40:02 +00:00
..
androidtestinitializer.cc Clean up dependencies of peerconnection_unittest. 2017-09-15 12:51:00 +00:00
androidtestinitializer.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
DEPS Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
fakeaudiocapturemodule_unittest.cc Reland "Remove AudioDeviceObserver and make ADM not inherit from the Module interface." 2017-10-04 11:31:18 +00:00
fakeaudiocapturemodule.cc Removes usage of AGC APIs in the ADM. 2017-12-13 16:32:21 +00:00
fakeaudiocapturemodule.h Removes usage of AGC APIs in the ADM. 2017-12-13 16:32:21 +00:00
fakedatachannelprovider.h Stop using LOG macros in favor of RTC_ prefixed macros. 2017-11-09 11:56:32 +00:00
fakepeerconnectionbase.h Add FakePeerConnectionBase 2018-01-25 01:04:06 +00:00
fakepeerconnectionforstats.h Rewrite StatsCollector tests to use a fake PeerConnection 2018-01-26 19:40:02 +00:00
fakeperiodicvideocapturer.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
fakertccertificategenerator.h Rewrite WebRtcSession DTLS/SDES crypto tests as PeerConnection tests 2017-10-06 18:50:24 +00:00
fakesctptransport.h Rewrite WebRtcSession data channel tests as PeerConnection tests 2017-10-23 19:13:47 +00:00
faketransportcontroller.h Replace cricket::ContentAction with webrtc::SdpType 2017-12-06 19:40:16 +00:00
fakevideotrackrenderer.h Enable cpplint in pc/ 2017-10-30 18:08:29 +00:00
fakevideotracksource.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
mock_datachannel.h Enable cpplint in pc/ 2017-10-30 18:08:29 +00:00
mock_peerconnection.h Add FakePeerConnectionBase 2018-01-25 01:04:06 +00:00
mockpeerconnectionobservers.h Fire OnAddTrack when Unified Plan is enabled 2018-01-11 01:43:00 +00:00
peerconnectiontestwrapper.cc Parameterize PeerConnection end to end tests for Unified Plan 2018-01-25 04:03:18 +00:00
peerconnectiontestwrapper.h Parameterize PeerConnection end to end tests for Unified Plan 2018-01-25 04:03:18 +00:00
rtcstatsobtainer.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
testsdpstrings.h Enable cpplint in pc/ 2017-10-30 18:08:29 +00:00