| 1 | // |
| 2 | // ExpireLRUCacheTest.h |
| 3 | // |
| 4 | // Tests for ExpireLRUCache |
| 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 ExpireLRUCacheTest_INCLUDED |
| 13 | #define ExpireLRUCacheTest_INCLUDED |
| 14 | |
| 15 | |
| 16 | #include "Poco/Foundation.h" |
| 17 | #include "Poco/CppUnit/TestCase.h" |
| 18 | |
| 19 | |
| 20 | class ExpireLRUCacheTest: public CppUnit::TestCase |
| 21 | { |
| 22 | public: |
| 23 | ExpireLRUCacheTest(const std::string& name); |
| 24 | ~ExpireLRUCacheTest(); |
| 25 | |
| 26 | void testClear(); |
| 27 | void testExpire0(); |
| 28 | void testExpireN(); |
| 29 | void testAccessExpireN(); |
| 30 | void testCacheSize0(); |
| 31 | void testCacheSize1(); |
| 32 | void testCacheSize2(); |
| 33 | void testCacheSizeN(); |
| 34 | void testDuplicateAdd(); |
| 35 | |
| 36 | void setUp(); |
| 37 | void tearDown(); |
| 38 | static CppUnit::Test* suite(); |
| 39 | }; |
| 40 | |
| 41 | |
| 42 | #endif // ExpireLRUCacheTest_INCLUDED |
| 43 | |