#include "third_party/blink/renderer/modules/mediastream/mock_media_stream_video_sink.h"
#include "base/task/bind_post_task.h"
#include "third_party/blink/renderer/platform/wtf/functional.h"
namespace blink {
MockMediaStreamVideoSink::MockMediaStreamVideoSink()
: … { … }
MockMediaStreamVideoSink::~MockMediaStreamVideoSink() { … }
blink::VideoCaptureDeliverFrameCB
MockMediaStreamVideoSink::GetDeliverFrameCB() { … }
EncodedVideoFrameCB MockMediaStreamVideoSink::GetDeliverEncodedVideoFrameCB() { … }
VideoCaptureNotifyFrameDroppedCB
MockMediaStreamVideoSink::GetNotifyFrameDroppedCB() { … }
void MockMediaStreamVideoSink::DeliverVideoFrame(
scoped_refptr<media::VideoFrame> frame,
base::TimeTicks estimated_capture_time) { … }
void MockMediaStreamVideoSink::DeliverEncodedVideoFrame(
scoped_refptr<EncodedVideoFrame> frame,
base::TimeTicks estimated_capture_time) { … }
void MockMediaStreamVideoSink::NotifyFrameDropped(
media::VideoCaptureFrameDropReason reason) { … }
void MockMediaStreamVideoSink::OnReadyStateChanged(
blink::WebMediaStreamSource::ReadyState state) { … }
void MockMediaStreamVideoSink::OnEnabledChanged(bool enabled) { … }
void MockMediaStreamVideoSink::OnContentHintChanged(
WebMediaStreamTrack::ContentHintType content_hint) { … }
}