#include "SegmentMan.h" #include #include "DownloadContext.h" #include "UnknownLengthPieceStorage.h" #include "DefaultPieceStorage.h" #include "Segment.h" #include "Option.h" #include "PieceSelector.h" namespace aria2 { class SegmentManTest:public CppUnit::TestFixture { CPPUNIT_TEST_SUITE(SegmentManTest); CPPUNIT_TEST(testNullBitfield); CPPUNIT_TEST(testCompleteSegment); CPPUNIT_TEST(testGetSegment_sameFileEntry); CPPUNIT_TEST(testRegisterPeerStat); CPPUNIT_TEST(testCancelAllSegments); CPPUNIT_TEST(testGetPeerStat); CPPUNIT_TEST(testGetCleanSegmentIfOwnerIsIdle); CPPUNIT_TEST_SUITE_END(); private: SharedHandle