1 | // |
2 | // UniqueExpireCacheTest.h |
3 | // |
4 | // Tests for ExpireCache |
5 | // |
6 | // Copyright (c) 2006, Applied Informatics Software Engineering GmbH. |
7 | // and Contributors. |
8 | // |
9 | // SPDX-License-Identifier: BSL-1.0 |
10 | // |
11 | |
12 | #ifndef UniqueExpireCacheTest_INCLUDED |
13 | #define UniqueExpireCacheTest_INCLUDED |
14 | |
15 | |
16 | #include "Poco/Foundation.h" |
17 | #include "Poco/CppUnit/TestCase.h" |
18 | |
19 | |
20 | class UniqueExpireCacheTest: public CppUnit::TestCase |
21 | { |
22 | public: |
23 | UniqueExpireCacheTest(const std::string& name); |
24 | ~UniqueExpireCacheTest(); |
25 | |
26 | void testClear(); |
27 | void testAccessClear(); |
28 | void testDuplicateAdd(); |
29 | void testAccessDuplicateAdd(); |
30 | void testExpire0(); |
31 | void testAccessExpire0(); |
32 | void testExpireN(); |
33 | void testExpirationDecorator(); |
34 | void testAccessUpdate(); |
35 | |
36 | void setUp(); |
37 | void tearDown(); |
38 | static CppUnit::Test* suite(); |
39 | }; |
40 | |
41 | |
42 | #endif // UniqueExpireCacheTest_INCLUDED |
43 | |