1 #include <QtTest/QtTest>
2 #include <QtCore/QObject>
4 #include <ofonoradiosettings.h>
9 class TestOfonoRadioSettings : public QObject
15 void technologyPreferenceChanged(const QString pref)
17 qDebug() << "technologyPreferenceChanged" << pref;
20 void validityChanged(bool validity)
22 qDebug() << "ValidityChanged" << validity;
27 m = new OfonoRadioSettings(QString(), this);
28 connect(m, SIGNAL(validityChanged(bool)), this,
29 SLOT(validityChanged(bool)));
30 connect(m, SIGNAL(technologyPreferenceChanged(QString)),
32 SLOT(technologyPreferenceChanged(QString)));
35 void testOfonoRadioSettings()
37 qDebug() << "validity:" << m->isValid();
38 qDebug() << "technologyPreference():" << m->technologyPreference();
43 void cleanupTestCase()
50 OfonoRadioSettings *m;
53 QTEST_MAIN(TestOfonoRadioSettings)
54 #include "test_ofonoradiosettings.moc"