#include "BtDependency.h" #include #include #include "DefaultPieceStorage.h" #include "DownloadContext.h" #include "RequestGroup.h" #include "Option.h" #include "Exception.h" #include "SegmentMan.h" #include "Segment.h" #include "FileEntry.h" #include "PieceSelector.h" #include "bittorrent_helper.h" #include "DirectDiskAdaptor.h" #include "ByteArrayDiskWriter.h" #include "MockPieceStorage.h" #include "prefs.h" #include "util.h" namespace aria2 { class BtDependencyTest:public CppUnit::TestFixture { CPPUNIT_TEST_SUITE(BtDependencyTest); CPPUNIT_TEST(testResolve); CPPUNIT_TEST(testResolve_nullDependee); CPPUNIT_TEST(testResolve_originalNameNoMatch); CPPUNIT_TEST(testResolve_singleFileWithoutOriginalName); CPPUNIT_TEST(testResolve_multiFile); CPPUNIT_TEST(testResolve_metadata); CPPUNIT_TEST(testResolve_loadError); CPPUNIT_TEST(testResolve_dependeeFailure); CPPUNIT_TEST(testResolve_dependeeInProgress); CPPUNIT_TEST_SUITE_END(); std::shared_ptr createDependant(const std::shared_ptr