1 | // |
---|---|
2 | // HTTPCookieTest.h |
3 | // |
4 | // Definition of the HTTPCookieTest 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 HTTPCookieTest_INCLUDED |
14 | #define HTTPCookieTest_INCLUDED |
15 | |
16 | |
17 | #include "Poco/Net/Net.h" |
18 | #include "Poco/DateTime.h" |
19 | #include "Poco/CppUnit/TestCase.h" |
20 | |
21 | |
22 | class HTTPCookieTest: public CppUnit::TestCase |
23 | { |
24 | public: |
25 | HTTPCookieTest(const std::string& name); |
26 | ~HTTPCookieTest(); |
27 | |
28 | void testCookie(); |
29 | void testEscape(); |
30 | void testUnescape(); |
31 | void testExpiryFuture(); |
32 | void testExpiryPast(); |
33 | void testCookieExpiry(Poco::DateTime expiryTime); |
34 | |
35 | void setUp(); |
36 | void tearDown(); |
37 | |
38 | static CppUnit::Test* suite(); |
39 | |
40 | private: |
41 | }; |
42 | |
43 | |
44 | #endif // HTTPCookieTest_INCLUDED |
45 |