| Index: content/renderer/media/mock_media_stream_dependency_factory.h
|
| ===================================================================
|
| --- content/renderer/media/mock_media_stream_dependency_factory.h (revision 196885)
|
| +++ content/renderer/media/mock_media_stream_dependency_factory.h (working copy)
|
| @@ -30,6 +30,8 @@
|
| void SetLive();
|
| // Changes the state of the source to ended and notifies the observer.
|
| void SetEnded();
|
| + // Set the video capturer.
|
| + void SetVideoCapturer(cricket::VideoCapturer* capturer);
|
|
|
| protected:
|
| virtual ~MockVideoSource();
|
| @@ -39,6 +41,7 @@
|
|
|
| std::vector<webrtc::ObserverInterface*> observers_;
|
| MediaSourceInterface::SourceState state_;
|
| + scoped_ptr<cricket::VideoCapturer> capturer_;
|
| };
|
|
|
| class MockAudioSource : public webrtc::AudioSourceInterface {
|
| @@ -160,6 +163,9 @@
|
| virtual scoped_refptr<webrtc::VideoTrackInterface>
|
| CreateLocalVideoTrack(const std::string& id,
|
| webrtc::VideoSourceInterface* source) OVERRIDE;
|
| + virtual scoped_refptr<webrtc::VideoTrackInterface>
|
| + CreateLocalVideoTrack(const std::string& id,
|
| + cricket::VideoCapturer* capturer) OVERRIDE;
|
| virtual scoped_refptr<webrtc::AudioTrackInterface>
|
| CreateLocalAudioTrack(const std::string& id,
|
| webrtc::AudioSourceInterface* source) OVERRIDE;
|
|
|