File indexing completed on 2024-05-19 04:42:10
0001 /* 0002 SPDX-FileCopyrightText: 2011 Silvère Lestang <silvere.lestang@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef KDEVPLATFORM_PLUGIN_TEST_STANDARDOUTPUTVIEW_H 0008 #define KDEVPLATFORM_PLUGIN_TEST_STANDARDOUTPUTVIEW_H 0009 0010 #include <QObject> 0011 0012 #include <shell/uicontroller.h> 0013 0014 namespace KDevelop 0015 { 0016 class TestCore; 0017 class IOutputView; 0018 } 0019 0020 namespace Sublime 0021 { 0022 class View; 0023 class Controller; 0024 } 0025 0026 class OutputWidget; 0027 0028 class StandardOutputViewTest: public QObject 0029 { 0030 Q_OBJECT 0031 private: 0032 OutputWidget* toolViewPointer(const QString& toolViewTitle); 0033 KDevelop::TestCore* m_testCore; 0034 KDevelop::IOutputView* m_stdOutputView; 0035 KDevelop::UiController* m_controller; 0036 int toolViewId; 0037 int outputId[5]; 0038 0039 private Q_SLOTS: 0040 void initTestCase(); 0041 void cleanupTestCase(); 0042 void testRegisterAndRemoveToolView(); 0043 void testActions(); 0044 void testRegisterAndRemoveOutput(); 0045 void testSetModelAndDelegate(); 0046 void testStandardToolViews(); 0047 void testStandardToolViews_data(); 0048 }; 0049 0050 #endif // KDEVPLATFORM_PLUGIN_TEST_STANDARDOUTPUTVIEW_H