#include "DefaultBtProgressInfoFile.h" #include "Option.h" #include "Util.h" #include "Exception.h" #include "MockBtContext.h" #include "MockPeerStorage.h" #include "MockPieceStorage.h" #include "BtRuntime.h" #include "BtRegistry.h" #include "prefs.h" #include "SingleFileDownloadContext.h" #include "Piece.h" #include "FileEntry.h" #include #include namespace aria2 { class DefaultBtProgressInfoFileTest:public CppUnit::TestFixture { CPPUNIT_TEST_SUITE(DefaultBtProgressInfoFileTest); CPPUNIT_TEST(testSave); CPPUNIT_TEST(testSave_nonBt); CPPUNIT_TEST(testLoad); CPPUNIT_TEST(testLoad_nonBt); CPPUNIT_TEST(testLoad_nonBt_pieceLengthShorter); CPPUNIT_TEST_SUITE_END(); private: SharedHandle _btContext; SharedHandle _pieceStorage; SharedHandle