7 #ifndef PACKAGER_MEDIA_FORMATS_WEBM_MKV_WRITER_H_ 8 #define PACKAGER_MEDIA_FORMATS_WEBM_MKV_WRITER_H_ 13 #include "packager/file/file_closer.h" 14 #include "packager/status.h" 15 #include "packager/third_party/libwebm/src/mkvmuxer.hpp" 36 mkvmuxer::int32
Write(
const void* buf, mkvmuxer::uint32 len)
override;
39 mkvmuxer::int64
Position()
const override;
42 mkvmuxer::int32
Position(mkvmuxer::int64 position)
override;
51 mkvmuxer::int64 position)
override;
61 File* file() {
return file_.get(); }
64 std::unique_ptr<File, FileCloser> file_;
66 mkvmuxer::int64 position_;
75 #endif // PACKAGER_MEDIA_FORMATS_WEBM_MKV_WRITER_H_ Define an abstract file interface.
All the methods that are virtual are virtual for mocking.