| 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 | 8 |
| 9 using ::testing::_; | 9 using ::testing::_; |
| 10 using ::testing::Return; | 10 using ::testing::Return; |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 } | 81 } |
| 82 | 82 |
| 83 void MockDemuxerStream::set_liveness(DemuxerStream::Liveness liveness) { | 83 void MockDemuxerStream::set_liveness(DemuxerStream::Liveness liveness) { |
| 84 liveness_ = liveness; | 84 liveness_ = liveness; |
| 85 } | 85 } |
| 86 | 86 |
| 87 VideoRotation MockDemuxerStream::video_rotation() { | 87 VideoRotation MockDemuxerStream::video_rotation() { |
| 88 return VIDEO_ROTATION_0; | 88 return VIDEO_ROTATION_0; |
| 89 } | 89 } |
| 90 | 90 |
| 91 std::string MockVideoDecoder::GetDisplayName() const { | 91 MockVideoDecoder::MockVideoDecoder(const std::string& decoder_name) |
| 92 return "MockVideoDecoder"; | 92 : decoder_name_(decoder_name) { |
| 93 } | |
| 94 | |
| 95 MockVideoDecoder::MockVideoDecoder() { | |
| 96 ON_CALL(*this, CanReadWithoutStalling()).WillByDefault(Return(true)); | 93 ON_CALL(*this, CanReadWithoutStalling()).WillByDefault(Return(true)); |
| 97 } | 94 } |
| 98 | 95 |
| 99 std::string MockAudioDecoder::GetDisplayName() const { | |
| 100 return "MockAudioDecoder"; | |
| 101 } | |
| 102 | |
| 103 MockVideoDecoder::~MockVideoDecoder() {} | 96 MockVideoDecoder::~MockVideoDecoder() {} |
| 104 | 97 |
| 105 MockAudioDecoder::MockAudioDecoder() {} | 98 std::string MockVideoDecoder::GetDisplayName() const { |
| 99 return decoder_name_; |
| 100 } |
| 101 |
| 102 MockAudioDecoder::MockAudioDecoder(const std::string& decoder_name) |
| 103 : decoder_name_(decoder_name) {} |
| 106 | 104 |
| 107 MockAudioDecoder::~MockAudioDecoder() {} | 105 MockAudioDecoder::~MockAudioDecoder() {} |
| 108 | 106 |
| 107 std::string MockAudioDecoder::GetDisplayName() const { |
| 108 return decoder_name_; |
| 109 } |
| 110 |
| 109 MockRendererClient::MockRendererClient() {} | 111 MockRendererClient::MockRendererClient() {} |
| 110 | 112 |
| 111 MockRendererClient::~MockRendererClient() {} | 113 MockRendererClient::~MockRendererClient() {} |
| 112 | 114 |
| 113 MockVideoRenderer::MockVideoRenderer() {} | 115 MockVideoRenderer::MockVideoRenderer() {} |
| 114 | 116 |
| 115 MockVideoRenderer::~MockVideoRenderer() {} | 117 MockVideoRenderer::~MockVideoRenderer() {} |
| 116 | 118 |
| 117 MockAudioRenderer::MockAudioRenderer() {} | 119 MockAudioRenderer::MockAudioRenderer() {} |
| 118 | 120 |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 void MockCdmFactory::SetBeforeCreationCB( | 293 void MockCdmFactory::SetBeforeCreationCB( |
| 292 const base::Closure& before_creation_cb) { | 294 const base::Closure& before_creation_cb) { |
| 293 before_creation_cb_ = before_creation_cb; | 295 before_creation_cb_ = before_creation_cb; |
| 294 } | 296 } |
| 295 | 297 |
| 296 MockStreamParser::MockStreamParser() {} | 298 MockStreamParser::MockStreamParser() {} |
| 297 | 299 |
| 298 MockStreamParser::~MockStreamParser() {} | 300 MockStreamParser::~MockStreamParser() {} |
| 299 | 301 |
| 300 } // namespace media | 302 } // namespace media |
| OLD | NEW |