Changeset View
Changeset View
Standalone View
Standalone View
autotests/settings/vpnsettingtest.cpp
Show All 18 Lines | |||||
19 | */ | 19 | */ | ||
20 | 20 | | |||
21 | #include "vpnsettingtest.h" | 21 | #include "vpnsettingtest.h" | ||
22 | 22 | | |||
23 | #include "settings/vpnsetting.h" | 23 | #include "settings/vpnsetting.h" | ||
24 | 24 | | |||
25 | #include <libnm/NetworkManager.h> | 25 | #include <libnm/NetworkManager.h> | ||
26 | 26 | | |||
27 | #if !NM_CHECK_VERSION(1, 2, 0) | | |||
28 | #define NM_SETTING_VPN_PERSISTENT "persistent" | | |||
29 | #define NM_SETTING_VPN_TIMEOUT "timeout" | | |||
30 | #endif | | |||
31 | | ||||
32 | #include <QTest> | 27 | #include <QTest> | ||
33 | 28 | | |||
34 | void VpnSettingTest::testSetting_data() | 29 | void VpnSettingTest::testSetting_data() | ||
35 | { | 30 | { | ||
36 | QTest::addColumn<NMStringMap>("data"); | 31 | QTest::addColumn<NMStringMap>("data"); | ||
37 | QTest::addColumn<bool>("persistent"); | 32 | QTest::addColumn<bool>("persistent"); | ||
38 | QTest::addColumn<NMStringMap>("secrets"); | 33 | QTest::addColumn<NMStringMap>("secrets"); | ||
39 | QTest::addColumn<QString>("serviceType"); | 34 | QTest::addColumn<QString>("serviceType"); | ||
▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines |