| 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::Invoke; | 10 using ::testing::Invoke; |
| 11 using ::testing::NotNull; | 11 using ::testing::NotNull; |
| 12 using ::testing::Return; | 12 using ::testing::Return; |
| 13 | 13 |
| 14 namespace media { | 14 namespace media { |
| 15 | 15 |
| 16 MockPipelineClient::MockPipelineClient() {} |
| 17 MockPipelineClient::~MockPipelineClient() {} |
| 18 |
| 16 MockPipeline::MockPipeline() {} | 19 MockPipeline::MockPipeline() {} |
| 17 | |
| 18 MockPipeline::~MockPipeline() {} | 20 MockPipeline::~MockPipeline() {} |
| 19 | 21 |
| 20 void MockPipeline::Start(Demuxer* demuxer, | 22 void MockPipeline::Start(Demuxer* demuxer, |
| 21 std::unique_ptr<Renderer> renderer, | 23 std::unique_ptr<Renderer> renderer, |
| 22 const base::Closure& ended_cb, | 24 Client* client, |
| 23 const PipelineStatusCB& error_cb, | 25 const PipelineStatusCB& seek_cb) { |
| 24 const PipelineStatusCB& seek_cb, | 26 Start(demuxer, &renderer, client, seek_cb); |
| 25 const PipelineMetadataCB& metadata_cb, | |
| 26 const BufferingStateCB& buffering_state_cb, | |
| 27 const base::Closure& duration_change_cb, | |
| 28 const AddTextTrackCB& add_text_track_cb, | |
| 29 const base::Closure& waiting_for_decryption_key_cb) { | |
| 30 Start(demuxer, &renderer, ended_cb, error_cb, seek_cb, metadata_cb, | |
| 31 buffering_state_cb, duration_change_cb, add_text_track_cb, | |
| 32 waiting_for_decryption_key_cb); | |
| 33 } | 27 } |
| 34 | 28 |
| 35 void MockPipeline::Resume(std::unique_ptr<Renderer> renderer, | 29 void MockPipeline::Resume(std::unique_ptr<Renderer> renderer, |
| 36 base::TimeDelta timestamp, | 30 base::TimeDelta timestamp, |
| 37 const PipelineStatusCB& seek_cb) { | 31 const PipelineStatusCB& seek_cb) { |
| 38 Resume(&renderer, timestamp, seek_cb); | 32 Resume(&renderer, timestamp, seek_cb); |
| 39 } | 33 } |
| 40 | 34 |
| 41 MockDemuxer::MockDemuxer() {} | 35 MockDemuxer::MockDemuxer() {} |
| 42 | 36 |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 | 128 |
| 135 MockCdmContext::MockCdmContext() {} | 129 MockCdmContext::MockCdmContext() {} |
| 136 | 130 |
| 137 MockCdmContext::~MockCdmContext() {} | 131 MockCdmContext::~MockCdmContext() {} |
| 138 | 132 |
| 139 int MockCdmContext::GetCdmId() const { | 133 int MockCdmContext::GetCdmId() const { |
| 140 return CdmContext::kInvalidCdmId; | 134 return CdmContext::kInvalidCdmId; |
| 141 } | 135 } |
| 142 | 136 |
| 143 } // namespace media | 137 } // namespace media |
| OLD | NEW |