Changeset 213234 in webkit
- Timestamp:
- Mar 1, 2017, 11:30:29 AM (8 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r213230 r213234 1 2017-03-01 Alex Christensen <achristensen@webkit.org> 2 3 Don't call libwebrtc functions if libwebrtc.dylib doesn't exist while testing 4 https://bugs.webkit.org/show_bug.cgi?id=169045 5 <rdar://problem/30735413> 6 7 Reviewed by Youenn Fablet. 8 9 WebRTC tests fail instead of crashing now if libwebrtc.dylib is missing. 10 All other tests pass instead of crashing immediately when creating an Internals object. 11 12 * Modules/mediastream/RTCController.cpp: 13 (WebCore::RTCController::disableICECandidateFiltering): 14 (WebCore::RTCController::enableICECandidateFiltering): 15 * Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.cpp: 16 (WebCore::createLibWebRTCPeerConnectionBackend): 17 * testing/Internals.cpp: 18 (WebCore::Internals::enableMockMediaEndpoint): 19 (WebCore::Internals::emulateRTCPeerConnectionPlatformEvent): 20 (WebCore::Internals::useMockRTCPeerConnectionFactory): 21 * testing/Internals.h: 22 1 23 2017-03-01 Javier Fernandez <jfernandez@igalia.com> 2 24 -
trunk/Source/WebCore/Modules/mediastream/RTCController.cpp
r212745 r213234 28 28 #if ENABLE(WEB_RTC) 29 29 30 #include "LibWebRTCProvider.h" 30 31 #include "RTCPeerConnection.h" 31 32 … … 48 49 void RTCController::disableICECandidateFiltering() 49 50 { 51 if (!LibWebRTCProvider::webRTCAvailable()) 52 return; 53 50 54 m_shouldFilterICECandidates = false; 51 55 for (RTCPeerConnection& connection : m_peerConnections) … … 55 59 void RTCController::enableICECandidateFiltering() 56 60 { 61 if (!LibWebRTCProvider::webRTCAvailable()) 62 return; 63 57 64 m_shouldFilterICECandidates = true; 58 65 for (RTCPeerConnection& connection : m_peerConnections) -
trunk/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.cpp
r212338 r213234 46 46 static std::unique_ptr<PeerConnectionBackend> createLibWebRTCPeerConnectionBackend(RTCPeerConnection& peerConnection) 47 47 { 48 if (!LibWebRTCProvider::webRTCAvailable()) 49 return nullptr; 48 50 return std::make_unique<LibWebRTCPeerConnectionBackend>(peerConnection); 49 51 } -
trunk/Source/WebCore/testing/Internals.cpp
r213214 r213234 1139 1139 void Internals::enableMockMediaEndpoint() 1140 1140 { 1141 if (!LibWebRTCProvider::webRTCAvailable()) 1142 return; 1143 1141 1144 MediaEndpoint::create = MockMediaEndpoint::create; 1142 1145 } … … 1144 1147 void Internals::emulateRTCPeerConnectionPlatformEvent(RTCPeerConnection& connection, const String& action) 1145 1148 { 1149 if (!LibWebRTCProvider::webRTCAvailable()) 1150 return; 1151 1146 1152 connection.emulatePlatformEvent(action); 1147 1153 } … … 1149 1155 void Internals::useMockRTCPeerConnectionFactory(const String& testCase) 1150 1156 { 1157 if (!LibWebRTCProvider::webRTCAvailable()) 1158 return; 1159 1151 1160 #if USE(LIBWEBRTC) 1152 1161 Document* document = contextDocument(); -
trunk/Source/WebCore/testing/Internals.h
r213169 r213234 397 397 #if ENABLE(WEB_RTC) 398 398 void enableMockMediaEndpoint(); 399 void enableMockRTCPeerConnectionHandler();400 399 void emulateRTCPeerConnectionPlatformEvent(RTCPeerConnection&, const String& action); 401 400 void useMockRTCPeerConnectionFactory(const String&);
Note:
See TracChangeset
for help on using the changeset viewer.