Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
/*
* SPDX-FileCopyrightText: 2011 Dmitry Kazakov <[email protected]>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef __KIS_STROKES_QUEUE_TEST_H
#define __KIS_STROKES_QUEUE_TEST_H
#include <simpletest.h>
#include "kis_types.h"
#include "kis_stroke_job_strategy.h"
class KisStrokesQueueTest : public QObject
{
Q_OBJECT
private Q_SLOTS:
void testSequentialJobs();
void testConcurrentSequentialBarrier();
void testExclusiveStrokes();
void testBarrierStrokeJobs();
void testStrokesOverlapping();
void testImmediateCancel();
void testOpenedStrokeCounter();
void testAsyncCancelWhileOpenedStroke();
void testStrokesLevelOfDetail();
void testStrokeWithMixedLodJobs();
void testMultipleLevelOfDetailStrokes();
void testMultipleLevelOfDetailAfterLegacy();
void testMultipleLevelOfDetailMixedLegacy();
void testCancelBetweenLodNStrokes();
void testUFOVisitBetweenLodNStrokes();
void testLodUndoBase();
void testLodUndoBase2();
void testMutatedJobs();
void testUniquelyConcurrentJobs();
private:
struct LodStrokesQueueTester;
static void checkJobsOverlapping(LodStrokesQueueTester &t, KisStrokeId id, KisStrokeJobData::Sequentiality first, KisStrokeJobData::Sequentiality second, bool allowed);
};
#endif /* __KIS_STROKES_QUEUE_TEST_H */