#include "media/remoting/mock_receiver_controller.h"
#include "base/check.h"
#include "base/no_destructor.h"
#include "media/mojo/common/mojo_decoder_buffer_converter.h"
#include "media/remoting/test_utils.h"
#include "mojo/public/cpp/system/data_pipe.h"
namespace media {
namespace remoting {
MockRemotee::MockRemotee() = default;
MockRemotee::~MockRemotee() = default;
void MockRemotee::BindMojoReceiver(mojo::PendingReceiver<Remotee> receiver) { … }
void MockRemotee::SendAudioFrame(uint32_t frame_count,
scoped_refptr<DecoderBuffer> buffer) { … }
void MockRemotee::SendVideoFrame(uint32_t frame_count,
scoped_refptr<DecoderBuffer> buffer) { … }
void MockRemotee::OnRemotingSinkReady(
mojo::PendingRemote<mojom::RemotingSink> remoting_sink) { … }
void MockRemotee::SendMessageToSource(const std::vector<uint8_t>& message) { … }
void MockRemotee::StartDataStreams(
mojo::PendingRemote<mojom::RemotingDataStreamReceiver> audio_stream,
mojo::PendingRemote<mojom::RemotingDataStreamReceiver> video_stream) { … }
void MockRemotee::OnFlushUntil(uint32_t audio_count, uint32_t video_count) { … }
void MockRemotee::OnVideoNaturalSizeChange(const gfx::Size& size) { … }
void MockRemotee::Reset() { … }
MockReceiverController* MockReceiverController::GetInstance() { … }
MockReceiverController::MockReceiverController()
: … { … }
MockReceiverController::~MockReceiverController() = default;
void MockReceiverController::OnSendRpc(std::vector<uint8_t> message) { … }
}
}