File indexing completed on 2024-05-19 04:42:05
0001 /* 0002 SPDX-FileCopyrightText: 2010 Benjamin Port <port.benjamin@gmail.com> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef TEST_QTHELPPLUGIN_H 0008 #define TEST_QTHELPPLUGIN_H 0009 0010 #include <tests/testcore.h> 0011 0012 class QtHelpPlugin; 0013 0014 class TestQtHelpPlugin : public QObject 0015 { 0016 Q_OBJECT 0017 public: 0018 TestQtHelpPlugin(); 0019 private: 0020 KDevelop::TestCore* m_testCore; 0021 QtHelpPlugin *m_plugin; 0022 private Q_SLOTS: 0023 void initTestCase(); 0024 void init(); 0025 0026 void testDefaultValue(); 0027 void testUnsetQtHelpDoc(); 0028 void testAddOneValidProvider(); 0029 void testAddTwoDifferentValidProvider(); 0030 void testAddInvalidProvider(); 0031 void testAddTwiceSameProvider(); 0032 void testRemoveOneProvider(); 0033 0034 void testDeclarationLookup_Class(); 0035 void testDeclarationLookup_Method(); 0036 void testDeclarationLookup_OperatorFunction(); 0037 0038 void cleanup(); 0039 void cleanupTestCase(); 0040 }; 0041 0042 #endif // TEST_QTHELPPLUGIN_H