File indexing completed on 2024-04-28 05:50:34

0001 /*
0002     SPDX-FileCopyrightText: 2013 Kurt Hindenburg <kurt.hindenburg@gmail.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef HISTORYTEST_H
0008 #define HISTORYTEST_H
0009 
0010 #include <kde_terminal_interface.h>
0011 
0012 #include "../characters/Character.h"
0013 #include "../history/HistoryScrollFile.h"
0014 #include "../history/HistoryScrollNone.h"
0015 #include "../history/HistoryTypeFile.h"
0016 #include "../history/HistoryTypeNone.h"
0017 #include "../history/compact/CompactHistoryScroll.h"
0018 #include "../history/compact/CompactHistoryType.h"
0019 
0020 namespace Konsole
0021 {
0022 class HistoryTest : public QObject
0023 {
0024     Q_OBJECT
0025 
0026 private Q_SLOTS:
0027     void initTestCase();
0028     void cleanupTestCase();
0029     void testHistoryNone();
0030     void testHistoryFile();
0031     void testCompactHistory();
0032     void testEmulationHistory();
0033     void testHistoryScroll();
0034     void testHistoryReflow();
0035     void testHistoryTypeChange();
0036 
0037 private:
0038     static constexpr const char testString[] = "abcdefghijklmnopqrstuvwxyz1234567890";
0039     static constexpr const int testStringSize = sizeof(testString) / sizeof(char) - 1;
0040     Character *testImage = nullptr;
0041 };
0042 
0043 }
0044 
0045 #endif // HISTORYTEST_H