diff options
author | Martin Wolf <ext-martin.2.wolf@nokia.com> | 2010-04-07 13:33:26 +0300 |
---|---|---|
committer | Martin Wolf <ext-martin.2.wolf@nokia.com> | 2010-04-07 13:33:26 +0300 |
commit | 7bfa856f0673b81d4d0dafd6e02e07f10f07a023 (patch) | |
tree | 309ac66b5cbfe77df701fc9c7a0c7e5a68d147e7 /tests | |
parent | a19a377ae930d54beb98dbe1f6171c6d39ddea80 (diff) | |
download | libresourceqt-7bfa856f0673b81d4d0dafd6e02e07f10f07a023.tar.gz |
dbus-qeventloop update
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-dbus-qeventloop/test-dbus-qeventloop.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/tests/test-dbus-qeventloop/test-dbus-qeventloop.cpp b/tests/test-dbus-qeventloop/test-dbus-qeventloop.cpp index 3a005c0..746a6ed 100644 --- a/tests/test-dbus-qeventloop/test-dbus-qeventloop.cpp +++ b/tests/test-dbus-qeventloop/test-dbus-qeventloop.cpp @@ -8,7 +8,6 @@ class TestDbusQEventLoop: public QObject private: DBusConnection* systemBus; DBusConnection* sessionBus; - DBUSConnectionEventLoop* dbusEventLoop; void resetValues() { wasInNotifyFnc = 0; @@ -131,7 +130,6 @@ protected: private slots: void initTestCase() { // First allocate and obtain - dbusEventLoop = new DBUSConnectionEventLoop(); systemBus = dbus_bus_get(DBUS_BUS_SYSTEM, NULL); sessionBus = dbus_bus_get(DBUS_BUS_SESSION, NULL);; // Last check, if server is running @@ -140,9 +138,8 @@ private slots: // Create event loop ... - QVERIFY(dbusEventLoop != NULL); - QVERIFY(dbusEventLoop->addConnection(systemBus) == true); - QVERIFY(dbusEventLoop->addConnection(sessionBus) == true); + QVERIFY(DBUSConnectionEventLoop::addConnection(systemBus) == true); + QVERIFY(DBUSConnectionEventLoop::addConnection(sessionBus) == true); // Then test ... otherwise something don't have to be allocated (i.e. event loop) QVERIFY(systemBus != NULL); QVERIFY(sessionBus != NULL); @@ -183,13 +180,6 @@ private slots: // Free message, it is not necessary to test, QVERIFY upper will end function dbus_message_unref(message); - // Cleanup allocated pointers - QVERIFY(dbusEventLoop != NULL); - if (dbusEventLoop) { - delete dbusEventLoop; - dbusEventLoop = NULL; - } - // Check if everything went well QVERIFY(systemTimeout == false); QVERIFY(systemResponse == 12345); |