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: 2017 Boudewijn Rempt <[email protected]>
*
* SPDX-License-Identifier: LGPL-2.0-or-later
*/
#ifndef TESTRESOURCELOCATOR_H
#define TESTRESOURCELOCATOR_H
#include <QObject>
class KisResourceLocator;
class TestResourceLocator : public QObject
{
Q_OBJECT
private Q_SLOTS:
void initTestCase();
void init();
void testForeignKeysAreEnabled();
void testLocatorInitialization();
void testResourceLocationBase();
void testResource();
void testResourceForId();
void testDocumentStorage();
void testLoadResourceMetadataFromStorage();
void testLoadResourceMetadataFromStorage_data();
void testRemoveTagsFromStorage_data();
void testRemoveTagsFromStorage();
void testTagsForStorageUnique();
void testTagsForStorageShared();
void testDeleteStorageWithCrossLinkedTags();
void testDeleteStorageWithSharedTags();
void cleanupTestCase();
void testSyncVersions();
void testImportExportResource();
void testImportDuplicatedResource();
void testOrphanedMetadataRemoval_data();
void testOrphanedMetadataRemoval();
private:
QString m_srcLocation;
QString m_dstLocation;
KisResourceLocator *m_locator;
};
#endif