File indexing completed on 2022-09-20 12:43:22

0001 /*
0002     SPDX-FileCopyrightText: 2014 Kevin Krammer <krammer@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005 */
0006 
0007 #ifndef KTRANSCRIPTCLEANTEST_H
0008 #define KTRANSCRIPTCLEANTEST_H
0009 
0010 #include <QLibrary>
0011 #include <QObject>
0012 
0013 class KTranscript;
0014 
0015 /**
0016  * @brief Test the KTranscript implementation class
0017  *
0018  * Runs tests on the KTranscriptImp scripting facility.
0019  *
0020  * The main difference to the test ktranscripttest is that it
0021  * creates a new instance of KTranscriptImp for each test while
0022  * the main test re-uses one instance due to internal use of
0023  * Q_GLOBAL_STATIC
0024  *
0025  * Test that require a "clean slate" can be added here, tests that do not
0026  * should be added to both.
0027  */
0028 class KTranscriptCleanTest : public QObject
0029 {
0030     Q_OBJECT
0031 public:
0032     KTranscriptCleanTest();
0033 
0034 private Q_SLOTS:
0035     void init();
0036     void cleanup();
0037 
0038     void test_data();
0039     void test();
0040 
0041 private:
0042     QLibrary m_library;
0043     KTranscript *m_transcript;
0044 };
0045 
0046 #endif /* KTRANSCRIPTCLEANTEST_H */