7 #ifndef PACKAGER_MEDIA_FORMATS_WEBM_MKV_WRITER_H_
8 #define PACKAGER_MEDIA_FORMATS_WEBM_MKV_WRITER_H_
13 #include <mkvmuxer/mkvmuxer.h>
15 #include <packager/file/file_closer.h>
16 #include <packager/macros/classes.h>
17 #include <packager/status.h>
32 Status
Open(
const std::string& name);
38 mkvmuxer::int32
Write(
const void* buf, mkvmuxer::uint32 len)
override;
41 mkvmuxer::int64
Position()
const override;
44 mkvmuxer::int32
Position(mkvmuxer::int64 position)
override;
53 mkvmuxer::int64 position)
override;
63 File* file() {
return file_.get(); }
66 std::unique_ptr<File, FileCloser> file_;
68 mkvmuxer::int64 position_;
All the methods that are virtual are virtual for mocking.