summaryrefslogtreecommitdiff
path: root/tests/auto/vehiclefunctions/windowcontroltest/tst_windowcontroltest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/vehiclefunctions/windowcontroltest/tst_windowcontroltest.cpp')
-rw-r--r--tests/auto/vehiclefunctions/windowcontroltest/tst_windowcontroltest.cpp17
1 files changed, 15 insertions, 2 deletions
diff --git a/tests/auto/vehiclefunctions/windowcontroltest/tst_windowcontroltest.cpp b/tests/auto/vehiclefunctions/windowcontroltest/tst_windowcontroltest.cpp
index d5249d2..bc9f488 100644
--- a/tests/auto/vehiclefunctions/windowcontroltest/tst_windowcontroltest.cpp
+++ b/tests/auto/vehiclefunctions/windowcontroltest/tst_windowcontroltest.cpp
@@ -62,7 +62,7 @@ public:
return m_zoneMap.keys();
}
- void initializeAttributes() Q_DECL_OVERRIDE
+ void initialize() Q_DECL_OVERRIDE
{
const QStringList zones = availableZones();
//zones.removeLast(); // Do not init zone "Dummy"
@@ -257,11 +257,24 @@ private:
WindowControlTestBackend *m_backend;
};
+class InvalidInterface : public QIviFeatureInterface
+{
+public:
+ InvalidInterface(QObject *parent)
+ : QIviFeatureInterface(parent)
+ {}
+
+ void initialize() Q_DECL_OVERRIDE
+ {
+ emit initializationDone();
+ }
+};
+
class WindowControlInvalidServiceObject : public QIviServiceObject {
public:
explicit WindowControlInvalidServiceObject(QObject *parent=0) :
- QIviServiceObject(parent), m_name(QLatin1String("")), m_dummyBackend(new QIviFeatureInterface(this))
+ QIviServiceObject(parent), m_name(QLatin1String("")), m_dummyBackend(new InvalidInterface(this))
{
m_interfaces << QIviWindowControl_iid;
}