add tests to netctl control

(todo: netctl-auto tests)
This commit is contained in:
arcan1s
2014-08-17 09:42:52 +04:00
parent 012c725e12
commit a7911d48d1
3 changed files with 150 additions and 20 deletions

View File

@ -21,6 +21,9 @@
#include <QObject>
class Netctl;
class NetctlProfile;
class TestNetctl : public QObject
{
Q_OBJECT
@ -28,8 +31,16 @@ class TestNetctl : public QObject
private slots:
void test_getRecommendedConfiguration();
void test_getActiveProfile();
void test_getProfileDescription();
void test_getProfileStatus();
void test_isProfileActive();
void test_isProfileEnabled();
void test_reenableProfile();
void test_restartProfile();
private:
Netctl *createNetctlObj();
NetctlProfile *createNetctlProfileObj();
void createTestProfile();
void removeTestProfile();
};