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

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

Issue 407583002: Fold AudioRenderer::Stop() into the dtor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ClocklessAudioSink Created 6 years, 5 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.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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 // AudioRenderer implementation. 142 // AudioRenderer implementation.
143 MOCK_METHOD7(Initialize, void(DemuxerStream* stream, 143 MOCK_METHOD7(Initialize, void(DemuxerStream* stream,
144 const PipelineStatusCB& init_cb, 144 const PipelineStatusCB& init_cb,
145 const StatisticsCB& statistics_cb, 145 const StatisticsCB& statistics_cb,
146 const TimeCB& time_cb, 146 const TimeCB& time_cb,
147 const BufferingStateCB& buffering_state_cb, 147 const BufferingStateCB& buffering_state_cb,
148 const base::Closure& ended_cb, 148 const base::Closure& ended_cb,
149 const PipelineStatusCB& error_cb)); 149 const PipelineStatusCB& error_cb));
150 MOCK_METHOD0(GetTimeSource, TimeSource*()); 150 MOCK_METHOD0(GetTimeSource, TimeSource*());
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));
153 MOCK_METHOD0(StartPlaying, void()); 152 MOCK_METHOD0(StartPlaying, void());
154 MOCK_METHOD1(SetVolume, void(float volume)); 153 MOCK_METHOD1(SetVolume, void(float volume));
155 154
156 private: 155 private:
157 DISALLOW_COPY_AND_ASSIGN(MockAudioRenderer); 156 DISALLOW_COPY_AND_ASSIGN(MockAudioRenderer);
158 }; 157 };
159 158
160 class MockTimeSource : public TimeSource { 159 class MockTimeSource : public TimeSource {
161 public: 160 public:
162 MockTimeSource(); 161 MockTimeSource();
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 public: 222 public:
224 MockStatisticsCB(); 223 MockStatisticsCB();
225 ~MockStatisticsCB(); 224 ~MockStatisticsCB();
226 225
227 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics)); 226 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics));
228 }; 227 };
229 228
230 } // namespace media 229 } // namespace media
231 230
232 #endif // MEDIA_BASE_MOCK_FILTERS_H_ 231 #endif // MEDIA_BASE_MOCK_FILTERS_H_
OLDNEW
« no previous file with comments | « media/base/audio_renderer.h ('k') | media/base/pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698