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::PortAllocator* port_allocator, |
| 20 cricket::MediaEngineInterface* media_engine, |
| 21 talk_base::Thread* worker_thread) OVERRIDE; |
| 22 virtual void DeletePeerConnectionFactory() OVERRIDE; |
| 23 virtual bool PeerConnectionFactoryCreated() OVERRIDE; |
| 24 virtual webrtc::PeerConnection* CreatePeerConnection( |
| 25 talk_base::Thread* signaling_thread) OVERRIDE; |
| 26 |
| 27 private: |
| 28 bool mock_pc_factory_created_; |
| 29 |
| 30 DISALLOW_COPY_AND_ASSIGN(MockMediaStreamDependencyFactory); |
| 31 }; |
| 32 |
| 33 #endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ |
OLD | NEW |