| 21 | using namespace KDevelop; |
| 22 | |
| 23 | class TestDocumentController : public QObject |
| 24 | { |
| 25 | Q_OBJECT |
| 26 | private Q_SLOTS: |
| 27 | void initTestCase(); |
| 28 | void init(); |
| 29 | void cleanup(); |
| 30 | void cleanupTestCase(); |
| 31 | |
| 32 | void testOpeningNewDocumentFromText(); |
| 33 | void testOpeningDocumentFromUrl(); |
| 34 | void testSaveSomeDocuments(); |
| 35 | void testSaveAllDocuments(); |
| 36 | void testCloseAllDocuments(); |
| 37 | void testEmptyUrl(); |
| 38 | |
| 39 | private : |
| 40 | QUrl createFile(const QTemporaryDir& dir, const QString& filename); |
| 41 | |
| 42 | IDocumentController* m_subject; |
| 43 | QTemporaryDir m_tempDir; |
| 44 | QTemporaryFile m_file1; |
| 45 | QTemporaryFile m_file2; |
| 46 | }; |
| 47 | |
| 48 | #endif // KDEVPLATFORM_TEST_DOCUMENTCONTROLLER_H |
nothing calls this directly
no test coverage detected