7 #ifndef MEDIA_FILE_FILE_CLOSER_H_ 8 #define MEDIA_FILE_FILE_CLOSER_H_ 10 #include "packager/base/logging.h" 11 #include "packager/file/file.h" 18 inline void operator()(
File* file)
const {
20 const std::string filename = file->
file_name();
22 LOG(WARNING) <<
"Failed to close the file properly: " << filename;
30 #endif // MEDIA_FILE_FILE_CLOSER_H_ Define an abstract file interface.
const std::string & file_name() const
All the methods that are virtual are virtual for mocking.