Add support for providers called when the omnibox is focused.
[chromium-blink-merge.git] / media / base / mock_filters.cc
blob0a66c466b9bcfae3da3953243b6a9ca5b14df4d8
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "media/base/mock_filters.h"
7 #include "base/logging.h"
8 #include "base/memory/scoped_ptr.h"
10 using ::testing::_;
11 using ::testing::Invoke;
12 using ::testing::NotNull;
13 using ::testing::Return;
15 namespace media {
17 MockDemuxer::MockDemuxer() {}
19 MockDemuxer::~MockDemuxer() {}
21 MockDemuxerStream::MockDemuxerStream(DemuxerStream::Type type)
22 : type_(type), liveness_(LIVENESS_UNKNOWN) {
25 MockDemuxerStream::~MockDemuxerStream() {}
27 DemuxerStream::Type MockDemuxerStream::type() const {
28 return type_;
31 DemuxerStream::Liveness MockDemuxerStream::liveness() const {
32 return liveness_;
35 AudioDecoderConfig MockDemuxerStream::audio_decoder_config() {
36 DCHECK_EQ(type_, DemuxerStream::AUDIO);
37 return audio_decoder_config_;
40 VideoDecoderConfig MockDemuxerStream::video_decoder_config() {
41 DCHECK_EQ(type_, DemuxerStream::VIDEO);
42 return video_decoder_config_;
45 void MockDemuxerStream::set_audio_decoder_config(
46 const AudioDecoderConfig& config) {
47 DCHECK_EQ(type_, DemuxerStream::AUDIO);
48 audio_decoder_config_ = config;
51 void MockDemuxerStream::set_video_decoder_config(
52 const VideoDecoderConfig& config) {
53 DCHECK_EQ(type_, DemuxerStream::VIDEO);
54 video_decoder_config_ = config;
57 void MockDemuxerStream::set_liveness(DemuxerStream::Liveness liveness) {
58 liveness_ = liveness;
61 VideoRotation MockDemuxerStream::video_rotation() {
62 return VIDEO_ROTATION_0;
65 std::string MockVideoDecoder::GetDisplayName() const {
66 return "MockVideoDecoder";
69 MockVideoDecoder::MockVideoDecoder() {
70 EXPECT_CALL(*this, HasAlpha()).WillRepeatedly(Return(false));
73 std::string MockAudioDecoder::GetDisplayName() const {
74 return "MockAudioDecoder";
77 MockVideoDecoder::~MockVideoDecoder() {}
79 MockAudioDecoder::MockAudioDecoder() {}
81 MockAudioDecoder::~MockAudioDecoder() {}
83 MockVideoRenderer::MockVideoRenderer() {}
85 MockVideoRenderer::~MockVideoRenderer() {}
87 MockAudioRenderer::MockAudioRenderer() {}
89 MockAudioRenderer::~MockAudioRenderer() {}
91 MockRenderer::MockRenderer() {}
93 MockRenderer::~MockRenderer() {}
95 MockTimeSource::MockTimeSource() {}
97 MockTimeSource::~MockTimeSource() {}
99 MockTextTrack::MockTextTrack() {}
101 MockTextTrack::~MockTextTrack() {}
103 MockDecryptor::MockDecryptor() {}
105 MockDecryptor::~MockDecryptor() {}
107 } // namespace media