#include "media/base/mock_filters.h"
#include "base/check_op.h"
#include "media/base/demuxer.h"
_;
NiceMock;
Return;
SaveArg;
MATCHER(NotEmpty, "") { … }
namespace media {
MockPipelineClient::MockPipelineClient() = default;
MockPipelineClient::~MockPipelineClient() = default;
MockPipeline::MockPipeline() = default;
MockPipeline::~MockPipeline() = default;
MockMediaResource::MockMediaResource() = default;
MockMediaResource::~MockMediaResource() = default;
MockDemuxer::MockDemuxer() = default;
MockDemuxer::~MockDemuxer() = default;
std::string MockDemuxer::GetDisplayName() const { … }
DemuxerType MockDemuxer::GetDemuxerType() const { … }
MockDemuxerStream::MockDemuxerStream(DemuxerStream::Type type) : … { … }
MockDemuxerStream::~MockDemuxerStream() = default;
DemuxerStream::Type MockDemuxerStream::type() const { … }
StreamLiveness MockDemuxerStream::liveness() const { … }
AudioDecoderConfig MockDemuxerStream::audio_decoder_config() { … }
VideoDecoderConfig MockDemuxerStream::video_decoder_config() { … }
void MockDemuxerStream::set_audio_decoder_config(
const AudioDecoderConfig& config) { … }
void MockDemuxerStream::set_video_decoder_config(
const VideoDecoderConfig& config) { … }
void MockDemuxerStream::set_liveness(StreamLiveness liveness) { … }
MockVideoDecoder::MockVideoDecoder() : … { … }
MockVideoDecoder::MockVideoDecoder(int decoder_id)
: … { … }
MockVideoDecoder::MockVideoDecoder(bool is_platform_decoder,
bool supports_decryption,
int decoder_id)
: … { … }
MockVideoDecoder::~MockVideoDecoder() = default;
bool MockVideoDecoder::IsPlatformDecoder() const { … }
bool MockVideoDecoder::SupportsDecryption() const { … }
MockAudioEncoder::MockAudioEncoder() = default;
MockAudioEncoder::~MockAudioEncoder() { … }
MockVideoEncoder::MockVideoEncoder() = default;
MockVideoEncoder::~MockVideoEncoder() { … }
MockAudioDecoder::MockAudioDecoder() : … { … }
MockAudioDecoder::MockAudioDecoder(int decoder_id)
: … { … }
MockAudioDecoder::MockAudioDecoder(bool is_platform_decoder,
bool supports_decryption,
int decoder_id)
: … { … }
MockAudioDecoder::~MockAudioDecoder() = default;
bool MockAudioDecoder::IsPlatformDecoder() const { … }
bool MockAudioDecoder::SupportsDecryption() const { … }
MockRendererClient::MockRendererClient() = default;
MockRendererClient::~MockRendererClient() = default;
MockVideoRenderer::MockVideoRenderer() = default;
MockVideoRenderer::~MockVideoRenderer() = default;
MockAudioRenderer::MockAudioRenderer() = default;
MockAudioRenderer::~MockAudioRenderer() = default;
MockRenderer::MockRenderer() = default;
MockRenderer::~MockRenderer() = default;
MockRendererFactory::MockRendererFactory() = default;
MockRendererFactory::~MockRendererFactory() = default;
MockTimeSource::MockTimeSource() = default;
MockTimeSource::~MockTimeSource() = default;
MockCdmClient::MockCdmClient() = default;
MockCdmClient::~MockCdmClient() = default;
MockDecryptor::MockDecryptor() = default;
MockDecryptor::~MockDecryptor() = default;
MockCdmContext::MockCdmContext() = default;
MockCdmContext::~MockCdmContext() = default;
std::optional<base::UnguessableToken> MockCdmContext::GetCdmId() const { … }
void MockCdmContext::set_cdm_id(const base::UnguessableToken& cdm_id) { … }
MockCdmPromise::MockCdmPromise(bool expect_success) { … }
MockCdmPromise::~MockCdmPromise() { … }
MockCdmSessionPromise::MockCdmSessionPromise(bool expect_success,
std::string* new_session_id) { … }
MockCdmSessionPromise::~MockCdmSessionPromise() { … }
MockCdmKeyStatusPromise::MockCdmKeyStatusPromise(
bool expect_success,
CdmKeyInformation::KeyStatus* key_status,
CdmPromise::Exception* exception) { … }
MockCdmKeyStatusPromise::~MockCdmKeyStatusPromise() { … }
MockCdm::MockCdm() = default;
MockCdm::MockCdm(
const CdmConfig& cdm_config,
const SessionMessageCB& session_message_cb,
const SessionClosedCB& session_closed_cb,
const SessionKeysChangeCB& session_keys_change_cb,
const SessionExpirationUpdateCB& session_expiration_update_cb) { … }
MockCdm::~MockCdm() = default;
void MockCdm::Initialize(
const CdmConfig& cdm_config,
const SessionMessageCB& session_message_cb,
const SessionClosedCB& session_closed_cb,
const SessionKeysChangeCB& session_keys_change_cb,
const SessionExpirationUpdateCB& session_expiration_update_cb) { … }
void MockCdm::CallSessionMessageCB(const std::string& session_id,
CdmMessageType message_type,
const std::vector<uint8_t>& message) { … }
void MockCdm::CallSessionClosedCB(const std::string& session_id,
CdmSessionClosedReason reason) { … }
void MockCdm::CallSessionKeysChangeCB(const std::string& session_id,
bool has_additional_usable_key,
CdmKeysInfo keys_info) { … }
void MockCdm::CallSessionExpirationUpdateCB(const std::string& session_id,
base::Time new_expiry_time) { … }
MockCdmFactory::MockCdmFactory(scoped_refptr<MockCdm> mock_cdm)
: … { … }
MockCdmFactory::~MockCdmFactory() = default;
void MockCdmFactory::Create(
const CdmConfig& cdm_config,
const SessionMessageCB& session_message_cb,
const SessionClosedCB& session_closed_cb,
const SessionKeysChangeCB& session_keys_change_cb,
const SessionExpirationUpdateCB& session_expiration_update_cb,
CdmCreatedCB cdm_created_cb) { … }
void MockCdmFactory::SetBeforeCreationCB(
base::RepeatingClosure before_creation_cb) { … }
MockStreamParser::MockStreamParser() = default;
MockStreamParser::~MockStreamParser() = default;
MockMediaClient::MockMediaClient() = default;
MockMediaClient::~MockMediaClient() = default;
MockVideoEncoderMetricsProvider::MockVideoEncoderMetricsProvider() { … }
MockVideoEncoderMetricsProvider::~MockVideoEncoderMetricsProvider() { … }
}