9 #ifndef MPD_UTIL_MPD_WRITER_H_ 10 #define MPD_UTIL_MPD_WRITER_H_ 17 #include "packager/base/macros.h" 18 #include "packager/mpd/base/mpd_notifier.h" 19 #include "packager/mpd/base/mpd_options.h" 37 virtual std::unique_ptr<MpdNotifier> Create(
58 bool AddFile(
const std::string& media_info_path,
59 const std::string& mpd_path);
63 void AddBaseUrl(
const std::string& base_url);
75 friend class MpdWriterTest;
77 void SetMpdNotifierFactoryForTest(
78 std::unique_ptr<MpdNotifierFactory> factory);
80 std::list<MediaInfo> media_infos_;
81 std::vector<std::string> base_urls_;
83 std::unique_ptr<MpdNotifierFactory> notifier_factory_;
90 #endif // MPD_UTIL_MPD_WRITER_H_
All the methods that are virtual are virtual for mocking.
bool WriteMpdToFile(const std::string &output_path, MpdBuilder *mpd_builder)