summaryrefslogtreecommitdiffstats
path: root/tests/auto/input/qabstractphysicaldeviceproxy/tst_qabstractphysicaldeviceproxy.cpp
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2019-12-20 12:41:04 +0100
committerMike Krus <mike.krus@kdab.com>2020-02-11 06:08:41 +0000
commitb828609440a4771838c242b3ad9962ecd7a2fe99 (patch)
tree5da6bce0cda327c4cca96696bce512ec243cc1fd /tests/auto/input/qabstractphysicaldeviceproxy/tst_qabstractphysicaldeviceproxy.cpp
parentb0eb152b82cdd9658154ff7d9ef9e764eccc1ebd (diff)
Remove deprecated classes and functions
Mostly old messaging API Change-Id: I17eb2206b2ede56d2f7d36375d5e711d6149019f Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'tests/auto/input/qabstractphysicaldeviceproxy/tst_qabstractphysicaldeviceproxy.cpp')
-rw-r--r--tests/auto/input/qabstractphysicaldeviceproxy/tst_qabstractphysicaldeviceproxy.cpp54
1 files changed, 0 insertions, 54 deletions
diff --git a/tests/auto/input/qabstractphysicaldeviceproxy/tst_qabstractphysicaldeviceproxy.cpp b/tests/auto/input/qabstractphysicaldeviceproxy/tst_qabstractphysicaldeviceproxy.cpp
index bbe184e0e..f17fba297 100644
--- a/tests/auto/input/qabstractphysicaldeviceproxy/tst_qabstractphysicaldeviceproxy.cpp
+++ b/tests/auto/input/qabstractphysicaldeviceproxy/tst_qabstractphysicaldeviceproxy.cpp
@@ -29,8 +29,6 @@
#include <QtTest/QTest>
-#include <Qt3DCore/private/qnodecreatedchangegenerator_p.h>
-#include <Qt3DCore/qnodecreatedchange.h>
#include "testdeviceproxy.h"
class tst_QAbstractPhysicalDeviceProxy : public QObject
@@ -72,58 +70,6 @@ private Q_SLOTS:
// THEN -> should not crash
QVERIFY(abstractPhysicalDeviceProxy->device() == nullptr);
}
-
- void checkCreationData()
- {
- // GIVEN
- TestProxy abstractPhysicalDeviceProxy;
-
-
- // WHEN
- QVector<Qt3DCore::QNodeCreatedChangeBasePtr> creationChanges;
-
- {
- Qt3DCore::QNodeCreatedChangeGenerator creationChangeGenerator(&abstractPhysicalDeviceProxy);
- creationChanges = creationChangeGenerator.creationChanges();
- }
-
- // THEN
- {
- QCOMPARE(creationChanges.size(), 1);
-
- const auto creationChangeData = qSharedPointerCast<Qt3DCore::QNodeCreatedChange<Qt3DInput::QAbstractPhysicalDeviceProxyData>>(creationChanges.first());
- const Qt3DInput::QAbstractPhysicalDeviceProxyData cloneData = creationChangeData->data;
-
- QCOMPARE(abstractPhysicalDeviceProxy.deviceName(), cloneData.deviceName);
- QCOMPARE(abstractPhysicalDeviceProxy.id(), creationChangeData->subjectId());
- QCOMPARE(abstractPhysicalDeviceProxy.isEnabled(), true);
- QCOMPARE(abstractPhysicalDeviceProxy.isEnabled(), creationChangeData->isNodeEnabled());
- QCOMPARE(abstractPhysicalDeviceProxy.metaObject(), creationChangeData->metaObject());
- }
-
- // WHEN
- abstractPhysicalDeviceProxy.setEnabled(false);
-
- {
- Qt3DCore::QNodeCreatedChangeGenerator creationChangeGenerator(&abstractPhysicalDeviceProxy);
- creationChanges = creationChangeGenerator.creationChanges();
- }
-
- // THEN
- {
- QCOMPARE(creationChanges.size(), 1);
-
- const auto creationChangeData = qSharedPointerCast<Qt3DCore::QNodeCreatedChange<Qt3DInput::QAbstractPhysicalDeviceProxyData>>(creationChanges.first());
- const Qt3DInput::QAbstractPhysicalDeviceProxyData cloneData = creationChangeData->data;
-
- QCOMPARE(abstractPhysicalDeviceProxy.deviceName(), cloneData.deviceName);
- QCOMPARE(abstractPhysicalDeviceProxy.id(), creationChangeData->subjectId());
- QCOMPARE(abstractPhysicalDeviceProxy.isEnabled(), false);
- QCOMPARE(abstractPhysicalDeviceProxy.isEnabled(), creationChangeData->isNodeEnabled());
- QCOMPARE(abstractPhysicalDeviceProxy.metaObject(), creationChangeData->metaObject());
- }
- }
-
};
QTEST_MAIN(tst_QAbstractPhysicalDeviceProxy)