Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: media/base/mock_filters.h

Issue 591203003: media: Pass DemuxerStreamProvider in Renderer::Initialize(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase only Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | media/base/pipeline.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef MEDIA_BASE_MOCK_FILTERS_H_ 5 #ifndef MEDIA_BASE_MOCK_FILTERS_H_
6 #define MEDIA_BASE_MOCK_FILTERS_H_ 6 #define MEDIA_BASE_MOCK_FILTERS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 private: 154 private:
155 DISALLOW_COPY_AND_ASSIGN(MockAudioRenderer); 155 DISALLOW_COPY_AND_ASSIGN(MockAudioRenderer);
156 }; 156 };
157 157
158 class MockRenderer : public Renderer { 158 class MockRenderer : public Renderer {
159 public: 159 public:
160 MockRenderer(); 160 MockRenderer();
161 virtual ~MockRenderer(); 161 virtual ~MockRenderer();
162 162
163 // Renderer implementation. 163 // Renderer implementation.
164 MOCK_METHOD5(Initialize, void(const base::Closure& init_cb, 164 MOCK_METHOD6(Initialize, void(DemuxerStreamProvider* demuxer_stream_provider,
165 const base::Closure& init_cb,
165 const StatisticsCB& statistics_cb, 166 const StatisticsCB& statistics_cb,
166 const base::Closure& ended_cb, 167 const base::Closure& ended_cb,
167 const PipelineStatusCB& error_cb, 168 const PipelineStatusCB& error_cb,
168 const BufferingStateCB& buffering_state_cb)); 169 const BufferingStateCB& buffering_state_cb));
169 MOCK_METHOD1(Flush, void(const base::Closure& flush_cb)); 170 MOCK_METHOD1(Flush, void(const base::Closure& flush_cb));
170 MOCK_METHOD1(StartPlayingFrom, void(base::TimeDelta timestamp)); 171 MOCK_METHOD1(StartPlayingFrom, void(base::TimeDelta timestamp));
171 MOCK_METHOD1(SetPlaybackRate, void(float playback_rate)); 172 MOCK_METHOD1(SetPlaybackRate, void(float playback_rate));
172 MOCK_METHOD1(SetVolume, void(float volume)); 173 MOCK_METHOD1(SetVolume, void(float volume));
173 MOCK_METHOD0(GetMediaTime, base::TimeDelta()); 174 MOCK_METHOD0(GetMediaTime, base::TimeDelta());
174 MOCK_METHOD0(HasAudio, bool()); 175 MOCK_METHOD0(HasAudio, bool());
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 MOCK_METHOD1(ResetDecoder, void(StreamType stream_type)); 238 MOCK_METHOD1(ResetDecoder, void(StreamType stream_type));
238 MOCK_METHOD1(DeinitializeDecoder, void(StreamType stream_type)); 239 MOCK_METHOD1(DeinitializeDecoder, void(StreamType stream_type));
239 240
240 private: 241 private:
241 DISALLOW_COPY_AND_ASSIGN(MockDecryptor); 242 DISALLOW_COPY_AND_ASSIGN(MockDecryptor);
242 }; 243 };
243 244
244 } // namespace media 245 } // namespace media
245 246
246 #endif // MEDIA_BASE_MOCK_FILTERS_H_ 247 #endif // MEDIA_BASE_MOCK_FILTERS_H_
OLDNEW
« no previous file with comments | « no previous file | media/base/pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698