File indexing completed on 2024-05-12 04:38:54
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_TESTVCSANNOTATIONLINE_H 0008 #define KDEVPLATFORM_TESTVCSANNOTATIONLINE_H 0009 0010 #include <QObject> 0011 0012 namespace KDevelop { 0013 class VcsAnnotationLine; 0014 class VcsRevision; 0015 } 0016 class QDateTime; 0017 class QString; 0018 0019 class TestVcsAnnotationLine : public QObject 0020 { 0021 Q_OBJECT 0022 0023 private Q_SLOTS: 0024 void initTestCase(); 0025 void testCopyConstructor(); 0026 void testAssignOperator(); 0027 0028 private: 0029 void setAnnotationLine(KDevelop::VcsAnnotationLine& annotationLine, 0030 int lineNumber, 0031 const QString& text, 0032 const QString& author, 0033 const KDevelop::VcsRevision& revision, 0034 const QDateTime& date, 0035 const QString& commitMessage); 0036 void compareAnnotationLine(const KDevelop::VcsAnnotationLine& annotationLine, 0037 int lineNumber, 0038 const QString& text, 0039 const QString& author, 0040 const KDevelop::VcsRevision& revision, 0041 const QDateTime& date, 0042 const QString& commitMessage); 0043 }; 0044 0045 #endif // KDEVPLATFORM_TESTVCSANNOTATIONLINE_H