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

Unified Diff: media/base/mock_filters.h

Issue 1935873002: Implement disabling and enabling media tracks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@track-control2
Patch Set: Updated comments + dchecks in ffmpeg demux stream Created 4 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
Index: media/base/mock_filters.h
diff --git a/media/base/mock_filters.h b/media/base/mock_filters.h
index 0e2a11e325bb8020f0baf87d20a554f4a057ecff..af07f85e76c55f4a3cdd050117e4ab92aac9fc29 100644
--- a/media/base/mock_filters.h
+++ b/media/base/mock_filters.h
@@ -67,6 +67,8 @@ class MockPipeline : public Pipeline {
Client*,
const PipelineStatusCB&));
MOCK_METHOD0(Stop, void());
+ MOCK_METHOD2(RestartStreamPlayback,
+ void(DemuxerStream* stream, base::TimeDelta time));
MOCK_METHOD2(Seek, void(base::TimeDelta, const PipelineStatusCB&));
MOCK_METHOD1(Suspend, void(const PipelineStatusCB&));
MOCK_METHOD3(Resume,
@@ -151,6 +153,8 @@ class MockDemuxerStream : public DemuxerStream {
void set_liveness(Liveness liveness);
VideoRotation video_rotation() override;
+ MOCK_CONST_METHOD0(enabled, bool());
+ MOCK_METHOD2(set_enabled, void(bool, base::TimeDelta));
private:
Type type_;
@@ -272,6 +276,8 @@ class MockRenderer : public Renderer {
const PipelineStatusCB& init_cb));
MOCK_METHOD1(Flush, void(const base::Closure& flush_cb));
MOCK_METHOD1(StartPlayingFrom, void(base::TimeDelta timestamp));
+ MOCK_METHOD2(RestartStreamPlayback,
+ void(DemuxerStream* stream, base::TimeDelta time));
MOCK_METHOD1(SetPlaybackRate, void(double playback_rate));
MOCK_METHOD1(SetVolume, void(float volume));
MOCK_METHOD0(GetMediaTime, base::TimeDelta());

Powered by Google App Engine
This is Rietveld 408576698