aboutsummaryrefslogtreecommitdiff
path: root/tests/integration
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2016-03-17 09:25:23 -0500
committerCharles Kerr <charles.kerr@canonical.com>2016-03-17 09:25:23 -0500
commit65eba5e107b0499aec4bed55be202bf1df6710bb (patch)
tree6bb113dc095b2b5db19bd318441aeaf1b596d475 /tests/integration
parent3ef931c4bc8d87497dbe9f6ceda9ce4ca3bb116f (diff)
downloadayatana-indicator-display-65eba5e107b0499aec4bed55be202bf1df6710bb.tar.gz
ayatana-indicator-display-65eba5e107b0499aec4bed55be202bf1df6710bb.tar.bz2
ayatana-indicator-display-65eba5e107b0499aec4bed55be202bf1df6710bb.zip
add tests/utils/qdbus-helpers.h so that we only define qDBusArgumentToMap() in one place
Diffstat (limited to 'tests/integration')
-rw-r--r--tests/integration/usb-manager-test.cpp17
1 files changed, 2 insertions, 15 deletions
diff --git a/tests/integration/usb-manager-test.cpp b/tests/integration/usb-manager-test.cpp
index aca5325..5e3377d 100644
--- a/tests/integration/usb-manager-test.cpp
+++ b/tests/integration/usb-manager-test.cpp
@@ -20,9 +20,10 @@
#define QT_NO_KEYWORDS
#include <tests/utils/adbd-server.h>
-#include <tests/utils/glib-fixture.h>
#include <tests/utils/dbus-types.h>
+#include <tests/utils/glib-fixture.h>
#include <tests/utils/gtest-qt-print-helpers.h>
+#include <tests/utils/qdbus-helpers.h>
#include <src/usb-manager.h>
@@ -78,20 +79,6 @@ protected:
delete s;
}
- bool qDBusArgumentToMap(QVariant const& variant, QVariantMap& map)
- {
- if (variant.canConvert<QDBusArgument>())
- {
- QDBusArgument value(variant.value<QDBusArgument>());
- if (value.currentType() == QDBusArgument::MapType)
- {
- value >> map;
- return true;
- }
- }
- return false;
- }
-
void SetUp() override
{
super::SetUp();