File indexing completed on 2024-04-28 05:31:31

0001 #ifndef KSYSGUARD_SIGNALPLOTTERTEST_H
0002 #define KSYSGUARD_SIGNALPLOTTERTEST_H
0003 
0004 #include <QTest>
0005 #include <Qt>
0006 
0007 class KSignalPlotter;
0008 class TestSignalPlotter : public QObject
0009 {
0010     Q_OBJECT
0011 private slots:
0012     void init();
0013     void cleanup();
0014 
0015     void testAddRemoveBeams();
0016     void testAddRemoveBeamsWithData();
0017     void testReorderBeams();
0018     void testReorderBeamsWithData();
0019     void testMaximumRange();
0020     void testNegativeMinimumRange();
0021     void testSetBeamColor();
0022     void testSetUnit();
0023     void testGettersSetters();
0024     void testAddingData();
0025     void testNonZeroRange();
0026     void testNonZeroRange2();
0027     void testNiceRangeCalculation_data();
0028     void testNiceRangeCalculation();
0029 
0030 private:
0031     KSignalPlotter *s;
0032 };
0033 
0034 #endif // KSYSGUARD_SIGNALPLOTTERTEST_H