#include "remoting/protocol/fake_video_renderer.h"
#include <utility>
#include "base/check.h"
#include "base/functional/callback.h"
#include "remoting/proto/video.pb.h"
#include "third_party/webrtc/modules/desktop_capture/desktop_frame.h"
namespace remoting::protocol {
FakeVideoStub::FakeVideoStub() = default;
FakeVideoStub::~FakeVideoStub() = default;
void FakeVideoStub::set_on_frame_callback(
const base::RepeatingClosure& on_frame_callback) { … }
void FakeVideoStub::ProcessVideoPacket(
std::unique_ptr<VideoPacket> video_packet,
base::OnceClosure done) { … }
FakeFrameConsumer::FakeFrameConsumer() = default;
FakeFrameConsumer::~FakeFrameConsumer() = default;
void FakeFrameConsumer::set_on_frame_callback(
const base::RepeatingClosure& on_frame_callback) { … }
std::unique_ptr<webrtc::DesktopFrame> FakeFrameConsumer::AllocateFrame(
const webrtc::DesktopSize& size) { … }
void FakeFrameConsumer::DrawFrame(std::unique_ptr<webrtc::DesktopFrame> frame,
base::OnceClosure done) { … }
FrameConsumer::PixelFormat FakeFrameConsumer::GetPixelFormat() { … }
FakeFrameStatsConsumer::FakeFrameStatsConsumer() = default;
FakeFrameStatsConsumer::~FakeFrameStatsConsumer() = default;
void FakeFrameStatsConsumer::set_on_stats_callback(
const base::RepeatingClosure& on_stats_callback) { … }
void FakeFrameStatsConsumer::OnVideoFrameStats(const FrameStats& stats) { … }
FakeVideoRenderer::FakeVideoRenderer() = default;
FakeVideoRenderer::~FakeVideoRenderer() = default;
bool FakeVideoRenderer::Initialize(
const ClientContext& client_context,
protocol::FrameStatsConsumer* stats_consumer) { … }
void FakeVideoRenderer::OnSessionConfig(const SessionConfig& config) { … }
FakeVideoStub* FakeVideoRenderer::GetVideoStub() { … }
FakeFrameConsumer* FakeVideoRenderer::GetFrameConsumer() { … }
FakeFrameStatsConsumer* FakeVideoRenderer::GetFrameStatsConsumer() { … }
}