| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "media/base/mock_filters.h" | 5 #include "media/base/mock_filters.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 | 9 |
| 10 using ::testing::_; | 10 using ::testing::_; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 DCHECK_EQ(type_, DemuxerStream::AUDIO); | 41 DCHECK_EQ(type_, DemuxerStream::AUDIO); |
| 42 audio_decoder_config_ = config; | 42 audio_decoder_config_ = config; |
| 43 } | 43 } |
| 44 | 44 |
| 45 void MockDemuxerStream::set_video_decoder_config( | 45 void MockDemuxerStream::set_video_decoder_config( |
| 46 const VideoDecoderConfig& config) { | 46 const VideoDecoderConfig& config) { |
| 47 DCHECK_EQ(type_, DemuxerStream::VIDEO); | 47 DCHECK_EQ(type_, DemuxerStream::VIDEO); |
| 48 video_decoder_config_ = config; | 48 video_decoder_config_ = config; |
| 49 } | 49 } |
| 50 | 50 |
| 51 VideoRotation MockDemuxerStream::video_rotation() { |
| 52 return VIDEO_ROTATION_0; |
| 53 } |
| 54 |
| 51 MockVideoDecoder::MockVideoDecoder() { | 55 MockVideoDecoder::MockVideoDecoder() { |
| 52 EXPECT_CALL(*this, HasAlpha()).WillRepeatedly(Return(false)); | 56 EXPECT_CALL(*this, HasAlpha()).WillRepeatedly(Return(false)); |
| 53 } | 57 } |
| 54 | 58 |
| 55 MockVideoDecoder::~MockVideoDecoder() {} | 59 MockVideoDecoder::~MockVideoDecoder() {} |
| 56 | 60 |
| 57 MockAudioDecoder::MockAudioDecoder() {} | 61 MockAudioDecoder::MockAudioDecoder() {} |
| 58 | 62 |
| 59 MockAudioDecoder::~MockAudioDecoder() {} | 63 MockAudioDecoder::~MockAudioDecoder() {} |
| 60 | 64 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 72 | 76 |
| 73 MockDecryptor::MockDecryptor() {} | 77 MockDecryptor::MockDecryptor() {} |
| 74 | 78 |
| 75 MockDecryptor::~MockDecryptor() {} | 79 MockDecryptor::~MockDecryptor() {} |
| 76 | 80 |
| 77 MockStatisticsCB::MockStatisticsCB() {} | 81 MockStatisticsCB::MockStatisticsCB() {} |
| 78 | 82 |
| 79 MockStatisticsCB::~MockStatisticsCB() {} | 83 MockStatisticsCB::~MockStatisticsCB() {} |
| 80 | 84 |
| 81 } // namespace media | 85 } // namespace media |
| OLD | NEW |