7 #ifndef MPD_BASE_MOCK_MPD_NOTIFIER_H_
8 #define MPD_BASE_MOCK_MPD_NOTIFIER_H_
10 #include <gmock/gmock.h>
12 #include <packager/mpd/base/content_protection_element.h>
13 #include <packager/mpd/base/media_info.pb.h>
14 #include <packager/mpd/base/mpd_notifier.h>
23 MOCK_METHOD0(
Init,
bool());
25 bool(
const MediaInfo& media_info, uint32_t* container_id));
27 bool(uint32_t container_id, int32_t sample_duration));
29 bool(uint32_t container_id,
33 int64_t segment_number));
35 bool(uint32_t container_id, int64_t duration, uint64_t size));
38 MOCK_METHOD2(
NotifyCueEvent,
bool(uint32_t container_id, int64_t timestamp));
40 bool(uint32_t container_id,
41 const std::string& drm_uuid,
42 const std::vector<uint8_t>& new_key_id,
43 const std::vector<uint8_t>& new_pssh));
45 bool(uint32_t container_id,
const MediaInfo& media_info));
46 MOCK_METHOD0(
Flush,
bool());
virtual bool NotifySampleDuration(uint32_t container_id, int32_t sample_duration)=0
virtual bool NotifyMediaInfoUpdate(uint32_t container_id, const MediaInfo &media_info)=0
virtual bool NotifyNewSegment(uint32_t container_id, int64_t start_time, int64_t duration, uint64_t size, int64_t segment_number)=0
virtual bool NotifyCompletedSegment(uint32_t container_id, int64_t duration, uint64_t size)
virtual bool NotifyAvailabilityTimeOffset(uint32_t container_id)
virtual bool NotifyEncryptionUpdate(uint32_t container_id, const std::string &drm_uuid, const std::vector< uint8_t > &new_key_id, const std::vector< uint8_t > &new_pssh)=0
virtual bool NotifyCueEvent(uint32_t container_id, int64_t timestamp)=0
virtual bool NotifySegmentDuration(uint32_t container_id)
virtual bool NotifyNewContainer(const MediaInfo &media_info, uint32_t *container_id)=0
All the methods that are virtual are virtual for mocking.