Updating RTCPeerConnectionHandlerMock after r159769
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 28 Nov 2013 15:15:49 +0000 (15:15 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 28 Nov 2013 15:15:49 +0000 (15:15 +0000)
https://bugs.webkit.org/show_bug.cgi?id=124947

Patch by Thiago de Barros Lacerda <thiago.lacerda@openbossa.org> on 2013-11-28
Reviewed by Philippe Normand.

Adding its create function back, in order to run RTCPeerConnection LayoutTests.

No new tests needed.

* platform/mock/RTCPeerConnectionHandlerMock.cpp:
(WebCore::RTCPeerConnectionHandlerMock::create):
* platform/mock/RTCPeerConnectionHandlerMock.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@159840 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/mock/RTCPeerConnectionHandlerMock.cpp
Source/WebCore/platform/mock/RTCPeerConnectionHandlerMock.h

index f8a0bb3..2c7c19e 100644 (file)
@@ -1,3 +1,18 @@
+2013-11-28  Thiago de Barros Lacerda  <thiago.lacerda@openbossa.org>
+
+        Updating RTCPeerConnectionHandlerMock after r159769
+        https://bugs.webkit.org/show_bug.cgi?id=124947
+
+        Reviewed by Philippe Normand.
+
+        Adding its create function back, in order to run RTCPeerConnection LayoutTests.
+
+        No new tests needed.
+
+        * platform/mock/RTCPeerConnectionHandlerMock.cpp:
+        (WebCore::RTCPeerConnectionHandlerMock::create):
+        * platform/mock/RTCPeerConnectionHandlerMock.h:
+
 2013-11-27  Gustavo Noronha Silva  <gustavo.noronha@collabora.com>
 
         [GTK] Support custom types for drag and drop data
index 195bd49..eba5755 100644 (file)
 
 namespace WebCore {
 
+std::unique_ptr<RTCPeerConnectionHandler> RTCPeerConnectionHandlerMock::create(RTCPeerConnectionHandlerClient* client)
+{
+    return std::make_unique<RTCPeerConnectionHandlerMock>(client);
+}
+
 RTCPeerConnectionHandlerMock::RTCPeerConnectionHandlerMock(RTCPeerConnectionHandlerClient* client)
     : m_client(client)
 {
index de1fff3..f285d7a 100644 (file)
@@ -36,6 +36,8 @@ namespace WebCore {
 
 class RTCPeerConnectionHandlerMock FINAL : public RTCPeerConnectionHandler, public TimerEventBasedMock {
 public:
+    static std::unique_ptr<RTCPeerConnectionHandler> create(RTCPeerConnectionHandlerClient*);
+
     virtual ~RTCPeerConnectionHandlerMock() { }
 
     virtual bool initialize(PassRefPtr<RTCConfiguration>, PassRefPtr<MediaConstraints>) OVERRIDE;
@@ -55,7 +57,6 @@ public:
     virtual std::unique_ptr<RTCDTMFSenderHandler> createDTMFSender(PassRefPtr<MediaStreamSource>) OVERRIDE;
     virtual void stop() OVERRIDE;
 
-protected:
     explicit RTCPeerConnectionHandlerMock(RTCPeerConnectionHandlerClient*);
 
 private: