telepathy-qt: Pass valid handlerInfo in tests
David Edmundson
davidedmundson at kemper.freedesktop.org
Tue Sep 2 13:36:10 PDT 2014
Module: telepathy-qt
Branch: master
Commit: c7d1d42cf6d9e8be6f7e6089dd97eab016a8410d
URL: http://cgit.freedesktop.org/telepathy/telepathy-qt/commit/?id=c7d1d42cf6d9e8be6f7e6089dd97eab016a8410d
Author: David Edmundson <kde at davidedmundson.co.uk>
Date: Tue Sep 2 22:36:08 2014 +0200
Pass valid handlerInfo in tests
---
tests/dbus/account-channel-dispatcher.cpp | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/tests/dbus/account-channel-dispatcher.cpp b/tests/dbus/account-channel-dispatcher.cpp
index 8f7f634..3085d75 100644
--- a/tests/dbus/account-channel-dispatcher.cpp
+++ b/tests/dbus/account-channel-dispatcher.cpp
@@ -351,11 +351,25 @@ private:
channelHandlerPath, this);
ChannelDetails channelDetails = { QDBusObjectPath(mChanPath), mChanProps };
+
+
+ ObjectImmutablePropertiesMap channelRequestProperties;
+ QVariantMap currentChannelRequestProperties;
+ currentChannelRequestProperties.insert(TP_QT_IFACE_CHANNEL_REQUEST + QLatin1String(".Account"), QVariant::fromValue(mCurRequest->Account()));
+ currentChannelRequestProperties.insert(TP_QT_IFACE_CHANNEL_REQUEST + QLatin1String(".UserActionTime"), mCurRequest->UserActionTime());
+ currentChannelRequestProperties.insert(TP_QT_IFACE_CHANNEL_REQUEST + QLatin1String(".PreferredHandler"), mCurRequest->PreferredHandler());
+ currentChannelRequestProperties.insert(TP_QT_IFACE_CHANNEL_REQUEST + QLatin1String(".Requests"), QVariant::fromValue(mCurRequest->Requests()));
+ currentChannelRequestProperties.insert(TP_QT_IFACE_CHANNEL_REQUEST + QLatin1String(".Interfaces"), QVariant::fromValue(mCurRequest->Interfaces()));
+ channelRequestProperties[QDBusObjectPath(mCurRequestPath)] = currentChannelRequestProperties;
+
+ QVariantMap handlerInfo;
+ handlerInfo.insert(QLatin1String("request-properties"), QVariant::fromValue(channelRequestProperties));
+
clientHandlerInterface->HandleChannels(mCurRequest->Account(),
QDBusObjectPath(mConnPath),
ChannelDetailsList() << channelDetails,
ObjectPathList() << QDBusObjectPath(mCurRequestPath),
- userActionTime, QVariantMap());
+ userActionTime, handlerInfo);
}
QDBusConnection mBus;
More information about the telepathy-commits
mailing list