Remove use of mock webrtc backend factory at injected bundle reset time
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 25 Jun 2017 18:06:06 +0000 (18:06 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 25 Jun 2017 18:06:06 +0000 (18:06 +0000)
commit60d40409314e0a032cc77909eb9e41cd1d5d1eb7
tree3bce43343dd5a9e0f938b244e0887b5399a0e3e1
parent3edfc82b2ab2e79a6566332a80f8dc06608c2bbc
Remove use of mock webrtc backend factory at injected bundle reset time
https://bugs.webkit.org/show_bug.cgi?id=173817

Patch by Youenn Fablet <youenn@apple.com> on 2017-06-25
Reviewed by Darin Adler.

Source/WebCore:

* testing/Internals.cpp:
(WebCore::Internals::resetToConsistentState): Resetting the peer connection backend.
* testing/MockLibWebRTCPeerConnection.cpp: Doing some clean-up
(WebCore::useRealRTCPeerConnectionFactory):
(WebCore::MockLibWebRTCPeerConnectionFactory::MockLibWebRTCPeerConnectionFactory):
(WebCore::MockLibWebRTCPeerConnectionFactory::CreatePeerConnection):
(WebCore::MockLibWebRTCPeerConnectionFactory::CreateVideoTrack):
(WebCore::MockLibWebRTCPeerConnectionFactory::CreateAudioTrack):
* testing/MockLibWebRTCPeerConnection.h:

LayoutTests:

Making some tests less flaky.

* TestExpectations:
* fast/mediastream/RTCPeerConnection-media-setup-two-dialogs-expected.txt:
* platform/mac/webrtc/captureCanvas-webrtc-software-encoder.html:
* webrtc/audio-peer-connection-webaudio.html:
* webrtc/captureCanvas-webrtc.html:
* webrtc/datachannel/bufferedAmountLowThreshold-default-expected.txt: Added.
* webrtc/datachannel/bufferedAmountLowThreshold-default.html: Added.
* webrtc/datachannel/bufferedAmountLowThreshold-expected.txt:
* webrtc/datachannel/bufferedAmountLowThreshold.html:
* webrtc/routines.js:
* webrtc/video-replace-muted-track.html:
* webrtc/video-unmute.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@218795 268f45cc-cd09-0410-ab3c-d52691b4dbfc
17 files changed:
LayoutTests/ChangeLog
LayoutTests/TestExpectations
LayoutTests/fast/mediastream/RTCPeerConnection-media-setup-two-dialogs-expected.txt
LayoutTests/platform/mac/webrtc/captureCanvas-webrtc-software-encoder.html
LayoutTests/webrtc/audio-peer-connection-webaudio.html
LayoutTests/webrtc/captureCanvas-webrtc.html
LayoutTests/webrtc/datachannel/bufferedAmountLowThreshold-default-expected.txt [new file with mode: 0644]
LayoutTests/webrtc/datachannel/bufferedAmountLowThreshold-default.html [new file with mode: 0644]
LayoutTests/webrtc/datachannel/bufferedAmountLowThreshold-expected.txt
LayoutTests/webrtc/datachannel/bufferedAmountLowThreshold.html
LayoutTests/webrtc/routines.js
LayoutTests/webrtc/video-replace-muted-track.html
LayoutTests/webrtc/video-unmute.html
Source/WebCore/ChangeLog
Source/WebCore/testing/Internals.cpp
Source/WebCore/testing/MockLibWebRTCPeerConnection.cpp
Source/WebCore/testing/MockLibWebRTCPeerConnection.h