mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-05-12 05:57:13 +02:00
Switched to POCO library for unified platform/library interface. Deprecated the external module API. It was creating more problems than solving. Removed most built-in libraries in favor of system libraries for easier maintenance. Cleaned and secured code with help from static analyzers.
43 lines
828 B
C++
43 lines
828 B
C++
//
|
|
// UniqueExpireLRUCacheTest.h
|
|
//
|
|
// Tests for UniqueExpireLRUCache
|
|
//
|
|
// Copyright (c) 2006, Applied Informatics Software Engineering GmbH.
|
|
// and Contributors.
|
|
//
|
|
// SPDX-License-Identifier: BSL-1.0
|
|
//
|
|
|
|
#ifndef UniqueExpireLRUCacheTest_INCLUDED
|
|
#define UniqueExpireLRUCacheTest_INCLUDED
|
|
|
|
|
|
#include "Poco/Foundation.h"
|
|
#include "CppUnit/TestCase.h"
|
|
|
|
|
|
class UniqueExpireLRUCacheTest: public CppUnit::TestCase
|
|
{
|
|
public:
|
|
UniqueExpireLRUCacheTest(const std::string& name);
|
|
~UniqueExpireLRUCacheTest();
|
|
|
|
void testClear();
|
|
void testAccessClear();
|
|
void testExpire0();
|
|
void testExpireN();
|
|
void testCacheSize0();
|
|
void testCacheSize1();
|
|
void testCacheSize2();
|
|
void testCacheSizeN();
|
|
void testDuplicateAdd();
|
|
|
|
void setUp();
|
|
void tearDown();
|
|
static CppUnit::Test* suite();
|
|
};
|
|
|
|
|
|
#endif // UniqueExpireLRUCacheTest_INCLUDED
|