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

Unified Diff: media/base/mock_filters.h

Issue 2101022: refactoring decoder interface (Closed)
Patch Set: q Created 10 years, 7 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
« no previous file with comments | « media/base/filters.h ('k') | media/filters/audio_renderer_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/mock_filters.h
diff --git a/media/base/mock_filters.h b/media/base/mock_filters.h
index 7f49fcf6d37b7a4096387fc6b4e6c05990f2033e..9aeaeec581a7b7fbe9eb7033697503d4ffe5e122 100644
--- a/media/base/mock_filters.h
+++ b/media/base/mock_filters.h
@@ -18,6 +18,7 @@
#include "base/callback.h"
#include "media/base/factory.h"
#include "media/base/filters.h"
+#include "media/base/video_frame.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace media {
@@ -170,7 +171,7 @@ class MockVideoDecoder : public VideoDecoder {
MOCK_METHOD2(Initialize, void(DemuxerStream* stream,
FilterCallback* callback));
MOCK_METHOD0(media_format, const MediaFormat&());
- MOCK_METHOD1(Read, void(Callback1<VideoFrame*>::Type* read_callback));
+ MOCK_METHOD1(FillThisBuffer, void(scoped_refptr<VideoFrame>));
protected:
virtual ~MockVideoDecoder() {}
@@ -193,7 +194,12 @@ class MockAudioDecoder : public AudioDecoder {
MOCK_METHOD2(Initialize, void(DemuxerStream* stream,
FilterCallback* callback));
MOCK_METHOD0(media_format, const MediaFormat&());
- MOCK_METHOD1(Read, void(Callback1<Buffer*>::Type* read_callback));
+ MOCK_METHOD1(FillThisBuffer, void(scoped_refptr<Buffer>));
+
+ // change to public to allow unittest for access;
+ FillBufferDoneCallback* fill_buffer_done_callback() {
+ return AudioDecoder::fill_buffer_done_callback();
+ }
protected:
virtual ~MockAudioDecoder() {}
« no previous file with comments | « media/base/filters.h ('k') | media/filters/audio_renderer_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698