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

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

Issue 271923002: Remove VideoRenderer::Pause() as it serves no real purpose. (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 | « 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 MOCK_METHOD9(Initialize, void(DemuxerStream* stream, 116 MOCK_METHOD9(Initialize, void(DemuxerStream* stream,
117 bool low_delay, 117 bool low_delay,
118 const PipelineStatusCB& init_cb, 118 const PipelineStatusCB& init_cb,
119 const StatisticsCB& statistics_cb, 119 const StatisticsCB& statistics_cb,
120 const TimeCB& time_cb, 120 const TimeCB& time_cb,
121 const base::Closure& ended_cb, 121 const base::Closure& ended_cb,
122 const PipelineStatusCB& error_cb, 122 const PipelineStatusCB& error_cb,
123 const TimeDeltaCB& get_time_cb, 123 const TimeDeltaCB& get_time_cb,
124 const TimeDeltaCB& get_duration_cb)); 124 const TimeDeltaCB& get_duration_cb));
125 MOCK_METHOD1(Play, void(const base::Closure& callback)); 125 MOCK_METHOD1(Play, void(const base::Closure& callback));
126 MOCK_METHOD1(Pause, void(const base::Closure& callback));
127 MOCK_METHOD1(Flush, void(const base::Closure& callback)); 126 MOCK_METHOD1(Flush, void(const base::Closure& callback));
128 MOCK_METHOD2(Preroll, void(base::TimeDelta time, const PipelineStatusCB& cb)); 127 MOCK_METHOD2(Preroll, void(base::TimeDelta time, const PipelineStatusCB& cb));
129 MOCK_METHOD1(Stop, void(const base::Closure& callback)); 128 MOCK_METHOD1(Stop, void(const base::Closure& callback));
130 MOCK_METHOD1(SetPlaybackRate, void(float playback_rate)); 129 MOCK_METHOD1(SetPlaybackRate, void(float playback_rate));
131 130
132 private: 131 private:
133 DISALLOW_COPY_AND_ASSIGN(MockVideoRenderer); 132 DISALLOW_COPY_AND_ASSIGN(MockVideoRenderer);
134 }; 133 };
135 134
136 class MockAudioRenderer : public AudioRenderer { 135 class MockAudioRenderer : public AudioRenderer {
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 public: 208 public:
210 MockStatisticsCB(); 209 MockStatisticsCB();
211 ~MockStatisticsCB(); 210 ~MockStatisticsCB();
212 211
213 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics)); 212 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics));
214 }; 213 };
215 214
216 } // namespace media 215 } // namespace media
217 216
218 #endif // MEDIA_BASE_MOCK_FILTERS_H_ 217 #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