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

Unified Diff: media/base/mock_filters.h

Issue 10837118: Dead code elimination: scythe.chrome_functions:segment.path %media% edition, round 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 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 e6b153dc802f2f0430c716c0335b338116901c51..c73742a74ac7d8110ff098d4211ad206dcbf6e8e 100644
--- a/media/base/mock_filters.h
+++ b/media/base/mock_filters.h
@@ -65,7 +65,6 @@ class MockDemuxer : public Demuxer {
MOCK_METHOD0(OnAudioRendererDisabled, void());
MOCK_METHOD1(GetStream, scoped_refptr<DemuxerStream>(DemuxerStream::Type));
MOCK_CONST_METHOD0(GetStartTime, base::TimeDelta());
- MOCK_METHOD0(GetBitrate, int());
protected:
virtual ~MockDemuxer();
@@ -84,7 +83,6 @@ class MockDemuxerStream : public DemuxerStream {
MOCK_METHOD0(audio_decoder_config, const AudioDecoderConfig&());
MOCK_METHOD0(video_decoder_config, const VideoDecoderConfig&());
MOCK_METHOD0(EnableBitstreamConverter, void());
- MOCK_METHOD0(GetBufferedRanges, Ranges<base::TimeDelta>());
protected:
virtual ~MockDemuxerStream();
@@ -123,7 +121,6 @@ class MockAudioDecoder : public AudioDecoder {
const PipelineStatusCB&,
const StatisticsCB&));
MOCK_METHOD1(Read, void(const ReadCB&));
- MOCK_METHOD1(ProduceAudioSamples, void(scoped_refptr<Buffer>));
MOCK_METHOD0(bits_per_channel, int(void));
MOCK_METHOD0(channel_layout, ChannelLayout(void));
MOCK_METHOD0(samples_per_second, int(void));
@@ -285,12 +282,6 @@ ACTION_P2(SetError, filter, error) {
filter->host()->SetError(error);
}
-// Helper gmock action that calls SetDuration() on behalf of the provided
-// filter.
-ACTION_P2(SetDuration, filter, duration) {
- filter->host()->SetDuration(duration);
-}
-
ACTION(RunClosure) {
arg0.Run();
}

Powered by Google App Engine
This is Rietveld 408576698