| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_WEBRTC_MOCK_PEER_CONNECTION_DEPENDENCY_FACTORY_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_MOCK_PEER_CONNECTION_DEPENDENCY_FACTORY_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_MOCK_PEER_CONNECTION_DEPENDENCY_FACTORY_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_MOCK_PEER_CONNECTION_DEPENDENCY_FACTORY_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 MockVideoSource(bool remote); | 38 MockVideoSource(bool remote); |
| 39 | 39 |
| 40 void RegisterObserver(webrtc::ObserverInterface* observer) override; | 40 void RegisterObserver(webrtc::ObserverInterface* observer) override; |
| 41 void UnregisterObserver(webrtc::ObserverInterface* observer) override; | 41 void UnregisterObserver(webrtc::ObserverInterface* observer) override; |
| 42 MediaSourceInterface::SourceState state() const override; | 42 MediaSourceInterface::SourceState state() const override; |
| 43 bool remote() const override; | 43 bool remote() const override; |
| 44 cricket::VideoCapturer* GetVideoCapturer() override; | 44 cricket::VideoCapturer* GetVideoCapturer() override; |
| 45 void AddSink(rtc::VideoSinkInterface<cricket::VideoFrame>* output) override; | 45 void AddSink(rtc::VideoSinkInterface<cricket::VideoFrame>* output) override; |
| 46 void RemoveSink( | 46 void RemoveSink( |
| 47 rtc::VideoSinkInterface<cricket::VideoFrame>* output) override; | 47 rtc::VideoSinkInterface<cricket::VideoFrame>* output) override; |
| 48 cricket::VideoRenderer* FrameInput() override; | |
| 49 const cricket::VideoOptions* options() const override; | 48 const cricket::VideoOptions* options() const override; |
| 50 void Stop() override; | 49 void Stop() override; |
| 51 void Restart() override; | 50 void Restart() override; |
| 52 | 51 |
| 53 // Changes the state of the source to live and notifies the observer. | 52 // Changes the state of the source to live and notifies the observer. |
| 54 void SetLive(); | 53 void SetLive(); |
| 55 // Changes the state of the source to ended and notifies the observer. | 54 // Changes the state of the source to ended and notifies the observer. |
| 56 void SetEnded(); | 55 void SetEnded(); |
| 57 // Set the video capturer. | 56 // Set the video capturer. |
| 58 void SetVideoCapturer(cricket::VideoCapturer* capturer); | 57 void SetVideoCapturer(cricket::VideoCapturer* capturer); |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 bool fail_to_create_next_audio_capturer_; | 225 bool fail_to_create_next_audio_capturer_; |
| 227 scoped_refptr <MockAudioSource> last_audio_source_; | 226 scoped_refptr <MockAudioSource> last_audio_source_; |
| 228 scoped_refptr <MockVideoSource> last_video_source_; | 227 scoped_refptr <MockVideoSource> last_video_source_; |
| 229 | 228 |
| 230 DISALLOW_COPY_AND_ASSIGN(MockPeerConnectionDependencyFactory); | 229 DISALLOW_COPY_AND_ASSIGN(MockPeerConnectionDependencyFactory); |
| 231 }; | 230 }; |
| 232 | 231 |
| 233 } // namespace content | 232 } // namespace content |
| 234 | 233 |
| 235 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_MOCK_PEER_CONNECTION_DEPENDENCY_FACTORY
_H_ | 234 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_MOCK_PEER_CONNECTION_DEPENDENCY_FACTORY
_H_ |
| OLD | NEW |