File indexing completed on 2024-04-28 15:29:30
0001 /* 0002 This file is part of the KDE libraries 0003 0004 SPDX-FileCopyrightText: 2007 Oswald Buddenhagen <ossi@kde.org> 0005 0006 SPDX-License-Identifier: LGPL-2.0-or-later 0007 */ 0008 0009 #ifndef kptyprocesstest_h 0010 #define kptyprocesstest_h 0011 0012 #include <kptyprocess.h> 0013 0014 #include <QTimer> 0015 0016 class KPtyProcessTest : public QObject 0017 { 0018 Q_OBJECT 0019 0020 private Q_SLOTS: 0021 void test_pty_basic(); 0022 void test_pty_signals(); 0023 void test_ctty(); 0024 void test_shared_pty(); 0025 void test_suspend_pty(); 0026 0027 // for pty_signals 0028 public Q_SLOTS: 0029 void slotReadyRead(); 0030 void slotDoRead(); 0031 void slotReadEof(); 0032 void slotBytesWritten(); 0033 void slotStep(); 0034 0035 private: 0036 KPtyProcess sp; 0037 QTimer delay; 0038 QByteArray log; 0039 int phase; 0040 }; 0041 0042 #endif