Shaka Packager SDK
Public Member Functions | List of all members
shaka::MockRepresentation Class Reference
Inheritance diagram for shaka::MockRepresentation:
shaka::Representation

Public Member Functions

 MockRepresentation (uint32_t representation_id)
 
 MOCK_METHOD1 (AddContentProtectionElement, void(const ContentProtectionElement &element))
 
 MOCK_METHOD2 (UpdateContentProtectionPssh, void(const std::string &drm_uuid, const std::string &pssh))
 
 MOCK_METHOD3 (AddNewSegment, void(int64_t start_time, int64_t duration, uint64_t size))
 
 MOCK_METHOD1 (SetSampleDuration, void(uint32_t sample_duration))
 
 MOCK_CONST_METHOD0 (GetMediaInfo, const MediaInfo &())
 
- Public Member Functions inherited from shaka::Representation
bool Init ()
 
virtual void AddContentProtectionElement (const ContentProtectionElement &element)
 
virtual void UpdateContentProtectionPssh (const std::string &drm_uuid, const std::string &pssh)
 
virtual void AddNewSegment (int64_t start_time, int64_t duration, uint64_t size)
 
virtual void SetSampleDuration (uint32_t sample_duration)
 
virtual const MediaInfo & GetMediaInfo () const
 
xml::scoped_xml_ptr< xmlNode > GetXml ()
 
void SuppressOnce (SuppressFlag flag)
 
void SetPresentationTimeOffset (double presentation_time_offset)
 Set in SegmentBase / SegmentTemplate.
 
bool GetStartAndEndTimestamps (double *start_timestamp_seconds, double *end_timestamp_seconds) const
 
uint32_t id () const
 
void set_media_info (const MediaInfo &media_info)
 

Additional Inherited Members

- Public Types inherited from shaka::Representation
enum  SuppressFlag { kSuppressWidth = 1, kSuppressHeight = 2, kSuppressFrameRate = 4 }
 
- Protected Member Functions inherited from shaka::Representation
 Representation (const MediaInfo &media_info, const MpdOptions &mpd_options, uint32_t representation_id, std::unique_ptr< RepresentationStateChangeListener > state_change_listener)
 
 Representation (const Representation &representation, std::unique_ptr< RepresentationStateChangeListener > state_change_listener)
 

Detailed Description

Definition at line 68 of file mock_mpd_builder.h.


The documentation for this class was generated from the following files: