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);
62 void AddBaseUrl(
const std::string& base_url);
71 bool WriteMpdToFile(
const char* file_name);
74 friend class MpdWriterTest;
76 void SetMpdNotifierFactoryForTest(
77 std::unique_ptr<MpdNotifierFactory> factory);
79 std::list<MediaInfo> media_infos_;
80 std::vector<std::string> base_urls_;
82 std::unique_ptr<MpdNotifierFactory> notifier_factory_;
89 #endif // MPD_UTIL_MPD_WRITER_H_