#include "download_helper.h" #include #include #include #include #include "RequestGroup.h" #include "DownloadContext.h" #include "Option.h" #include "array_fun.h" #include "prefs.h" #include "Exception.h" #include "util.h" #include "FileEntry.h" #ifdef ENABLE_BITTORRENT # include "bittorrent_helper.h" #endif // ENABLE_BITTORRENT namespace aria2 { class DownloadHelperTest:public CppUnit::TestFixture { CPPUNIT_TEST_SUITE(DownloadHelperTest); CPPUNIT_TEST(testCreateRequestGroupForUri); CPPUNIT_TEST(testCreateRequestGroupForUri_parameterized); CPPUNIT_TEST(testCreateRequestGroupForUriList); #ifdef ENABLE_BITTORRENT CPPUNIT_TEST(testCreateRequestGroupForUri_BitTorrent); CPPUNIT_TEST(testCreateRequestGroupForBitTorrent); #endif // ENABLE_BITTORRENT #ifdef ENABLE_METALINK CPPUNIT_TEST(testCreateRequestGroupForUri_Metalink); CPPUNIT_TEST(testCreateRequestGroupForMetalink); #endif // ENABLE_METALINK CPPUNIT_TEST_SUITE_END(); private: std::shared_ptr