Index: media/base/mock_filters.h |
diff --git a/media/base/mock_filters.h b/media/base/mock_filters.h |
index 03f020ade154cb2984ff01133eacc8874393b096..ecd6848583b86edbaad21c95921786dc91fd29b4 100644 |
--- a/media/base/mock_filters.h |
+++ b/media/base/mock_filters.h |
@@ -19,6 +19,7 @@ |
#include "media/base/decoder_buffer.h" |
#include "media/base/decryptor.h" |
#include "media/base/demuxer.h" |
+#include "media/base/media_track.h" |
#include "media/base/pipeline.h" |
#include "media/base/pipeline_status.h" |
#include "media/base/renderer.h" |
@@ -73,6 +74,11 @@ class MockPipeline : public Pipeline { |
base::TimeDelta, |
const PipelineStatusCB&)); |
+ MOCK_METHOD1(OnEnabledAudioTracksChanged, |
+ void(const std::vector<MediaTrack::Id>&)); |
+ MOCK_METHOD1(OnSelectedVideoTrackChanged, |
+ void(const std::vector<MediaTrack::Id>&)); |
+ |
// TODO(sandersd): This should automatically return true between Start() and |
// Stop(). (Or better, remove it from the interface entirely.) |
MOCK_CONST_METHOD0(IsRunning, bool()); |
@@ -122,6 +128,10 @@ class MockDemuxer : public Demuxer { |
MOCK_CONST_METHOD0(GetStartTime, base::TimeDelta()); |
MOCK_CONST_METHOD0(GetTimelineOffset, base::Time()); |
MOCK_CONST_METHOD0(GetMemoryUsage, int64_t()); |
+ MOCK_METHOD2(OnEnabledAudioTracksChanged, |
+ void(const std::vector<MediaTrack::Id>&, base::TimeDelta)); |
+ MOCK_METHOD2(OnSelectedVideoTrackChanged, |
+ void(const std::vector<MediaTrack::Id>&, base::TimeDelta)); |
private: |
DISALLOW_COPY_AND_ASSIGN(MockDemuxer); |
@@ -146,6 +156,9 @@ 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)); |
+ MOCK_METHOD1(SetStreamRestartedCB, void(const StreamRestartedCB&)); |
private: |
Type type_; |