1 /* 2 This file was partly taken from KDevelop's cvs plugin 3 SPDX-FileCopyrightText: 2007 Robert Gruber <rgruber@users.sourceforge.net> 4 5 Adapted for Git 6 SPDX-FileCopyrightText: 2008 Evgeniy Ivanov <powerfox@kde.ru> 7 8 Adapted for Bazaar 9 SPDX-FileCopyrightText: 2014 Maciej Poleski 10 11 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 12 */ 13 14 #ifndef KDEVPLATFORM_PLUGIN_TEST_BAZAAR_H 15 #define KDEVPLATFORM_PLUGIN_TEST_BAZAAR_H 16 17 #include <QObject> 18 19 class BazaarPlugin; 20 21 namespace KDevelop 22 { 23 class TestCore; 24 } 25 26 class TestBazaar: public QObject 27 { 28 Q_OBJECT 29 30 private: 31 void repoInit(); 32 void addFiles(); 33 void prepareWhoamiInformations(); 34 void commitFiles(); 35 36 private Q_SLOTS: 37 void initTestCase(); 38 void cleanupTestCase(); 39 void init(); 40 void cleanup(); 41 42 void testInit(); 43 void testAdd(); 44 void testCommit(); 45 void testAnnotation(); 46 void testRemoveEmptyFolder(); 47 void testRemoveEmptyFolderInFolder(); 48 void testRemoveUnindexedFile(); 49 void testRemoveFolderContainingUnversionedFiles(); 50 51 private: 52 BazaarPlugin* m_plugin; 53 void removeTempDirs(); 54 }; 55 56 #endif // KDEVPLATFORM_PLUGIN_TEST_BAZAAR_H 57