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

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

Issue 23702007: Render inband text tracks in the media pipeline (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: incorporate aaron's comments (11/04) Created 7 years, 1 month 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
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 12 matching lines...) Expand all
23 #include "testing/gmock/include/gmock/gmock.h" 23 #include "testing/gmock/include/gmock/gmock.h"
24 24
25 namespace media { 25 namespace media {
26 26
27 class MockDemuxer : public Demuxer { 27 class MockDemuxer : public Demuxer {
28 public: 28 public:
29 MockDemuxer(); 29 MockDemuxer();
30 virtual ~MockDemuxer(); 30 virtual ~MockDemuxer();
31 31
32 // Demuxer implementation. 32 // Demuxer implementation.
33 MOCK_METHOD2(Initialize, void(DemuxerHost* host, const PipelineStatusCB& cb)); 33 MOCK_METHOD3(Initialize,
34 void(DemuxerHost* host, const PipelineStatusCB& cb, bool));
34 MOCK_METHOD1(SetPlaybackRate, void(float playback_rate)); 35 MOCK_METHOD1(SetPlaybackRate, void(float playback_rate));
35 MOCK_METHOD2(Seek, void(base::TimeDelta time, const PipelineStatusCB& cb)); 36 MOCK_METHOD2(Seek, void(base::TimeDelta time, const PipelineStatusCB& cb));
36 MOCK_METHOD1(Stop, void(const base::Closure& callback)); 37 MOCK_METHOD1(Stop, void(const base::Closure& callback));
37 MOCK_METHOD0(OnAudioRendererDisabled, void()); 38 MOCK_METHOD0(OnAudioRendererDisabled, void());
38 MOCK_METHOD1(GetStream, DemuxerStream*(DemuxerStream::Type)); 39 MOCK_METHOD1(GetStream, DemuxerStream*(DemuxerStream::Type));
39 MOCK_CONST_METHOD0(GetStartTime, base::TimeDelta()); 40 MOCK_CONST_METHOD0(GetStartTime, base::TimeDelta());
40 41
41 private: 42 private:
42 DISALLOW_COPY_AND_ASSIGN(MockDemuxer); 43 DISALLOW_COPY_AND_ASSIGN(MockDemuxer);
43 }; 44 };
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 public: 191 public:
191 MockStatisticsCB(); 192 MockStatisticsCB();
192 ~MockStatisticsCB(); 193 ~MockStatisticsCB();
193 194
194 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics)); 195 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics));
195 }; 196 };
196 197
197 } // namespace media 198 } // namespace media
198 199
199 #endif // MEDIA_BASE_MOCK_FILTERS_H_ 200 #endif // MEDIA_BASE_MOCK_FILTERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698