[Sync] Move DataTypeStatusTable ownership into DataTypeManager.
[chromium-blink-merge.git] / media / base / mock_demuxer_host.h
blobf9e8e4398ade7837b456edcf160666d83967c1d4
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.
4 //
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"
12 namespace media {
14 class MockDemuxerHost : public DemuxerHost {
15 public:
16 MockDemuxerHost();
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*));
27 private:
28 DISALLOW_COPY_AND_ASSIGN(MockDemuxerHost);
31 } // namespace media
33 #endif // MEDIA_BASE_MOCK_DEMUXER_HOST_H_