File indexing completed on 2024-05-12 04:38:55

0001 /*
0002     SPDX-FileCopyrightText: 2017 Friedrich W. H. Kossebau <kossebau@kde.org>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef KDEVPLATFORM_TESTVCSEVENT_H
0008 #define KDEVPLATFORM_TESTVCSEVENT_H
0009 
0010 #include <QObject>
0011 #include <QList>
0012 #include <vcs/vcsevent.h>
0013 
0014 namespace KDevelop {
0015 class VcsRevision;
0016 }
0017 class QDateTime;
0018 class QString;
0019 
0020 class TestVcsEvent : public QObject
0021 {
0022     Q_OBJECT
0023 
0024 private Q_SLOTS:
0025     void initTestCase();
0026     void testCopyConstructor();
0027     void testAssignOperator();
0028 
0029 private:
0030     void setEvent(KDevelop::VcsEvent& event,
0031                   const KDevelop::VcsRevision& revision,
0032                   const QString& author,
0033                   const QDateTime& date,
0034                   const QString& message,
0035                   const QList<KDevelop::VcsItemEvent>& items);
0036     void compareEvent(const KDevelop::VcsEvent& event,
0037                       const KDevelop::VcsRevision& revision,
0038                       const QString& author,
0039                       const QDateTime& date,
0040                       const QString& message,
0041                       const QList<KDevelop::VcsItemEvent>& items);
0042 };
0043 
0044 #endif // KDEVPLATFORM_TESTVCSEVENT_H