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 FTPSClientSession; |
25 | |
26 | } } |
27 | |
28 | class DialogServer; |
29 | |
30 | class FTPSClientSessionTest: public CppUnit::TestCase |
31 | { |
32 | public: |
33 | FTPSClientSessionTest(const std::string& name); |
34 | ~FTPSClientSessionTest(); |
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 | void testUploadSSL(); |
49 | |
50 | void setUp(); |
51 | void tearDown(); |
52 | |
53 | static CppUnit::Test* suite(); |
54 | |
55 | private: |
56 | void login(DialogServer& server, Poco::Net::FTPSClientSession& session); |
57 | }; |
58 | |
59 | |
60 | #endif // FTPClientSessionTest_INCLUDED |
61 |