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

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 (10/16) Created 7 years, 2 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
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 class MockDemuxerStream : public DemuxerStream { 45 class MockDemuxerStream : public DemuxerStream {
46 public: 46 public:
47 explicit MockDemuxerStream(DemuxerStream::Type type); 47 explicit MockDemuxerStream(DemuxerStream::Type type);
48 virtual ~MockDemuxerStream(); 48 virtual ~MockDemuxerStream();
49 49
50 // DemuxerStream implementation. 50 // DemuxerStream implementation.
51 virtual Type type() OVERRIDE; 51 virtual Type type() OVERRIDE;
52 MOCK_METHOD1(Read, void(const ReadCB& read_cb)); 52 MOCK_METHOD1(Read, void(const ReadCB& read_cb));
53 virtual AudioDecoderConfig audio_decoder_config() OVERRIDE; 53 virtual AudioDecoderConfig audio_decoder_config() OVERRIDE;
54 virtual VideoDecoderConfig video_decoder_config() OVERRIDE; 54 virtual VideoDecoderConfig video_decoder_config() OVERRIDE;
55 virtual TextTrackConfig text_track_config() OVERRIDE;
55 MOCK_METHOD0(EnableBitstreamConverter, void()); 56 MOCK_METHOD0(EnableBitstreamConverter, void());
56 57
57 void set_audio_decoder_config(const AudioDecoderConfig& config); 58 void set_audio_decoder_config(const AudioDecoderConfig& config);
58 void set_video_decoder_config(const VideoDecoderConfig& config); 59 void set_video_decoder_config(const VideoDecoderConfig& config);
59 60
60 private: 61 private:
61 DemuxerStream::Type type_; 62 DemuxerStream::Type type_;
62 AudioDecoderConfig audio_decoder_config_; 63 AudioDecoderConfig audio_decoder_config_;
63 VideoDecoderConfig video_decoder_config_; 64 VideoDecoderConfig video_decoder_config_;
65 TextTrackConfig text_track_config_;
64 66
65 DISALLOW_COPY_AND_ASSIGN(MockDemuxerStream); 67 DISALLOW_COPY_AND_ASSIGN(MockDemuxerStream);
66 }; 68 };
67 69
68 class MockVideoDecoder : public VideoDecoder { 70 class MockVideoDecoder : public VideoDecoder {
69 public: 71 public:
70 MockVideoDecoder(); 72 MockVideoDecoder();
71 virtual ~MockVideoDecoder(); 73 virtual ~MockVideoDecoder();
72 74
73 // VideoDecoder implementation. 75 // VideoDecoder implementation.
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 public: 192 public:
191 MockStatisticsCB(); 193 MockStatisticsCB();
192 ~MockStatisticsCB(); 194 ~MockStatisticsCB();
193 195
194 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics)); 196 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics));
195 }; 197 };
196 198
197 } // namespace media 199 } // namespace media
198 200
199 #endif // MEDIA_BASE_MOCK_FILTERS_H_ 201 #endif // MEDIA_BASE_MOCK_FILTERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698