7 #ifndef PACKAGER_HLS_BASE_MOCK_MEDIA_PLAYLIST_H_
8 #define PACKAGER_HLS_BASE_MOCK_MEDIA_PLAYLIST_H_
10 #include <gmock/gmock.h>
12 #include <packager/hls/base/media_playlist.h>
22 const std::string& name,
23 const std::string& group_id);
26 MOCK_METHOD1(
SetMediaInfo,
bool(
const MediaInfo& media_info));
28 void(
const std::string& file_name,
31 uint64_t start_byte_offset,
34 void(int64_t timestamp,
35 uint64_t start_byte_offset,
38 void(EncryptionMethod method,
39 const std::string& url,
40 const std::string& key_id,
41 const std::string& iv,
42 const std::string& key_format,
43 const std::string& key_format_versions));
45 MOCK_METHOD1(
WriteToFile,
bool(
const std::filesystem::path& file_path));
55 bool(uint32_t* width, uint32_t* height));
All the methods that are virtual are virtual for mocking.