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

Unified Diff: media/base/mock_filters.h

Issue 7867051: Introduce AudioDecoderConfig to migrate away from GetAVStream(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: samples_per_second Created 9 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
« no previous file with comments | « media/base/media_log.cc ('k') | media/base/pipeline_status.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 a836f0b910ce2109d921b13297b759c72a142183..9b16ff56c6c5313d2a8db60a6c34c203ddaa1338 100644
--- a/media/base/mock_filters.h
+++ b/media/base/mock_filters.h
@@ -15,6 +15,7 @@
#include <string>
+#include "media/base/audio_decoder_config.h"
#include "media/base/demuxer.h"
#include "media/base/filters.h"
#include "media/base/filter_collection.h"
@@ -160,6 +161,7 @@ class MockDemuxerStream : public DemuxerStream {
MOCK_METHOD0(type, Type());
MOCK_METHOD1(Read, void(const ReadCallback& read_callback));
MOCK_METHOD0(GetAVStream, AVStream*());
+ MOCK_METHOD0(audio_decoder_config, const AudioDecoderConfig&());
MOCK_METHOD0(EnableBitstreamConverter, void());
protected:
@@ -214,7 +216,7 @@ class MockAudioDecoder : public AudioDecoder {
MOCK_METHOD1(ProduceAudioSamples, void(scoped_refptr<Buffer>));
MOCK_METHOD0(bits_per_channel, int(void));
MOCK_METHOD0(channel_layout, ChannelLayout(void));
- MOCK_METHOD0(sample_rate, int(void));
+ MOCK_METHOD0(samples_per_second, int(void));
void ConsumeAudioSamplesForTest(scoped_refptr<Buffer> buffer) {
AudioDecoder::ConsumeAudioSamples(buffer);
« no previous file with comments | « media/base/media_log.cc ('k') | media/base/pipeline_status.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698