Changeset 124628 in webkit
- Timestamp:
- Aug 3, 2012 11:17:59 AM (12 years ago)
- Location:
- trunk/Tools
- Files:
-
- 6 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r124625 r124628 1 2012-08-03 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-03 Hugo Parente Lima <hugo.lima@openbossa.org> 2 27 -
trunk/Tools/DumpRenderTree/DumpRenderTree.gypi
r124581 r124628 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
r123627 r124628 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 if (!m_mockRTCPeerConnectionHandler) 71 m_mockRTCPeerConnectionHandler = adoptPtr(new MockWebRTCPeerConnectionHandler(client)); 72 73 return m_mockRTCPeerConnectionHandler.get(); 74 } 66 75 #endif // ENABLE(MEDIA_STREAM) -
trunk/Tools/DumpRenderTree/chromium/MockWebKitPlatformSupport.h
r123627 r124628 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 … … 52 53 #if ENABLE(MEDIA_STREAM) 53 54 OwnPtr<WebKit::WebMediaStreamCenter> m_mockMediaStreamCenter; 55 OwnPtr<WebKit::WebRTCPeerConnectionHandler> m_mockRTCPeerConnectionHandler; 54 56 #endif // ENABLE(MEDIA_STREAM) 55 57 }; -
trunk/Tools/DumpRenderTree/chromium/MockWebMediaStreamCenter.cpp
r123627 r124628 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
r123627 r124628 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
r124627 r124628 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
r124627 r124628 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.