summaryrefslogtreecommitdiff
path: root/tests/dbus/contacts.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dbus/contacts.cpp')
-rw-r--r--tests/dbus/contacts.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/tests/dbus/contacts.cpp b/tests/dbus/contacts.cpp
index 40f99e49..dcb8e44c 100644
--- a/tests/dbus/contacts.cpp
+++ b/tests/dbus/contacts.cpp
@@ -34,7 +34,7 @@ public:
}
protected Q_SLOTS:
- void expectConnReady(uint newStatus, uint newStatusReason);
+ void expectConnReady(Tp::Connection::Status, Tp::ConnectionStatusReason);
void expectConnInvalidated();
void expectPendingContactsFinished(Tp::PendingOperation *);
@@ -62,7 +62,8 @@ private:
Tp::UIntList mInvalidHandles;
};
-void TestContacts::expectConnReady(uint newStatus, uint newStatusReason)
+void TestContacts::expectConnReady(Tp::Connection::Status newStatus,
+ Tp::ConnectionStatusReason newStatusReason)
{
switch (newStatus) {
case Connection::StatusDisconnected:
@@ -167,14 +168,14 @@ void TestContacts::initTestCase()
if (mConn->status() != Connection::StatusConnected) {
QVERIFY(connect(mConn.data(),
- SIGNAL(statusChanged(uint, uint)),
- SLOT(expectConnReady(uint, uint))));
+ SIGNAL(statusChanged(Tp::Connection::Status, Tp::ConnectionStatusReason)),
+ SLOT(expectConnReady(Tp::Connection::Status, Tp::ConnectionStatusReason))));
QCOMPARE(mLoop->exec(), 0);
QVERIFY(disconnect(mConn.data(),
- SIGNAL(statusChanged(uint, uint)),
+ SIGNAL(statusChanged(Tp::Connection::Status, Tp::ConnectionStatusReason)),
this,
- SLOT(expectConnReady(uint, uint))));
- QCOMPARE(mConn->status(), static_cast<uint>(Connection::StatusConnected));
+ SLOT(expectConnReady(Tp::Connection::Status, Tp::ConnectionStatusReason))));
+ QCOMPARE(mConn->status(), Connection::StatusConnected);
}
}