1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef MEDIA_BASE_MOCK_DEMUXER_HOST_H_
6 #define MEDIA_BASE_MOCK_DEMUXER_HOST_H_
8 #include "media/base/demuxer.h"
9 #include "media/base/text_track_config.h"
10 #include "testing/gmock/include/gmock/gmock.h"
14 class MockDemuxerHost
: public DemuxerHost
{
17 virtual ~MockDemuxerHost();
19 MOCK_METHOD2(AddBufferedTimeRange
, void(base::TimeDelta start
,
20 base::TimeDelta end
));
21 MOCK_METHOD1(SetDuration
, void(base::TimeDelta duration
));
22 MOCK_METHOD1(OnDemuxerError
, void(PipelineStatus error
));
23 MOCK_METHOD2(AddTextStream
, void(DemuxerStream
*,
24 const TextTrackConfig
&));
25 MOCK_METHOD1(RemoveTextStream
, void(DemuxerStream
*));
28 DISALLOW_COPY_AND_ASSIGN(MockDemuxerHost
);
33 #endif // MEDIA_BASE_MOCK_DEMUXER_HOST_H_