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

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

Issue 14348007: Reland: Remove reference counting from media::VideoDecoder and friends. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 years, 8 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/filter_collection.cc ('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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 private: 102 private:
103 DISALLOW_COPY_AND_ASSIGN(MockAudioDecoder); 103 DISALLOW_COPY_AND_ASSIGN(MockAudioDecoder);
104 }; 104 };
105 105
106 class MockVideoRenderer : public VideoRenderer { 106 class MockVideoRenderer : public VideoRenderer {
107 public: 107 public:
108 MockVideoRenderer(); 108 MockVideoRenderer();
109 virtual ~MockVideoRenderer(); 109 virtual ~MockVideoRenderer();
110 110
111 // VideoRenderer implementation. 111 // VideoRenderer implementation.
112 MOCK_METHOD10(Initialize, void(const scoped_refptr<DemuxerStream>& stream, 112 MOCK_METHOD9(Initialize, void(const scoped_refptr<DemuxerStream>& stream,
113 const VideoDecoderList& decoders, 113 const PipelineStatusCB& init_cb,
114 const PipelineStatusCB& init_cb, 114 const StatisticsCB& statistics_cb,
115 const StatisticsCB& statistics_cb, 115 const TimeCB& time_cb,
116 const TimeCB& time_cb, 116 const NaturalSizeChangedCB& size_changed_cb,
117 const NaturalSizeChangedCB& size_changed_cb, 117 const base::Closure& ended_cb,
118 const base::Closure& ended_cb, 118 const PipelineStatusCB& error_cb,
119 const PipelineStatusCB& error_cb, 119 const TimeDeltaCB& get_time_cb,
120 const TimeDeltaCB& get_time_cb, 120 const TimeDeltaCB& get_duration_cb));
121 const TimeDeltaCB& get_duration_cb));
122 MOCK_METHOD1(Play, void(const base::Closure& callback)); 121 MOCK_METHOD1(Play, void(const base::Closure& callback));
123 MOCK_METHOD1(Pause, void(const base::Closure& callback)); 122 MOCK_METHOD1(Pause, void(const base::Closure& callback));
124 MOCK_METHOD1(Flush, void(const base::Closure& callback)); 123 MOCK_METHOD1(Flush, void(const base::Closure& callback));
125 MOCK_METHOD2(Preroll, void(base::TimeDelta time, const PipelineStatusCB& cb)); 124 MOCK_METHOD2(Preroll, void(base::TimeDelta time, const PipelineStatusCB& cb));
126 MOCK_METHOD1(Stop, void(const base::Closure& callback)); 125 MOCK_METHOD1(Stop, void(const base::Closure& callback));
127 MOCK_METHOD1(SetPlaybackRate, void(float playback_rate)); 126 MOCK_METHOD1(SetPlaybackRate, void(float playback_rate));
128 127
129 private: 128 private:
130 DISALLOW_COPY_AND_ASSIGN(MockVideoRenderer); 129 DISALLOW_COPY_AND_ASSIGN(MockVideoRenderer);
131 }; 130 };
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 public: 203 public:
205 MockStatisticsCB(); 204 MockStatisticsCB();
206 ~MockStatisticsCB(); 205 ~MockStatisticsCB();
207 206
208 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics)); 207 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics));
209 }; 208 };
210 209
211 } // namespace media 210 } // namespace media
212 211
213 #endif // MEDIA_BASE_MOCK_FILTERS_H_ 212 #endif // MEDIA_BASE_MOCK_FILTERS_H_
OLDNEW
« no previous file with comments | « media/base/filter_collection.cc ('k') | media/base/pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698