test_definesandincludes.h 1.83 KB
Newer Older
1 2 3 4 5 6
/************************************************************************
 *                                                                      *
 * Copyright 2010 Andreas Pakulat <apaku@gmx.de>                        *
 *                                                                      *
 * This program is free software; you can redistribute it and/or modify *
 * it under the terms of the GNU General Public License as published by *
Sergey Kalinichev's avatar
Sergey Kalinichev committed
7 8
 * the Free Software Foundation; either version 2 or version 3 of the   *
 * License, or (at your option) any later version.                      *
9 10 11 12 13 14 15 16 17 18
 *                                                                      *
 * This program is distributed in the hope that it will be useful, but  *
 * WITHOUT ANY WARRANTY; without even the implied warranty of           *
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU     *
 * General Public License for more details.                             *
 *                                                                      *
 * You should have received a copy of the GNU General Public License    *
 * along with this program; if not, see <http://www.gnu.org/licenses/>. *
 ************************************************************************/

19 20
#ifndef TEST_DEFINESANDINCLUDES_H
#define TEST_DEFINESANDINCLUDES_H
21

22
#include <QObject>
23 24 25 26

namespace KDevelop
{
class TestCore;
27 28
class IProject;
class ProjectsGenerator;
29 30
}

31
class TestDefinesAndIncludes : public QObject
32
{
Sergey Kalinichev's avatar
Sergey Kalinichev committed
33
    Q_OBJECT
34
private Q_SLOTS:
35
    void init();
36 37
    void initTestCase();
    void cleanupTestCase();
38
    void cleanup();
39 40
    void loadSimpleProject();
    void loadMultiPathProject();
Sergey Kalinichev's avatar
Sergey Kalinichev committed
41
    void testNoProjectIncludeDirectories();
42
    void testEmptyProject();
43 44 45
private:
    KDevelop::IProject* m_currentProject = nullptr;
    KDevelop::ProjectsGenerator* m_projectGenerator = nullptr;
46 47 48
};

#endif