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"
17 namespace edash_packager {
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));
44 MOCK_METHOD1(
SetGroup,
void(
int group_number));
45 MOCK_CONST_METHOD0(
Group,
int());
49 base::AtomicSequenceNumber sequence_counter_;
61 void(
const std::string& drm_uuid,
const std::string& pssh));
63 void(uint64_t start_time, uint64_t duration, uint64_t size));
69 #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)