File indexing completed on 2024-12-22 04:12:01

0001 /*
0002  * SPDX-FileCopyrightText: 2017 Boudewijn Rempt <boud@valdyas.org>
0003  *
0004  * SPDX-License-Identifier: LGPL-2.0-or-later
0005  */
0006 
0007 #ifndef TESTRESOURCELOCATOR_H
0008 #define TESTRESOURCELOCATOR_H
0009 
0010 #include <QObject>
0011 
0012 class KisResourceLocator;
0013 
0014 
0015 class TestResourceLocator : public QObject
0016 {
0017     Q_OBJECT
0018 private Q_SLOTS:
0019     void initTestCase();
0020     void testLocatorInitialization();
0021     void testStorageInitialization();
0022     void testLocatorSynchronization();
0023 
0024     void testResourceLocationBase();
0025     void testResource();
0026     void testResourceForId();
0027     void testDocumentStorage();
0028 
0029     void cleanupTestCase();
0030 
0031     void testSyncVersions();
0032 
0033     void testImportExportResource();
0034     void testImportDuplicatedResource();
0035 
0036 private:
0037 
0038     QString m_srcLocation;
0039     QString m_dstLocation;
0040 
0041     KisResourceLocator *m_locator;
0042 };
0043 
0044 #endif