summaryrefslogtreecommitdiff
path: root/tests/tst_metaobject/tst_metaobjecttest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tst_metaobject/tst_metaobjecttest.cpp')
-rw-r--r--tests/tst_metaobject/tst_metaobjecttest.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/tst_metaobject/tst_metaobjecttest.cpp b/tests/tst_metaobject/tst_metaobjecttest.cpp
index 9a85e03..cfd9c29 100644
--- a/tests/tst_metaobject/tst_metaobjecttest.cpp
+++ b/tests/tst_metaobject/tst_metaobjecttest.cpp
@@ -1,4 +1,4 @@
-#include "QuickStreamer/object.h"
+#include "QuickStreamer/item.h"
#include <gst/gst.h>
@@ -6,7 +6,7 @@
#include <QQmlParserStatus>
#include <QtTest>
-using QQuickStreamer::Object;
+using QQuickStreamer::Item;
class MetaObjectTest : public QObject
{
@@ -21,18 +21,18 @@ private slots:
void init()
{
gst_init(Q_NULLPTR, Q_NULLPTR);
- QVERIFY(Object::registerObjectClass(GST_TYPE_PIPELINE));
+ QVERIFY(Item::registerObjectClass(GST_TYPE_PIPELINE));
}
void testClassName()
{
- Object item(GST_OBJECT(gst_pipeline_new(Q_NULLPTR)));
+ Item item(GST_OBJECT(gst_pipeline_new(Q_NULLPTR)));
QCOMPARE(item.metaObject()->className(), "GstPipeline");
}
void testProperties()
{
- Object item(GST_OBJECT(gst_pipeline_new(Q_NULLPTR)));
+ Item item(GST_OBJECT(gst_pipeline_new(Q_NULLPTR)));
const int propertyIndex = item.metaObject()->indexOfProperty("name");
@@ -49,7 +49,7 @@ private slots:
void testQObjectCast()
{
- Object item(GST_OBJECT(gst_pipeline_new(Q_NULLPTR)));
+ Item item(GST_OBJECT(gst_pipeline_new(Q_NULLPTR)));
QCOMPARE(qobject_cast<QQmlParserStatus *>(&item), &item);
}
};