1 /* 2 SPDX-FileCopyrightText: 2011 Silvère Lestang <silvere.lestang@gmail.com> 3 4 SPDX-License-Identifier: GPL-2.0-or-later 5 */ 6 7 #ifndef KDEVPLATFORM_PLUGIN_TEST_STANDARDOUTPUTVIEW_H 8 #define KDEVPLATFORM_PLUGIN_TEST_STANDARDOUTPUTVIEW_H 9 10 #include <QObject> 11 12 #include <shell/uicontroller.h> 13 14 namespace KDevelop 15 { 16 class TestCore; 17 class IOutputView; 18 } 19 20 namespace Sublime 21 { 22 class View; 23 class Controller; 24 } 25 26 class OutputWidget; 27 28 class StandardOutputViewTest: public QObject 29 { 30 Q_OBJECT 31 private: 32 OutputWidget* toolViewPointer(const QString& toolViewTitle); 33 KDevelop::TestCore* m_testCore; 34 KDevelop::IOutputView* m_stdOutputView; 35 KDevelop::UiController* m_controller; 36 int toolViewId; 37 int outputId[5]; 38 static const QString toolViewTitle; 39 40 private Q_SLOTS: 41 void initTestCase(); 42 void cleanupTestCase(); 43 void testRegisterAndRemoveToolView(); 44 void testActions(); 45 void testRegisterAndRemoveOutput(); 46 void testSetModelAndDelegate(); 47 void testStandardToolViews(); 48 void testStandardToolViews_data(); 49 }; 50 51 #endif // KDEVPLATFORM_PLUGIN_TEST_STANDARDOUTPUTVIEW_H 52