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