[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/work/kde4/playground/libs/qt-dbus/selftests
From: Thiago Macieira <thiago () kde ! org>
Date: 2006-05-19 13:21:40
Message-ID: 1148044900.487791.19509.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 542497 by thiago:
Update the XML parser test -- it passes, but it uses private symbols
M +1 -1 common.h
M +4 -3 qdbusxmlparser/tst_qdbusxmlparser.cpp
--- branches/work/kde4/playground/libs/qt-dbus/selftests/common.h #542496:542497
@@ -9,7 +9,7 @@
Q_DECLARE_METATYPE(QList<qlonglong>)
Q_DECLARE_METATYPE(QList<qulonglong>)
Q_DECLARE_METATYPE(QList<double>)
-#if 0
+#ifdef USE_PRIVATE_CODE
#include "../qdbusintrospection_p.h"
// just to make it easier:
--- branches/work/kde4/playground/libs/qt-dbus/selftests/qdbusxmlparser/tst_qdbusxmlparser.cpp \
#542496:542497 @@ -27,6 +27,7 @@
#include <dbus/qdbus.h>
+#define USE_PRIVATE_CODE
#include "../common.h"
class tst_QDBusXmlParser: public QObject
@@ -497,7 +498,7 @@
// one readable signal
QDBusIntrospection::Property prop;
prop.name = "foo";
- prop.type = QDBusType("s");
+ prop.type = "s";
prop.access = QDBusIntrospection::Property::Read;
map << prop;
QTest::newRow("one-readable") << "<property name=\"foo\" type=\"s\" \
access=\"read\"/>" << map; @@ -517,7 +518,7 @@
// two, mixed properties
prop.name = "bar";
- prop.type = QDBusType("i");
+ prop.type = "i";
prop.access = QDBusIntrospection::Property::Read;
map << prop;
QTest::newRow("two") <<
@@ -531,7 +532,7 @@
// add a third with annotations
prop.name = "baz";
- prop.type = QDBusType("as");
+ prop.type = "as";
prop.access = QDBusIntrospection::Property::Write;
prop.annotations.insert("foo.annotation", "Hello, World");
prop.annotations.insert("foo.annotation2", "Goodbye, World");
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic