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

Unified 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: incorporated more of aaron's comments Created 7 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 side-by-side diff with in-line comments
Download patch
Index: media/base/mock_filters.h
diff --git a/media/base/mock_filters.h b/media/base/mock_filters.h
index fb5e8a0dfd86aaa86d85fbed65f6676a5cd24407..b36e1b16225966026fc8df48cab5797177420a81 100644
--- a/media/base/mock_filters.h
+++ b/media/base/mock_filters.h
@@ -16,6 +16,8 @@
#include "media/base/demuxer.h"
#include "media/base/filter_collection.h"
#include "media/base/pipeline_status.h"
+#include "media/base/text_decoder.h"
+#include "media/base/text_renderer.h"
#include "media/base/video_decoder.h"
#include "media/base/video_decoder_config.h"
#include "media/base/video_frame.h"
@@ -102,6 +104,19 @@ class MockAudioDecoder : public AudioDecoder {
DISALLOW_COPY_AND_ASSIGN(MockAudioDecoder);
};
+class MockTextDecoder : public TextDecoder {
acolwell GONE FROM CHROMIUM 2013/09/25 23:23:10 nit: This class doesn't appear to be used anywhere
Matthew Heaney (Chromium) 2013/09/29 03:31:23 Done.
+ public:
+ MockTextDecoder();
+ virtual ~MockTextDecoder();
+
+ // TextDecoder implementation.
+ MOCK_METHOD0(Initialize, void());
+ MOCK_METHOD2(Read, void(DemuxerStream*, const ReadCB&));
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MockTextDecoder);
+};
+
class MockVideoRenderer : public VideoRenderer {
public:
MockVideoRenderer();

Powered by Google App Engine
This is Rietveld 408576698