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(
39 const std::vector<std::string>& base_urls,
40 const std::string& output_path) = 0;
60 bool AddFile(
const std::string& media_info_path,
61 const std::string& mpd_path);
65 void AddBaseUrl(
const std::string& base_url);
74 bool WriteMpdToFile(
const char* file_name);
77 friend class MpdWriterTest;
79 void SetMpdNotifierFactoryForTest(
80 std::unique_ptr<MpdNotifierFactory> factory);
82 std::list<MediaInfo> media_infos_;
83 std::vector<std::string> base_urls_;
85 std::unique_ptr<MpdNotifierFactory> notifier_factory_;
92 #endif // MPD_UTIL_MPD_WRITER_H_