#ifndef CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_VIDEO_SINK_H_
#define CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_VIDEO_SINK_H_
#include "content/public/renderer/media_stream_video_sink.h"
#include "media/base/video_frame.h"
namespace content {
class MockMediaStreamVideoSink : public MediaStreamVideoSink {
public:
MockMediaStreamVideoSink();
virtual void OnVideoFrame(
const scoped_refptr<media::VideoFrame>& frame) OVERRIDE;
virtual void OnReadyStateChanged(
blink::WebMediaStreamSource::ReadyState state) OVERRIDE;
virtual void OnEnabledChanged(bool enabled) OVERRIDE;
int number_of_frames() const { return number_of_frames_; }
media::VideoFrame::Format format() const { return format_; }
bool enabled() const { return enabled_; }
blink::WebMediaStreamSource::ReadyState state() const { return state_; }
private:
int number_of_frames_;
bool enabled_;
media::VideoFrame::Format format_;
blink::WebMediaStreamSource::ReadyState state_;
};
}
#endif