#ifndef MEDIA_BASE_MOCK_DEMUXER_HOST_H_
#define MEDIA_BASE_MOCK_DEMUXER_HOST_H_
#include "media/base/demuxer.h"
#include "media/base/text_track_config.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace media {
class MockDemuxerHost : public DemuxerHost {
public:
MockDemuxerHost();
virtual ~MockDemuxerHost();
MOCK_METHOD2(AddBufferedTimeRange, void(base::TimeDelta start,
base::TimeDelta end));
MOCK_METHOD1(SetDuration, void(base::TimeDelta duration));
MOCK_METHOD1(OnDemuxerError, void(PipelineStatus error));
MOCK_METHOD2(AddTextStream, void(DemuxerStream*,
const TextTrackConfig&));
MOCK_METHOD1(RemoveTextStream, void(DemuxerStream*));
private:
DISALLOW_COPY_AND_ASSIGN(MockDemuxerHost);
};
}
#endif