#include "FtpConnection.h" #include #include #include #include "Exception.h" #include "util.h" #include "SocketCore.h" #include "Request.h" #include "Option.h" #include "DlRetryEx.h" #include "DlAbortEx.h" #include "AuthConfigFactory.h" #include "AuthConfig.h" namespace aria2 { class FtpConnectionTest:public CppUnit::TestFixture { CPPUNIT_TEST_SUITE(FtpConnectionTest); CPPUNIT_TEST(testReceiveResponse); CPPUNIT_TEST(testReceiveResponse_overflow); CPPUNIT_TEST(testSendMdtm); CPPUNIT_TEST(testReceiveMdtmResponse); CPPUNIT_TEST(testSendPwd); CPPUNIT_TEST(testReceivePwdResponse); CPPUNIT_TEST(testReceivePwdResponse_unquotedResponse); CPPUNIT_TEST(testReceivePwdResponse_badStatus); CPPUNIT_TEST(testSendCwd); CPPUNIT_TEST(testSendCwd_baseWorkingDir); CPPUNIT_TEST(testReceiveSizeResponse); CPPUNIT_TEST_SUITE_END(); private: SharedHandle _serverSocket; uint16_t _listenPort; SharedHandle _clientSocket; SharedHandle _ftp; SharedHandle