File indexing completed on 2024-05-12 04:39:15
0001 /* 0002 SPDX-FileCopyrightText: 2011 Martin Heide <martin.heide@gmx.net> 0003 SPDX-FileCopyrightText: 2012 Milian Wolff <mail@milianw.de> 0004 0005 SPDX-License-Identifier: LGPL-2.0-or-later 0006 */ 0007 0008 #ifndef SHELLBUDDYTEST_H 0009 #define SHELLBUDDYTEST_H 0010 0011 #include <QObject> 0012 #include <QDir> 0013 0014 namespace Sublime { 0015 class View; 0016 class Controller; 0017 } 0018 0019 namespace KDevelop { 0020 class IUiController; 0021 class IDocumentController; 0022 } 0023 0024 using namespace KDevelop; 0025 0026 class TestBuddies: public QObject 0027 { 0028 Q_OBJECT 0029 0030 private Q_SLOTS: 0031 void initTestCase(); 0032 void cleanupTestCase(); 0033 0034 void init(); 0035 void cleanup(); 0036 0037 void testDeclarationDefinitionOrder(); 0038 void testMultiDotFilenames(); 0039 void testActivation(); 0040 void testDisableBuddies(); 0041 void testDisableOpenAfterCurrent(); 0042 void testDisableAll(); 0043 0044 void testMultipleFolders(); 0045 void testSplitViewBuddies(); 0046 0047 void testDUChainBuddy(); 0048 void testDUChainBuddyVote(); 0049 0050 private: 0051 void verifyFilename(Sublime::View *view, const QString& endOfFilename); 0052 void createFile(const QDir& dir, const QString& filename); 0053 void enableBuddies(bool enable = true); 0054 void enableOpenAfterCurrent(bool enable = true); 0055 0056 IDocumentController *m_documentController; 0057 IUiController *m_uiController; 0058 Sublime::Controller *m_sublimeController; 0059 }; 0060 0061 #endif