File indexing completed on 2024-04-28 05:50:34
0001 /* 0002 SPDX-FileCopyrightText: 2023 Theodore Wang <theodorewang12@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef PROCESSINFOTEST_H 0008 #define PROCESSINFOTEST_H 0009 0010 // Others 0011 #include <KProcess> 0012 0013 #include <QObject> 0014 0015 namespace Konsole 0016 { 0017 0018 class ProcessInfo; 0019 0020 class ProcessInfoTest : public QObject 0021 { 0022 Q_OBJECT 0023 0024 private Q_SLOTS: 0025 // testing of ProcessInfo::update is itnegrated into the tests 0026 void testProcessValidity(); 0027 void testProcessCwd(); 0028 void testProcessNameSpecialChars(); 0029 0030 private: 0031 std::unique_ptr<ProcessInfo> createProcInfo(const KProcess &proc); 0032 }; 0033 0034 } // PROCESSINFOTEST_H 0035 0036 #endif