mirror of
https://github.com/aria2/aria2.git
synced 2025-01-04 09:03:46 +00:00
34 lines
759 B
C++
34 lines
759 B
C++
#ifndef D_MOCK_BT_PROGRESS_INFO_FILE_H
|
|
#define D_MOCK_BT_PROGRESS_INFO_FILE_H
|
|
|
|
#include "BtProgressInfoFile.h"
|
|
|
|
namespace aria2 {
|
|
|
|
class MockBtProgressInfoFile : public BtProgressInfoFile {
|
|
private:
|
|
std::string filename;
|
|
|
|
public:
|
|
MockBtProgressInfoFile() {}
|
|
virtual ~MockBtProgressInfoFile() {}
|
|
|
|
virtual std::string getFilename() CXX11_OVERRIDE { return filename; }
|
|
|
|
void setFilename(const std::string& filename) { this->filename = filename; }
|
|
|
|
virtual bool exists() CXX11_OVERRIDE { return false; }
|
|
|
|
virtual void save() CXX11_OVERRIDE {}
|
|
|
|
virtual void load() CXX11_OVERRIDE {}
|
|
|
|
virtual void removeFile() CXX11_OVERRIDE {}
|
|
|
|
virtual void updateFilename() CXX11_OVERRIDE {}
|
|
};
|
|
|
|
} // namespace aria2
|
|
|
|
#endif // D_MOCK_BT_PROGRESS_INFO_FILE_H
|