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

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

Issue 416393003: Make Demuxer::Stop() synchronous. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android Created 6 years, 3 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/demuxer_perftest.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 18 matching lines...) Expand all
29 class MockDemuxer : public Demuxer { 29 class MockDemuxer : public Demuxer {
30 public: 30 public:
31 MockDemuxer(); 31 MockDemuxer();
32 virtual ~MockDemuxer(); 32 virtual ~MockDemuxer();
33 33
34 // Demuxer implementation. 34 // Demuxer implementation.
35 MOCK_METHOD3(Initialize, 35 MOCK_METHOD3(Initialize,
36 void(DemuxerHost* host, const PipelineStatusCB& cb, bool)); 36 void(DemuxerHost* host, const PipelineStatusCB& cb, bool));
37 MOCK_METHOD1(SetPlaybackRate, void(float playback_rate)); 37 MOCK_METHOD1(SetPlaybackRate, void(float playback_rate));
38 MOCK_METHOD2(Seek, void(base::TimeDelta time, const PipelineStatusCB& cb)); 38 MOCK_METHOD2(Seek, void(base::TimeDelta time, const PipelineStatusCB& cb));
39 MOCK_METHOD1(Stop, void(const base::Closure& callback)); 39 MOCK_METHOD0(Stop, void());
40 MOCK_METHOD0(OnAudioRendererDisabled, void()); 40 MOCK_METHOD0(OnAudioRendererDisabled, void());
41 MOCK_METHOD1(GetStream, DemuxerStream*(DemuxerStream::Type)); 41 MOCK_METHOD1(GetStream, DemuxerStream*(DemuxerStream::Type));
42 MOCK_CONST_METHOD0(GetTimelineOffset, base::Time()); 42 MOCK_CONST_METHOD0(GetTimelineOffset, base::Time());
43 MOCK_CONST_METHOD0(GetLiveness, Liveness()); 43 MOCK_CONST_METHOD0(GetLiveness, Liveness());
44 44
45 private: 45 private:
46 DISALLOW_COPY_AND_ASSIGN(MockDemuxer); 46 DISALLOW_COPY_AND_ASSIGN(MockDemuxer);
47 }; 47 };
48 48
49 class MockDemuxerStream : public DemuxerStream { 49 class MockDemuxerStream : public DemuxerStream {
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 public: 246 public:
247 MockStatisticsCB(); 247 MockStatisticsCB();
248 ~MockStatisticsCB(); 248 ~MockStatisticsCB();
249 249
250 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics)); 250 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics));
251 }; 251 };
252 252
253 } // namespace media 253 } // namespace media
254 254
255 #endif // MEDIA_BASE_MOCK_FILTERS_H_ 255 #endif // MEDIA_BASE_MOCK_FILTERS_H_
OLDNEW
« no previous file with comments | « media/base/demuxer_perftest.cc ('k') | media/base/pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698