1 /* 2 SPDX-FileCopyrightText: 2017 Friedrich W. H. Kossebau <kossebau@kde.org> 3 4 SPDX-License-Identifier: GPL-2.0-or-later 5 */ 6 7 #ifndef KDEVPLATFORM_TESTVCSEVENT_H 8 #define KDEVPLATFORM_TESTVCSEVENT_H 9 10 #include <QObject> 11 #include <QList> 12 #include <vcs/vcsevent.h> 13 14 namespace KDevelop { 15 class VcsRevision; 16 } 17 class QDateTime; 18 class QString; 19 20 class TestVcsEvent : public QObject 21 { 22 Q_OBJECT 23 24 private Q_SLOTS: 25 void initTestCase(); 26 void testCopyConstructor(); 27 void testAssignOperator(); 28 29 private: 30 void setEvent(KDevelop::VcsEvent& event, 31 const KDevelop::VcsRevision& revision, 32 const QString& author, 33 const QDateTime& date, 34 const QString& message, 35 const QList<KDevelop::VcsItemEvent>& items); 36 void compareEvent(const KDevelop::VcsEvent& event, 37 const KDevelop::VcsRevision& revision, 38 const QString& author, 39 const QDateTime& date, 40 const QString& message, 41 const QList<KDevelop::VcsItemEvent>& items); 42 }; 43 44 #endif // KDEVPLATFORM_TESTVCSEVENT_H 45