This source file includes following definitions.
- type
- audio_decoder_config
- video_decoder_config
- set_audio_decoder_config
- set_video_decoder_config
#include "media/base/mock_filters.h"
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
using ::testing::_;
using ::testing::Invoke;
using ::testing::NotNull;
using ::testing::Return;
namespace media {
MockDemuxer::MockDemuxer() {}
MockDemuxer::~MockDemuxer() {}
MockDemuxerStream::MockDemuxerStream(DemuxerStream::Type type) : type_(type) {}
MockDemuxerStream::~MockDemuxerStream() {}
DemuxerStream::Type MockDemuxerStream::type() {
return type_;
}
AudioDecoderConfig MockDemuxerStream::audio_decoder_config() {
DCHECK_EQ(type_, DemuxerStream::AUDIO);
return audio_decoder_config_;
}
VideoDecoderConfig MockDemuxerStream::video_decoder_config() {
DCHECK_EQ(type_, DemuxerStream::VIDEO);
return video_decoder_config_;
}
void MockDemuxerStream::set_audio_decoder_config(
const AudioDecoderConfig& config) {
DCHECK_EQ(type_, DemuxerStream::AUDIO);
audio_decoder_config_ = config;
}
void MockDemuxerStream::set_video_decoder_config(
const VideoDecoderConfig& config) {
DCHECK_EQ(type_, DemuxerStream::VIDEO);
video_decoder_config_ = config;
}
MockVideoDecoder::MockVideoDecoder() {
EXPECT_CALL(*this, HasAlpha()).WillRepeatedly(Return(false));
}
MockVideoDecoder::~MockVideoDecoder() {}
MockAudioDecoder::MockAudioDecoder() {}
MockAudioDecoder::~MockAudioDecoder() {}
MockVideoRenderer::MockVideoRenderer() {}
MockVideoRenderer::~MockVideoRenderer() {}
MockAudioRenderer::MockAudioRenderer() {}
MockAudioRenderer::~MockAudioRenderer() {}
MockTextTrack::MockTextTrack() {}
MockTextTrack::~MockTextTrack() {}
MockDecryptor::MockDecryptor() {}
MockDecryptor::~MockDecryptor() {}
MockStatisticsCB::MockStatisticsCB() {}
MockStatisticsCB::~MockStatisticsCB() {}
}