Warning, file /education/cantor/src/lib/test/backendtest.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*
0002     SPDX-License-Identifier: GPL-2.0-or-later
0003     SPDX-FileCopyrightText: 2009 Alexander Rieder <alexanderrieder@gmail.com>
0004 */
0005 
0006 #ifndef BACKENDTEST_H
0007 #define BACKENDTEST_H
0008 
0009 #include <QObject>
0010 #include <QtTest>
0011 #include <QString>
0012 
0013 #include <cantortest_export.h>
0014 
0015 namespace Cantor
0016 {
0017     class Session;
0018     class Expression;
0019 }
0020 
0021 class CANTORTEST_EXPORT BackendTest : public QObject
0022 {
0023     Q_OBJECT
0024 
0025 private Q_SLOTS:
0026     void cleanupTestCase();
0027 
0028 protected:
0029     void initTestCase();
0030     Cantor::Expression* evalExp(const QString& exp);
0031     QString cleanOutput( const QString& out );
0032     Cantor::Session* session();
0033     void waitForSignal( QObject* sender, const char* signal);
0034 
0035 private:
0036     void createSession();
0037     Cantor::Session* m_session{nullptr};
0038     virtual QString backendName() = 0;
0039 };
0040 
0041 #endif // BACKENDTEST_H