chromium/media/remoting/mock_receiver_controller.cc

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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() {}

// static
MockReceiverController* MockReceiverController::GetInstance() {}

MockReceiverController::MockReceiverController()
    :{}

MockReceiverController::~MockReceiverController() = default;

void MockReceiverController::OnSendRpc(std::vector<uint8_t> message) {}

}  // namespace remoting
}  // namespace media