OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ |
| 7 |
| 8 #include "base/compiler_specific.h" |
| 9 #include "content/renderer/media/media_stream_dependency_factory.h" |
| 10 |
| 11 // A mock factory for creating different objects for MediaStreamImpl. |
| 12 class MockMediaStreamDependencyFactory : public MediaStreamDependencyFactory { |
| 13 public: |
| 14 MockMediaStreamDependencyFactory(); |
| 15 virtual ~MockMediaStreamDependencyFactory(); |
| 16 |
| 17 virtual cricket::WebRtcMediaEngine* CreateWebRtcMediaEngine() OVERRIDE; |
| 18 virtual bool CreatePeerConnectionFactory( |
| 19 cricket::MediaEngineInterface* media_engine, |
| 20 talk_base::Thread* worker_thread) OVERRIDE; |
| 21 virtual void DeletePeerConnectionFactory() OVERRIDE; |
| 22 virtual bool PeerConnectionFactoryCreated() OVERRIDE; |
| 23 virtual cricket::PortAllocator* CreatePortAllocator( |
| 24 content::P2PSocketDispatcher* socket_dispatcher, |
| 25 talk_base::NetworkManager* network_manager, |
| 26 talk_base::PacketSocketFactory* socket_factory, |
| 27 const webkit_glue::P2PTransport::Config& config) OVERRIDE; |
| 28 virtual webrtc::PeerConnection* CreatePeerConnection( |
| 29 cricket::PortAllocator* port_allocator, |
| 30 talk_base::Thread* signaling_thread) OVERRIDE; |
| 31 |
| 32 private: |
| 33 bool mock_pc_factory_created_; |
| 34 scoped_ptr<cricket::MediaEngineInterface> media_engine_; |
| 35 |
| 36 DISALLOW_COPY_AND_ASSIGN(MockMediaStreamDependencyFactory); |
| 37 }; |
| 38 |
| 39 #endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ |
OLD | NEW |