Changeset 126341 in webkit
- Timestamp:
- Aug 22, 2012 12:55:34 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r126340 r126341 1 2012-08-22 Tommy Widenflycht <tommyw@google.com> 2 3 [chromium] MediaStream API: Add MockWebRTCPeerConnectionHandler 4 https://bugs.webkit.org/show_bug.cgi?id=93091 5 6 Reviewed by Adam Barth. 7 8 Fixing a FIXME that the patch obsoletes. 9 10 Covered by existing tests. 11 12 * platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.cpp: 13 (WebCore::RTCPeerConnectionHandlerChromium::initialize): 14 1 15 2012-08-22 Eric Penner <epenner@google.com> 2 16 -
trunk/Source/WebCore/platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.cpp
r124460 r126341 57 57 { 58 58 m_webHandler = adoptPtr(WebKit::Platform::current()->createRTCPeerConnectionHandler(this)); 59 // FIXME: Change the default value to false once the mock WebRTCPeerConnectionHandler has landed. 60 return m_webHandler ? m_webHandler->initialize() : true; 59 return m_webHandler ? m_webHandler->initialize() : false; 61 60 } 62 61 -
trunk/Tools/ChangeLog
r126334 r126341 1 2012-08-22 Tommy Widenflycht <tommyw@google.com> 2 3 [chromium] MediaStream API: Add MockWebRTCPeerConnectionHandler 4 https://bugs.webkit.org/show_bug.cgi?id=93091 5 6 Reviewed by Adam Barth. 7 8 Add a skeleton MockWebRTCPeerConnectionHandler to DumpRenderTree, 9 to complete the infrastructure for RTCPeerConnection. 10 11 * DumpRenderTree/DumpRenderTree.gypi: 12 * DumpRenderTree/chromium/MockWebKitPlatformSupport.cpp: 13 (MockWebKitPlatformSupport::createRTCPeerConnectionHandler): 14 * DumpRenderTree/chromium/MockWebKitPlatformSupport.h: 15 (MockWebKitPlatformSupport): 16 * DumpRenderTree/chromium/MockWebMediaStreamCenter.cpp: 17 * DumpRenderTree/chromium/MockWebMediaStreamCenter.h: 18 * DumpRenderTree/chromium/MockWebRTCPeerConnectionHandler.cpp: Copied from Tools/DumpRenderTree/chromium/MockWebKitPlatformSupport.h. 19 (MockWebRTCPeerConnectionHandler::MockWebRTCPeerConnectionHandler): 20 (MockWebRTCPeerConnectionHandler::initialize): 21 * DumpRenderTree/chromium/MockWebRTCPeerConnectionHandler.h: Copied from Tools/DumpRenderTree/chromium/MockWebKitPlatformSupport.h. 22 (WebKit): 23 (MockWebRTCPeerConnectionHandler): 24 (MockWebRTCPeerConnectionHandler::MockWebRTCPeerConnectionHandler): 25 1 26 2012-08-21 Ryosuke Niwa <rniwa@webkit.org> 2 27 -
trunk/Tools/DumpRenderTree/DumpRenderTree.gypi
r125508 r126341 19 19 'chromium/MockWebPrerenderingSupport.cpp', 20 20 'chromium/MockWebPrerenderingSupport.h', 21 'chromium/MockWebRTCPeerConnectionHandler.cpp', 22 'chromium/MockWebRTCPeerConnectionHandler.h', 21 23 'chromium/MockWebSpeechInputController.cpp', 22 24 'chromium/MockWebSpeechInputController.h', -
trunk/Tools/DumpRenderTree/chromium/MockWebKitPlatformSupport.cpp
r124650 r126341 33 33 34 34 #include "MockWebMediaStreamCenter.h" 35 #include "MockWebRTCPeerConnectionHandler.h" 35 36 #include <wtf/Assertions.h> 36 37 #include <wtf/PassOwnPtr.h> … … 64 65 return m_mockMediaStreamCenter.get(); 65 66 } 67 68 WebRTCPeerConnectionHandler* MockWebKitPlatformSupport::createRTCPeerConnectionHandler(WebRTCPeerConnectionHandlerClient* client) 69 { 70 return new MockWebRTCPeerConnectionHandler(client); 71 } 66 72 #endif // ENABLE(MEDIA_STREAM) -
trunk/Tools/DumpRenderTree/chromium/MockWebKitPlatformSupport.h
r124650 r126341 45 45 #if ENABLE(MEDIA_STREAM) 46 46 virtual WebKit::WebMediaStreamCenter* createMediaStreamCenter(WebKit::WebMediaStreamCenterClient*) OVERRIDE; 47 virtual WebKit::WebRTCPeerConnectionHandler* createRTCPeerConnectionHandler(WebKit::WebRTCPeerConnectionHandlerClient*) OVERRIDE; 47 48 #endif // ENABLE(MEDIA_STREAM) 48 49 -
trunk/Tools/DumpRenderTree/chromium/MockWebMediaStreamCenter.cpp
r124650 r126341 34 34 #include "MockWebMediaStreamCenter.h" 35 35 36 #include "platform/WebICECandidateDescriptor.h"37 #include "platform/WebMediaStreamCenterClient.h"38 #include "platform/WebMediaStreamComponent.h"39 #include "platform/WebMediaStreamDescriptor.h"40 #include "platform/WebMediaStreamSource.h"41 #include "platform/WebMediaStreamSourcesRequest.h"42 #include "platform/WebSessionDescriptionDescriptor.h"43 #include "platform/WebVector.h"36 #include <public/WebICECandidateDescriptor.h> 37 #include <public/WebMediaStreamCenterClient.h> 38 #include <public/WebMediaStreamComponent.h> 39 #include <public/WebMediaStreamDescriptor.h> 40 #include <public/WebMediaStreamSource.h> 41 #include <public/WebMediaStreamSourcesRequest.h> 42 #include <public/WebSessionDescriptionDescriptor.h> 43 #include <public/WebVector.h> 44 44 45 45 using namespace WebKit; -
trunk/Tools/DumpRenderTree/chromium/MockWebMediaStreamCenter.h
r124650 r126341 33 33 34 34 #if ENABLE(MEDIA_STREAM) 35 #include "platform/WebMediaStreamCenter.h"35 #include <public/WebMediaStreamCenter.h> 36 36 37 37 namespace WebKit { -
trunk/Tools/DumpRenderTree/chromium/MockWebRTCPeerConnectionHandler.cpp
r126340 r126341 29 29 */ 30 30 31 #i fndef MockWebKitPlatformSupport_h32 # define MockWebKitPlatformSupport_h31 #include "config.h" 32 #if ENABLE(MEDIA_STREAM) 33 33 34 #include <public/Platform.h> 35 #include <wtf/OwnPtr.h> 36 #include <wtf/PassOwnPtr.h> 34 #include "MockWebRTCPeerConnectionHandler.h" 37 35 38 class MockWebKitPlatformSupport : public WebKit::Platform { 39 public: 40 static PassOwnPtr<MockWebKitPlatformSupport> create(); 41 ~MockWebKitPlatformSupport(); 36 #include <public/WebRTCPeerConnectionHandlerClient.h> 42 37 43 virtual void cryptographicallyRandomValues(unsigned char* buffer, size_t length) OVERRIDE;38 using namespace WebKit; 44 39 45 #if ENABLE(MEDIA_STREAM) 46 virtual WebKit::WebMediaStreamCenter* createMediaStreamCenter(WebKit::WebMediaStreamCenterClient*) OVERRIDE; 40 MockWebRTCPeerConnectionHandler::MockWebRTCPeerConnectionHandler(WebRTCPeerConnectionHandlerClient* client) 41 { 42 } 43 44 bool MockWebRTCPeerConnectionHandler::initialize() 45 { 46 return true; 47 } 48 47 49 #endif // ENABLE(MEDIA_STREAM) 48 49 private:50 MockWebKitPlatformSupport();51 52 #if ENABLE(MEDIA_STREAM)53 OwnPtr<WebKit::WebMediaStreamCenter> m_mockMediaStreamCenter;54 #endif // ENABLE(MEDIA_STREAM)55 };56 57 #endif // MockWebKitPlatformSupport_h -
trunk/Tools/DumpRenderTree/chromium/MockWebRTCPeerConnectionHandler.h
r126340 r126341 29 29 */ 30 30 31 #ifndef MockWebKitPlatformSupport_h 32 #define MockWebKitPlatformSupport_h 33 34 #include <public/Platform.h> 35 #include <wtf/OwnPtr.h> 36 #include <wtf/PassOwnPtr.h> 37 38 class MockWebKitPlatformSupport : public WebKit::Platform { 39 public: 40 static PassOwnPtr<MockWebKitPlatformSupport> create(); 41 ~MockWebKitPlatformSupport(); 42 43 virtual void cryptographicallyRandomValues(unsigned char* buffer, size_t length) OVERRIDE; 31 #ifndef MockWebRTCPeerConnectionHandler_h 32 #define MockWebRTCPeerConnectionHandler_h 44 33 45 34 #if ENABLE(MEDIA_STREAM) 46 virtual WebKit::WebMediaStreamCenter* createMediaStreamCenter(WebKit::WebMediaStreamCenterClient*) OVERRIDE; 35 #include <public/WebRTCPeerConnectionHandler.h> 36 37 namespace WebKit { 38 class WebRTCPeerConnectionHandlerClient; 39 }; 40 41 class MockWebRTCPeerConnectionHandler : public WebKit::WebRTCPeerConnectionHandler { 42 public: 43 explicit MockWebRTCPeerConnectionHandler(WebKit::WebRTCPeerConnectionHandlerClient*); 44 45 virtual bool initialize() OVERRIDE; 46 47 private: 48 MockWebRTCPeerConnectionHandler() { } 49 }; 50 47 51 #endif // ENABLE(MEDIA_STREAM) 48 52 49 private: 50 MockWebKitPlatformSupport(); 53 #endif // MockWebRTCPeerConnectionHandler_h 51 54 52 #if ENABLE(MEDIA_STREAM)53 OwnPtr<WebKit::WebMediaStreamCenter> m_mockMediaStreamCenter;54 #endif // ENABLE(MEDIA_STREAM)55 };56 57 #endif // MockWebKitPlatformSupport_h
Note: See TracChangeset
for help on using the changeset viewer.