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

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

Issue 275673002: Remove completion callbacks from AudioRenderer::Play/Pause(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « media/base/audio_renderer.h ('k') | media/base/pipeline_unittest.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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 virtual ~MockAudioRenderer(); 139 virtual ~MockAudioRenderer();
140 140
141 // AudioRenderer implementation. 141 // AudioRenderer implementation.
142 MOCK_METHOD7(Initialize, void(DemuxerStream* stream, 142 MOCK_METHOD7(Initialize, void(DemuxerStream* stream,
143 const PipelineStatusCB& init_cb, 143 const PipelineStatusCB& init_cb,
144 const StatisticsCB& statistics_cb, 144 const StatisticsCB& statistics_cb,
145 const base::Closure& underflow_cb, 145 const base::Closure& underflow_cb,
146 const TimeCB& time_cb, 146 const TimeCB& time_cb,
147 const base::Closure& ended_cb, 147 const base::Closure& ended_cb,
148 const PipelineStatusCB& error_cb)); 148 const PipelineStatusCB& error_cb));
149 MOCK_METHOD1(Play, void(const base::Closure& callback)); 149 MOCK_METHOD0(Play, void());
150 MOCK_METHOD1(Pause, void(const base::Closure& callback)); 150 MOCK_METHOD0(Pause, void());
151 MOCK_METHOD1(Flush, void(const base::Closure& callback)); 151 MOCK_METHOD1(Flush, void(const base::Closure& callback));
152 MOCK_METHOD1(Stop, void(const base::Closure& callback)); 152 MOCK_METHOD1(Stop, void(const base::Closure& callback));
153 MOCK_METHOD1(SetPlaybackRate, void(float playback_rate)); 153 MOCK_METHOD1(SetPlaybackRate, void(float playback_rate));
154 MOCK_METHOD2(Preroll, void(base::TimeDelta time, const PipelineStatusCB& cb)); 154 MOCK_METHOD2(Preroll, void(base::TimeDelta time, const PipelineStatusCB& cb));
155 MOCK_METHOD1(SetVolume, void(float volume)); 155 MOCK_METHOD1(SetVolume, void(float volume));
156 MOCK_METHOD0(ResumeAfterUnderflow, void()); 156 MOCK_METHOD0(ResumeAfterUnderflow, void());
157 157
158 private: 158 private:
159 DISALLOW_COPY_AND_ASSIGN(MockAudioRenderer); 159 DISALLOW_COPY_AND_ASSIGN(MockAudioRenderer);
160 }; 160 };
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 public: 209 public:
210 MockStatisticsCB(); 210 MockStatisticsCB();
211 ~MockStatisticsCB(); 211 ~MockStatisticsCB();
212 212
213 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics)); 213 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics));
214 }; 214 };
215 215
216 } // namespace media 216 } // namespace media
217 217
218 #endif // MEDIA_BASE_MOCK_FILTERS_H_ 218 #endif // MEDIA_BASE_MOCK_FILTERS_H_
OLDNEW
« no previous file with comments | « media/base/audio_renderer.h ('k') | media/base/pipeline_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698