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

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

Issue 237353007: Refactor VideoRendererImpl to use VideoFrameScheduler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase over split out CLs Created 6 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 | « content/renderer/media/webmediaplayer_impl.cc ('k') | media/base/mock_filters.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"
11 #include "media/base/audio_decoder.h" 11 #include "media/base/audio_decoder.h"
12 #include "media/base/audio_decoder_config.h" 12 #include "media/base/audio_decoder_config.h"
13 #include "media/base/audio_renderer.h" 13 #include "media/base/audio_renderer.h"
14 #include "media/base/decoder_buffer.h" 14 #include "media/base/decoder_buffer.h"
15 #include "media/base/decryptor.h" 15 #include "media/base/decryptor.h"
16 #include "media/base/demuxer.h" 16 #include "media/base/demuxer.h"
17 #include "media/base/filter_collection.h" 17 #include "media/base/filter_collection.h"
18 #include "media/base/pipeline_status.h"
19 #include "media/base/text_track.h" 18 #include "media/base/text_track.h"
20 #include "media/base/video_decoder.h" 19 #include "media/base/video_decoder.h"
21 #include "media/base/video_decoder_config.h" 20 #include "media/base/video_decoder_config.h"
22 #include "media/base/video_frame.h" 21 #include "media/base/video_frame.h"
23 #include "media/base/video_renderer.h" 22 #include "media/base/video_renderer.h"
24 #include "testing/gmock/include/gmock/gmock.h" 23 #include "testing/gmock/include/gmock/gmock.h"
25 24
26 namespace media { 25 namespace media {
27 26
28 class MockDemuxer : public Demuxer { 27 class MockDemuxer : public Demuxer {
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 MOCK_METHOD2(DecryptAndDecodeVideo, 194 MOCK_METHOD2(DecryptAndDecodeVideo,
196 void(const scoped_refptr<media::DecoderBuffer>& encrypted, 195 void(const scoped_refptr<media::DecoderBuffer>& encrypted,
197 const VideoDecodeCB& video_decode_cb)); 196 const VideoDecodeCB& video_decode_cb));
198 MOCK_METHOD1(ResetDecoder, void(StreamType stream_type)); 197 MOCK_METHOD1(ResetDecoder, void(StreamType stream_type));
199 MOCK_METHOD1(DeinitializeDecoder, void(StreamType stream_type)); 198 MOCK_METHOD1(DeinitializeDecoder, void(StreamType stream_type));
200 199
201 private: 200 private:
202 DISALLOW_COPY_AND_ASSIGN(MockDecryptor); 201 DISALLOW_COPY_AND_ASSIGN(MockDecryptor);
203 }; 202 };
204 203
205 // Helper mock statistics callback.
206 class MockStatisticsCB {
207 public:
208 MockStatisticsCB();
209 ~MockStatisticsCB();
210
211 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics));
212 };
213
214 } // namespace media 204 } // namespace media
215 205
216 #endif // MEDIA_BASE_MOCK_FILTERS_H_ 206 #endif // MEDIA_BASE_MOCK_FILTERS_H_
OLDNEW
« no previous file with comments | « content/renderer/media/webmediaplayer_impl.cc ('k') | media/base/mock_filters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698