| Index: content/renderer/media/mock_media_stream_dependency_factory.h
 | 
| diff --git a/content/renderer/media/mock_media_stream_dependency_factory.h b/content/renderer/media/mock_media_stream_dependency_factory.h
 | 
| index bd73ec7bd9b9539342d059152928635b16257988..81c01cd2f4276dacf324dc746880d972e852aef1 100644
 | 
| --- a/content/renderer/media/mock_media_stream_dependency_factory.h
 | 
| +++ b/content/renderer/media/mock_media_stream_dependency_factory.h
 | 
| @@ -11,11 +11,29 @@
 | 
|  #include "base/compiler_specific.h"
 | 
|  #include "content/renderer/media/media_stream_dependency_factory.h"
 | 
|  #include "third_party/libjingle/source/talk/app/webrtc/mediaconstraintsinterface.h"
 | 
| +#include "third_party/libjingle/source/talk/media/base/videorenderer.h"
 | 
|  
 | 
|  namespace content {
 | 
|  
 | 
|  class WebAudioCapturerSource;
 | 
|  
 | 
| +class MockVideoRenderer : public cricket::VideoRenderer {
 | 
| + public:
 | 
| +  MockVideoRenderer();
 | 
| +  virtual ~MockVideoRenderer();
 | 
| +  virtual bool SetSize(int width, int height, int reserved) OVERRIDE;
 | 
| +  virtual bool RenderFrame(const cricket::VideoFrame* frame) OVERRIDE;
 | 
| +
 | 
| +  int width() const { return width_; }
 | 
| +  int height() const { return height_; }
 | 
| +  int num() const { return num_; }
 | 
| +
 | 
| + private:
 | 
| +  int width_;
 | 
| +  int height_;
 | 
| +  int num_;
 | 
| +};
 | 
| +
 | 
|  class MockVideoSource : public webrtc::VideoSourceInterface {
 | 
|   public:
 | 
|    MockVideoSource();
 | 
| @@ -36,6 +54,11 @@ class MockVideoSource : public webrtc::VideoSourceInterface {
 | 
|    // Set the video capturer.
 | 
|    void SetVideoCapturer(cricket::VideoCapturer* capturer);
 | 
|  
 | 
| +  // Test helpers.
 | 
| +  int GetLastFrameWidth() const { return renderer_.width(); }
 | 
| +  int GetLastFrameHeight() const { return renderer_.height(); }
 | 
| +  int GetFrameNum() const { return renderer_.num(); }
 | 
| +
 | 
|   protected:
 | 
|    virtual ~MockVideoSource();
 | 
|  
 | 
| @@ -45,6 +68,7 @@ class MockVideoSource : public webrtc::VideoSourceInterface {
 | 
|    std::vector<webrtc::ObserverInterface*> observers_;
 | 
|    MediaSourceInterface::SourceState state_;
 | 
|    scoped_ptr<cricket::VideoCapturer> capturer_;
 | 
| +  MockVideoRenderer renderer_;
 | 
|  };
 | 
|  
 | 
|  class MockAudioSource : public webrtc::AudioSourceInterface {
 | 
| @@ -128,6 +152,10 @@ class MockMediaStreamDependencyFactory : public MediaStreamDependencyFactory {
 | 
|            int video_session_id,
 | 
|            bool is_screencast,
 | 
|            const webrtc::MediaConstraintsInterface* constraints) OVERRIDE;
 | 
| +  virtual scoped_refptr<webrtc::VideoSourceInterface>
 | 
| +      CreateVideoSource(
 | 
| +          cricket::VideoCapturer* capturer,
 | 
| +          const webrtc::MediaConstraintsInterface* constraints) OVERRIDE;
 | 
|    virtual scoped_refptr<WebAudioCapturerSource> CreateWebAudioSource(
 | 
|        blink::WebMediaStreamSource* source,
 | 
|        RTCMediaConstraints* constraints) OVERRIDE;
 | 
| 
 |