Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / content / renderer / media / mock_peer_connection_impl.h
index ca23116..0d7a847 100644 (file)
@@ -9,32 +9,33 @@
 
 #include "base/basictypes.h"
 #include "base/compiler_specific.h"
+#include "base/logging.h"
 #include "base/memory/scoped_ptr.h"
 #include "testing/gmock/include/gmock/gmock.h"
 #include "third_party/libjingle/source/talk/app/webrtc/peerconnectioninterface.h"
 
 namespace content {
 
-class MockMediaStreamDependencyFactory;
+class MockPeerConnectionDependencyFactory;
 class MockStreamCollection;
 
 class MockPeerConnectionImpl : public webrtc::PeerConnectionInterface {
  public:
-  explicit MockPeerConnectionImpl(MockMediaStreamDependencyFactory* factory);
+  explicit MockPeerConnectionImpl(MockPeerConnectionDependencyFactory* factory);
 
   // PeerConnectionInterface implementation.
-  virtual talk_base::scoped_refptr<webrtc::StreamCollectionInterface>
+  virtual rtc::scoped_refptr<webrtc::StreamCollectionInterface>
       local_streams() OVERRIDE;
-  virtual talk_base::scoped_refptr<webrtc::StreamCollectionInterface>
+  virtual rtc::scoped_refptr<webrtc::StreamCollectionInterface>
       remote_streams() OVERRIDE;
   virtual bool AddStream(
       webrtc::MediaStreamInterface* local_stream,
       const webrtc::MediaConstraintsInterface* constraints) OVERRIDE;
   virtual void RemoveStream(
       webrtc::MediaStreamInterface* local_stream) OVERRIDE;
-  virtual talk_base::scoped_refptr<webrtc::DtmfSenderInterface>
+  virtual rtc::scoped_refptr<webrtc::DtmfSenderInterface>
       CreateDtmfSender(webrtc::AudioTrackInterface* track) OVERRIDE;
-  virtual talk_base::scoped_refptr<webrtc::DataChannelInterface>
+  virtual rtc::scoped_refptr<webrtc::DataChannelInterface>
       CreateDataChannel(const std::string& label,
                         const webrtc::DataChannelInit* config) OVERRIDE;
 
@@ -120,11 +121,11 @@ class MockPeerConnectionImpl : public webrtc::PeerConnectionInterface {
 
  private:
   // Used for creating MockSessionDescription.
-  MockMediaStreamDependencyFactory* dependency_factory_;
+  MockPeerConnectionDependencyFactory* dependency_factory_;
 
   std::string stream_label_;
-  talk_base::scoped_refptr<MockStreamCollection> local_streams_;
-  talk_base::scoped_refptr<MockStreamCollection> remote_streams_;
+  rtc::scoped_refptr<MockStreamCollection> local_streams_;
+  rtc::scoped_refptr<MockStreamCollection> remote_streams_;
   scoped_ptr<webrtc::SessionDescriptionInterface> local_desc_;
   scoped_ptr<webrtc::SessionDescriptionInterface> remote_desc_;
   scoped_ptr<webrtc::SessionDescriptionInterface> created_sessiondescription_;