Changeset View
Changeset View
Standalone View
Standalone View
plugins/perforce/test/test_perforce.h
- This file was added.
1 | /*************************************************************************** | ||||
---|---|---|---|---|---|
2 | * This file was inspired by KDevelop's git plugin * | ||||
3 | * Copyright 2008 Evgeniy Ivanov <powerfox@kde.ru> * | ||||
4 | * * | ||||
5 | * Adapted for Perforce * | ||||
6 | * Copyright 2011 Morten Danielsen Volden <mvolden2@gmail.com> * | ||||
7 | * * | ||||
8 | * This program is free software: you can redistribute it and/or modify * | ||||
9 | * it under the terms of the GNU General Public License as published by * | ||||
10 | * the Free Software Foundation, either version 2 of the License, or * | ||||
11 | * (at your option) any later version. * | ||||
12 | * * | ||||
13 | * This program is distributed in the hope that it will be useful, * | ||||
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * | ||||
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * | ||||
16 | * GNU General Public License for more details. * | ||||
17 | * * | ||||
18 | * You should have received a copy of the GNU General Public License * | ||||
19 | * along with this program. If not, see <http://www.gnu.org/licenses/>. * | ||||
20 | ***************************************************************************/ | ||||
21 | | ||||
22 | #ifndef PERFORCEPLUGIN_TEST_H | ||||
23 | #define PERFORCEPLUGIN_TEST_H | ||||
24 | | ||||
25 | #include <QtCore/QObject> | ||||
26 | | ||||
27 | class PerforcePlugin; | ||||
28 | | ||||
29 | namespace KDevelop | ||||
30 | { | ||||
31 | class TestCore; | ||||
32 | } | ||||
33 | | ||||
34 | class PerforcePluginTest : public QObject | ||||
35 | { | ||||
36 | Q_OBJECT | ||||
37 | private slots: | ||||
38 | void init(); | ||||
39 | void cleanup(); | ||||
40 | void testAdd(); | ||||
41 | void testEdit(); | ||||
42 | void testEditMultipleFiles(); | ||||
43 | void testStatus(); | ||||
44 | void testAnnotate(); | ||||
45 | void testHistory(); | ||||
46 | void testRevert(); | ||||
47 | void testUpdateFile(); | ||||
48 | void testUpdateDir(); | ||||
49 | void testCommit(); | ||||
50 | void testDiff(); | ||||
51 | private: | ||||
52 | PerforcePlugin* m_plugin; | ||||
53 | KDevelop::TestCore* m_core; | ||||
54 | void removeTempDirsIfAny(); | ||||
55 | void createNewTempDirs(); | ||||
56 | }; | ||||
57 | | ||||
58 | #endif |