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

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

Issue 15872004: Disable preroll duration increase on underflow for MediaSource playback. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Address CR comments Created 7 years, 6 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.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 const base::Closure& ended_cb, 142 const base::Closure& ended_cb,
143 const base::Closure& disabled_cb, 143 const base::Closure& disabled_cb,
144 const PipelineStatusCB& error_cb)); 144 const PipelineStatusCB& error_cb));
145 MOCK_METHOD1(Play, void(const base::Closure& callback)); 145 MOCK_METHOD1(Play, void(const base::Closure& callback));
146 MOCK_METHOD1(Pause, void(const base::Closure& callback)); 146 MOCK_METHOD1(Pause, void(const base::Closure& callback));
147 MOCK_METHOD1(Flush, void(const base::Closure& callback)); 147 MOCK_METHOD1(Flush, void(const base::Closure& callback));
148 MOCK_METHOD1(Stop, void(const base::Closure& callback)); 148 MOCK_METHOD1(Stop, void(const base::Closure& callback));
149 MOCK_METHOD1(SetPlaybackRate, void(float playback_rate)); 149 MOCK_METHOD1(SetPlaybackRate, void(float playback_rate));
150 MOCK_METHOD2(Preroll, void(base::TimeDelta time, const PipelineStatusCB& cb)); 150 MOCK_METHOD2(Preroll, void(base::TimeDelta time, const PipelineStatusCB& cb));
151 MOCK_METHOD1(SetVolume, void(float volume)); 151 MOCK_METHOD1(SetVolume, void(float volume));
152 MOCK_METHOD1(ResumeAfterUnderflow, void(bool buffer_more_audio)); 152 MOCK_METHOD0(ResumeAfterUnderflow, void());
153 153
154 private: 154 private:
155 DISALLOW_COPY_AND_ASSIGN(MockAudioRenderer); 155 DISALLOW_COPY_AND_ASSIGN(MockAudioRenderer);
156 }; 156 };
157 157
158 class MockDecryptor : public Decryptor { 158 class MockDecryptor : public Decryptor {
159 public: 159 public:
160 MockDecryptor(); 160 MockDecryptor();
161 virtual ~MockDecryptor(); 161 virtual ~MockDecryptor();
162 162
(...skipping 29 matching lines...) Expand all
192 public: 192 public:
193 MockStatisticsCB(); 193 MockStatisticsCB();
194 ~MockStatisticsCB(); 194 ~MockStatisticsCB();
195 195
196 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics)); 196 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics));
197 }; 197 };
198 198
199 } // namespace media 199 } // namespace media
200 200
201 #endif // MEDIA_BASE_MOCK_FILTERS_H_ 201 #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