7 #ifndef MPD_BASE_MOCK_MPD_NOTIFIER_H_
8 #define MPD_BASE_MOCK_MPD_NOTIFIER_H_
10 #include "packager/mpd/base/mpd_notifier.h"
12 #include <gmock/gmock.h>
14 #include "packager/mpd/base/content_protection_element.h"
15 #include "packager/mpd/base/media_info.pb.h"
17 namespace edash_packager {
24 MOCK_METHOD0(
Init,
bool());
26 bool(
const MediaInfo& media_info, uint32_t* container_id));
28 bool(uint32_t container_id, uint32_t sample_duration));
30 bool(uint32_t container_id,
35 bool(uint32_t container_id,
36 const std::string& drm_uuid,
37 const std::vector<uint8_t>& new_key_id,
38 const std::vector<uint8_t>& new_pssh));
41 bool(uint32_t container_id,
43 MOCK_METHOD0(
Flush,
bool());
48 #endif // MPD_BASE_MOCK_MPD_NOTIFIER_H_
virtual bool AddContentProtectionElement(uint32_t container_id, const ContentProtectionElement &content_protection_element)=0
virtual bool NotifyNewContainer(const MediaInfo &media_info, uint32_t *container_id)=0
virtual bool NotifySampleDuration(uint32_t container_id, uint32_t sample_duration)=0
virtual bool NotifyNewSegment(uint32_t container_id, uint64_t start_time, uint64_t duration, uint64_t size)=0
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