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

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

Issue 870693002: Require Renderer::Initialize() to return a status code via callback. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments. Created 5 years, 11 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 | « media/base/audio_renderer.h ('k') | media/base/pipeline.h » ('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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 DISALLOW_COPY_AND_ASSIGN(MockAudioRenderer); 161 DISALLOW_COPY_AND_ASSIGN(MockAudioRenderer);
162 }; 162 };
163 163
164 class MockRenderer : public Renderer { 164 class MockRenderer : public Renderer {
165 public: 165 public:
166 MockRenderer(); 166 MockRenderer();
167 virtual ~MockRenderer(); 167 virtual ~MockRenderer();
168 168
169 // Renderer implementation. 169 // Renderer implementation.
170 MOCK_METHOD7(Initialize, void(DemuxerStreamProvider* demuxer_stream_provider, 170 MOCK_METHOD7(Initialize, void(DemuxerStreamProvider* demuxer_stream_provider,
171 const base::Closure& init_cb, 171 const PipelineStatusCB& init_cb,
172 const StatisticsCB& statistics_cb, 172 const StatisticsCB& statistics_cb,
173 const BufferingStateCB& buffering_state_cb, 173 const BufferingStateCB& buffering_state_cb,
174 const PaintCB& paint_cb, 174 const PaintCB& paint_cb,
175 const base::Closure& ended_cb, 175 const base::Closure& ended_cb,
176 const PipelineStatusCB& error_cb)); 176 const PipelineStatusCB& error_cb));
177 MOCK_METHOD1(Flush, void(const base::Closure& flush_cb)); 177 MOCK_METHOD1(Flush, void(const base::Closure& flush_cb));
178 MOCK_METHOD1(StartPlayingFrom, void(base::TimeDelta timestamp)); 178 MOCK_METHOD1(StartPlayingFrom, void(base::TimeDelta timestamp));
179 MOCK_METHOD1(SetPlaybackRate, void(float playback_rate)); 179 MOCK_METHOD1(SetPlaybackRate, void(float playback_rate));
180 MOCK_METHOD1(SetVolume, void(float volume)); 180 MOCK_METHOD1(SetVolume, void(float volume));
181 MOCK_METHOD0(GetMediaTime, base::TimeDelta()); 181 MOCK_METHOD0(GetMediaTime, base::TimeDelta());
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 MOCK_METHOD1(ResetDecoder, void(StreamType stream_type)); 247 MOCK_METHOD1(ResetDecoder, void(StreamType stream_type));
248 MOCK_METHOD1(DeinitializeDecoder, void(StreamType stream_type)); 248 MOCK_METHOD1(DeinitializeDecoder, void(StreamType stream_type));
249 249
250 private: 250 private:
251 DISALLOW_COPY_AND_ASSIGN(MockDecryptor); 251 DISALLOW_COPY_AND_ASSIGN(MockDecryptor);
252 }; 252 };
253 253
254 } // namespace media 254 } // namespace media
255 255
256 #endif // MEDIA_BASE_MOCK_FILTERS_H_ 256 #endif // MEDIA_BASE_MOCK_FILTERS_H_
OLDNEW
« no previous file with comments | « media/base/audio_renderer.h ('k') | media/base/pipeline.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698