1 | // |
---|---|
2 | // FTPClientSessionTest.h |
3 | // |
4 | // Definition of the FTPClientSessionTest class. |
5 | // |
6 | // Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH. |
7 | // and Contributors. |
8 | // |
9 | // SPDX-License-Identifier: BSL-1.0 |
10 | // |
11 | |
12 | |
13 | #ifndef FTPClientSessionTest_INCLUDED |
14 | #define FTPClientSessionTest_INCLUDED |
15 | |
16 | |
17 | #include "Poco/Net/Net.h" |
18 | #include "Poco/CppUnit/TestCase.h" |
19 | |
20 | |
21 | namespace Poco { |
22 | namespace Net { |
23 | |
24 | class FTPClientSession; |
25 | |
26 | } } |
27 | |
28 | class DialogServer; |
29 | |
30 | class FTPClientSessionTest: public CppUnit::TestCase |
31 | { |
32 | public: |
33 | FTPClientSessionTest(const std::string& name); |
34 | ~FTPClientSessionTest(); |
35 | |
36 | void testLogin1(); |
37 | void testLogin2(); |
38 | void testLogin3(); |
39 | void testLoginFailed1(); |
40 | void testLoginFailed2(); |
41 | void testCommands(); |
42 | void testDownloadPORT(); |
43 | void testDownloadEPRT(); |
44 | void testDownloadPASV(); |
45 | void testDownloadEPSV(); |
46 | void testUpload(); |
47 | void testList(); |
48 | |
49 | void setUp(); |
50 | void tearDown(); |
51 | |
52 | static CppUnit::Test* suite(); |
53 | |
54 | private: |
55 | void login(DialogServer& server, Poco::Net::FTPClientSession& session); |
56 | }; |
57 | |
58 | |
59 | #endif // FTPClientSessionTest_INCLUDED |
60 |