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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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() { | 51 VideoRotation MockDemuxerStream::video_rotation() { |
52 return VIDEO_ROTATION_0; | 52 return VIDEO_ROTATION_0; |
53 } | 53 } |
54 | 54 |
| 55 std::string MockVideoDecoder::GetDisplayName() const { |
| 56 return "MockVideoDecoder"; |
| 57 } |
| 58 |
55 MockVideoDecoder::MockVideoDecoder() { | 59 MockVideoDecoder::MockVideoDecoder() { |
56 EXPECT_CALL(*this, HasAlpha()).WillRepeatedly(Return(false)); | 60 EXPECT_CALL(*this, HasAlpha()).WillRepeatedly(Return(false)); |
57 } | 61 } |
58 | 62 |
| 63 std::string MockAudioDecoder::GetDisplayName() const { |
| 64 return "MockAudioDecoder"; |
| 65 } |
| 66 |
59 MockVideoDecoder::~MockVideoDecoder() {} | 67 MockVideoDecoder::~MockVideoDecoder() {} |
60 | 68 |
61 MockAudioDecoder::MockAudioDecoder() {} | 69 MockAudioDecoder::MockAudioDecoder() {} |
62 | 70 |
63 MockAudioDecoder::~MockAudioDecoder() {} | 71 MockAudioDecoder::~MockAudioDecoder() {} |
64 | 72 |
65 MockVideoRenderer::MockVideoRenderer() {} | 73 MockVideoRenderer::MockVideoRenderer() {} |
66 | 74 |
67 MockVideoRenderer::~MockVideoRenderer() {} | 75 MockVideoRenderer::~MockVideoRenderer() {} |
68 | 76 |
(...skipping 15 matching lines...) Expand all Loading... |
84 | 92 |
85 MockDecryptor::MockDecryptor() {} | 93 MockDecryptor::MockDecryptor() {} |
86 | 94 |
87 MockDecryptor::~MockDecryptor() {} | 95 MockDecryptor::~MockDecryptor() {} |
88 | 96 |
89 MockStatisticsCB::MockStatisticsCB() {} | 97 MockStatisticsCB::MockStatisticsCB() {} |
90 | 98 |
91 MockStatisticsCB::~MockStatisticsCB() {} | 99 MockStatisticsCB::~MockStatisticsCB() {} |
92 | 100 |
93 } // namespace media | 101 } // namespace media |
OLD | NEW |