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/mpd/base/content_protection_element.h"
14 #include "packager/mpd/base/mpd_builder.h"
16 namespace edash_packager {
26 MOCK_METHOD1(
ToString,
bool(std::string* output));
39 void(
const std::string& drm_uuid,
const std::string& pssh));
40 MOCK_METHOD1(
AddRole,
void(AdaptationSet::Role role));
43 MOCK_METHOD1(
SetGroup,
void(
int group_number));
44 MOCK_CONST_METHOD0(
Group,
int());
48 base::AtomicSequenceNumber sequence_counter_;
60 void(
const std::string& drm_uuid,
const std::string& pssh));
62 void(uint64_t start_time, uint64_t duration, uint64_t size));
68 #endif // MPD_BASE_MOCK_MPD_BUILDER_H_
virtual void AddNewSegment(uint64_t start_time, uint64_t duration, uint64_t size)
virtual int Group() const
virtual AdaptationSet * AddAdaptationSet(const std::string &lang)
This class generates DASH MPDs (Media Presentation Descriptions).
virtual void ForceSetSegmentAlignment(bool segment_alignment)
virtual void SetSampleDuration(uint32_t sample_duration)
virtual void UpdateContentProtectionPssh(const std::string &drm_uuid, const std::string &pssh)
virtual void SetGroup(int group_number)
virtual void AddContentProtectionElement(const ContentProtectionElement &element)
virtual Representation * AddRepresentation(const MediaInfo &media_info)
virtual void UpdateContentProtectionPssh(const std::string &drm_uuid, const std::string &pssh)
virtual bool ToString(std::string *output)
virtual void AddRole(Role role)
virtual void AddContentProtectionElement(const ContentProtectionElement &element)