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/adaptation_set.h"
15 #include "packager/mpd/base/content_protection_element.h"
16 #include "packager/mpd/base/mpd_builder.h"
17 #include "packager/mpd/base/period.h"
18 #include "packager/mpd/base/representation.h"
28 MOCK_METHOD1(
ToString,
bool(std::string* output));
37 bool content_protection_in_adaptation_set));
41 uint32_t sequence_counter_ = 0;
55 void(
const std::string& drm_uuid,
const std::string& pssh));
56 MOCK_METHOD1(
AddRole,
void(AdaptationSet::Role role));
65 uint32_t sequence_counter_ = 0;
77 void(
const std::string& drm_uuid,
const std::string& pssh));
79 void(int64_t start_time, int64_t duration, uint64_t size));
86 #endif // MPD_BASE_MOCK_MPD_BUILDER_H_
virtual Period * GetOrCreatePeriod(double start_time_in_seconds)
virtual void ForceSetSegmentAlignment(bool segment_alignment)
virtual void AddNewSegment(int64_t start_time, int64_t duration, uint64_t size)
All the methods that are virtual are virtual for mocking.
virtual bool ToString(std::string *output) WARN_UNUSED_RESULT
virtual void SetSampleDuration(uint32_t sample_duration)
virtual void UpdateContentProtectionPssh(const std::string &drm_uuid, const std::string &pssh)
double start_time_in_seconds() const
This class generates DASH MPDs (Media Presentation Descriptions).
virtual Representation * AddRepresentation(const MediaInfo &media_info)
virtual AdaptationSet * GetOrCreateAdaptationSet(const MediaInfo &media_info, bool content_protection_in_adaptation_set)
virtual void AddContentProtectionElement(const ContentProtectionElement &element)
virtual Representation * CopyRepresentation(const Representation &representation)
virtual void AddAdaptationSetSwitching(const AdaptationSet *adaptation_set)
virtual void AddRole(Role role)
virtual void AddContentProtectionElement(const ContentProtectionElement &element)
virtual void AddTrickPlayReference(const AdaptationSet *adaptation_set)
virtual void UpdateContentProtectionPssh(const std::string &drm_uuid, const std::string &pssh)
virtual const MediaInfo & GetMediaInfo() const