File indexing completed on 2024-05-12 05:55:45

0001 /*
0002     This file is part of the Okteta Kasten module, made within the KDE community.
0003 
0004     SPDX-FileCopyrightText: 2019 Friedrich W. H. Kossebau <kossebau@kde.org>
0005 
0006     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0007 */
0008 
0009 #ifndef REPLACEJOBTEST_HPP
0010 #define REPLACEJOBTEST_HPP
0011 
0012 // Qt
0013 #include <QObject>
0014 
0015 namespace Okteta { class PieceTableByteArrayModel; }
0016 class QByteArray;
0017 
0018 class ReplaceJobTest : public QObject
0019 {
0020     Q_OBJECT
0021 
0022 private Q_SLOTS: // test functions
0023     void init();
0024 
0025     void testReplace_data();
0026     void testReplace();
0027 
0028 private:
0029     void compare(const Okteta::PieceTableByteArrayModel* byteArrayModel, const QByteArray& data);
0030 };
0031 
0032 #endif