blob: 597c13298c5e9d5520696c6936bff9ca41bbced0 [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
#ifndef MEDIA_BASE_MOCK_DEMUXER_HOST_H_
#define MEDIA_BASE_MOCK_DEMUXER_HOST_H_
#include <string>
#include "media/base/demuxer.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace media {
class MockDemuxerHost : public DemuxerHost {
public:
MockDemuxerHost();
virtual ~MockDemuxerHost();
// DataSourceHost implementation.
MOCK_METHOD1(SetTotalBytes, void(int64 total_bytes));
MOCK_METHOD2(AddBufferedByteRange, void(int64 start, int64 end));
MOCK_METHOD2(AddBufferedTimeRange, void(base::TimeDelta start,
base::TimeDelta end));
// DemuxerHost implementation.
MOCK_METHOD1(OnDemuxerError, void(PipelineStatus error));
MOCK_METHOD1(SetDuration, void(base::TimeDelta duration));
private:
DISALLOW_COPY_AND_ASSIGN(MockDemuxerHost);
};
} // namespace media
#endif // MEDIA_BASE_MOCK_DEMUXER_HOST_H_