summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Edmundson <kde@davidedmundson.co.uk>2014-09-02 22:36:08 +0200
committerDavid Edmundson <kde@davidedmundson.co.uk>2014-09-02 22:36:08 +0200
commitc7d1d42cf6d9e8be6f7e6089dd97eab016a8410d (patch)
tree259b81ce6e344fe060c92cb8f0963eb3372125b4
parentccabc8ad07739af1f3d7b4d02d8a1da689ae2afc (diff)
Pass valid handlerInfo in tests
-rw-r--r--tests/dbus/account-channel-dispatcher.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/dbus/account-channel-dispatcher.cpp b/tests/dbus/account-channel-dispatcher.cpp
index 8f7f6347..3085d756 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;