7 #ifndef MPD_BASE_MOCK_MPD_BUILDER_H_
8 #define MPD_BASE_MOCK_MPD_BUILDER_H_
10 #include <gmock/gmock.h>
12 #include "packager/base/compiler_specific.h"
13 #include "packager/base/synchronization/lock.h"
14 #include "packager/mpd/base/content_protection_element.h"
15 #include "packager/mpd/base/mpd_builder.h"
27 MOCK_METHOD1(
ToString,
bool(std::string* output));
40 void(
const std::string& drm_uuid,
const std::string& pssh));
41 MOCK_METHOD1(
AddRole,
void(AdaptationSet::Role role));
46 base::AtomicSequenceNumber sequence_counter_;
58 void(
const std::string& drm_uuid,
const std::string& pssh));
60 void(uint64_t start_time, uint64_t duration, uint64_t size));
66 #endif // MPD_BASE_MOCK_MPD_BUILDER_H_
virtual void AddNewSegment(uint64_t start_time, uint64_t duration, uint64_t size)
virtual void SetSampleDuration(uint32_t sample_duration)
virtual Representation * AddRepresentation(const MediaInfo &media_info)
This class generates DASH MPDs (Media Presentation Descriptions).
virtual void AddContentProtectionElement(const ContentProtectionElement &element)
virtual void AddRole(Role role)
virtual void UpdateContentProtectionPssh(const std::string &drm_uuid, const std::string &pssh)
virtual bool ToString(std::string *output)
virtual void ForceSetSegmentAlignment(bool segment_alignment)
virtual void AddContentProtectionElement(const ContentProtectionElement &element)
virtual AdaptationSet * AddAdaptationSet(const std::string &lang)
virtual void UpdateContentProtectionPssh(const std::string &drm_uuid, const std::string &pssh)