File indexing completed on 2025-06-29 04:02:58

0001 /*
0002  *  SPDX-FileCopyrightText: 2010 Dmitry Kazakov <dimula73@gmail.com>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 #ifndef KIS_CHUNK_ALLOCATOR_TEST_H
0007 #define KIS_CHUNK_ALLOCATOR_TEST_H
0008 
0009 #include <simpletest.h>
0010 
0011 
0012 class KisChunkAllocatorTest : public QObject
0013 {
0014     Q_OBJECT
0015 
0016 private:
0017 qreal measureFragmentation(qint32 transactions, qint32 chunksAlloc,
0018                            qint32 chunksFree, bool printDetails);
0019 
0020 private Q_SLOTS:
0021     void testOperations();
0022     void testFragmentation();
0023 };
0024 
0025 #endif /* KIS_CHUNK_ALLOCATOR_TEST_H */
0026