Changeset View
Changeset View
Standalone View
Standalone View
autotests/settings/wiredsettingtest.cpp
Show All 19 Lines | |||||
20 | 20 | | |||
21 | #include "wiredsettingtest.h" | 21 | #include "wiredsettingtest.h" | ||
22 | 22 | | |||
23 | #include "generictypes.h" | 23 | #include "generictypes.h" | ||
24 | #include "settings/wiredsetting.h" | 24 | #include "settings/wiredsetting.h" | ||
25 | 25 | | |||
26 | #include <libnm/NetworkManager.h> | 26 | #include <libnm/NetworkManager.h> | ||
27 | 27 | | |||
28 | #if !NM_CHECK_VERSION(1, 0, 6) | | |||
29 | #define NM_SETTING_WIRED_WAKE_ON_LAN "wake-on-lan" | | |||
30 | #define NM_SETTING_WIRED_WAKE_ON_LAN_PASSWORD "wake-on-lan-password" | | |||
31 | #endif | | |||
32 | | ||||
33 | #if !NM_CHECK_VERSION(1, 4, 0) | | |||
34 | #define NM_SETTING_WIRED_GENERATE_MAC_ADDRESS_MASK "generate-mac-address-mask" | | |||
35 | #endif | | |||
36 | | ||||
37 | #include <QTest> | 28 | #include <QTest> | ||
38 | 29 | | |||
39 | void WiredSettingTest::testSetting_data() | 30 | void WiredSettingTest::testSetting_data() | ||
40 | { | 31 | { | ||
41 | QTest::addColumn<QString>("port"); | 32 | QTest::addColumn<QString>("port"); | ||
42 | QTest::addColumn<quint32>("speed"); | 33 | QTest::addColumn<quint32>("speed"); | ||
43 | QTest::addColumn<QString>("duplex"); | 34 | QTest::addColumn<QString>("duplex"); | ||
44 | QTest::addColumn<bool>("autoNegotiate"); | 35 | QTest::addColumn<bool>("autoNegotiate"); | ||
▲ Show 20 Lines • Show All 90 Lines • Show Last 20 Lines |