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"
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,
34 MOCK_METHOD2(
NotifyCueEvent,
bool(uint32_t container_id, uint64_t timestamp));
36 bool(uint32_t container_id,
37 const std::string& drm_uuid,
38 const std::vector<uint8_t>& new_key_id,
39 const std::vector<uint8_t>& new_pssh));
41 bool(uint32_t container_id,
const MediaInfo& media_info));
42 MOCK_METHOD0(
Flush,
bool());
47 #endif // MPD_BASE_MOCK_MPD_NOTIFIER_H_
virtual bool NotifyMediaInfoUpdate(uint32_t container_id, const MediaInfo &media_info)=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
All the methods that are virtual are virtual for mocking.
virtual bool NotifyNewContainer(const MediaInfo &media_info, uint32_t *container_id)=0
virtual bool NotifyCueEvent(uint32_t container_id, uint64_t timestamp)=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