| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ | 6 #define CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 class MockMediaStreamDependencyFactory : public MediaStreamDependencyFactory { | 71 class MockMediaStreamDependencyFactory : public MediaStreamDependencyFactory { |
| 72 public: | 72 public: |
| 73 MockMediaStreamDependencyFactory(VideoCaptureImplManager* vc_manager); | 73 MockMediaStreamDependencyFactory(VideoCaptureImplManager* vc_manager); |
| 74 virtual ~MockMediaStreamDependencyFactory(); | 74 virtual ~MockMediaStreamDependencyFactory(); |
| 75 | 75 |
| 76 virtual bool CreatePeerConnectionFactory( | 76 virtual bool CreatePeerConnectionFactory( |
| 77 talk_base::Thread* worker_thread, | 77 talk_base::Thread* worker_thread, |
| 78 talk_base::Thread* signaling_thread, | 78 talk_base::Thread* signaling_thread, |
| 79 content::P2PSocketDispatcher* socket_dispatcher, | 79 content::P2PSocketDispatcher* socket_dispatcher, |
| 80 talk_base::NetworkManager* network_manager, | 80 talk_base::NetworkManager* network_manager, |
| 81 talk_base::PacketSocketFactory* socket_factory) OVERRIDE; | 81 talk_base::PacketSocketFactory* socket_factory, |
| 82 AudioDeviceFactoryInterface* audio_device_factory) OVERRIDE; |
| 82 virtual void ReleasePeerConnectionFactory() OVERRIDE; | 83 virtual void ReleasePeerConnectionFactory() OVERRIDE; |
| 83 virtual bool PeerConnectionFactoryCreated() OVERRIDE; | 84 virtual bool PeerConnectionFactoryCreated() OVERRIDE; |
| 84 virtual talk_base::scoped_refptr<webrtc::PeerConnectionInterface> | 85 virtual talk_base::scoped_refptr<webrtc::PeerConnectionInterface> |
| 85 CreatePeerConnection( | 86 CreatePeerConnection( |
| 86 const std::string& config, | 87 const std::string& config, |
| 87 webrtc::PeerConnectionObserver* observer) OVERRIDE; | 88 webrtc::PeerConnectionObserver* observer) OVERRIDE; |
| 88 virtual talk_base::scoped_refptr<webrtc::PeerConnectionInterface> | 89 virtual talk_base::scoped_refptr<webrtc::PeerConnectionInterface> |
| 89 CreateRoapPeerConnection( | 90 CreateRoapPeerConnection( |
| 90 const std::string& config, | 91 const std::string& config, |
| 91 webrtc::PeerConnectionObserver* observer) OVERRIDE; | 92 webrtc::PeerConnectionObserver* observer) OVERRIDE; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 105 const std::string& label, | 106 const std::string& label, |
| 106 const std::string& sdp) OVERRIDE; | 107 const std::string& sdp) OVERRIDE; |
| 107 | 108 |
| 108 private: | 109 private: |
| 109 bool mock_pc_factory_created_; | 110 bool mock_pc_factory_created_; |
| 110 | 111 |
| 111 DISALLOW_COPY_AND_ASSIGN(MockMediaStreamDependencyFactory); | 112 DISALLOW_COPY_AND_ASSIGN(MockMediaStreamDependencyFactory); |
| 112 }; | 113 }; |
| 113 | 114 |
| 114 #endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ | 115 #endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ |
| OLD | NEW |