diff options
author | George Kiagiadakis <george.kiagiadakis@collabora.co.uk> | 2011-01-06 22:05:23 +0200 |
---|---|---|
committer | George Kiagiadakis <george.kiagiadakis@collabora.co.uk> | 2011-01-06 22:05:23 +0200 |
commit | 86725fc8d6475279d50ac0a86cd0271dc971ce83 (patch) | |
tree | 7de6bb74dfe0f2acd66df6704af58aa09971a39a /tests/auto/urihandlertest.cpp | |
parent | e43f0c3f28086fd070db60ea24cedb68b80a0f69 (diff) |
Implement a new way of wraping objects, similar to the one glibmm uses.
Features:
* C++ wrappers are reused among several RefPointer instances.
* C++ wrappers are even saved in qdata where applicable, to make
sure they are only created once for each object. (This does
not apply to MiniObjects and Caps though)
* dynamicCast should be faster in certain cases, since it no longer
queries the GType of the instance if it is not necessary.
Diffstat (limited to 'tests/auto/urihandlertest.cpp')
-rw-r--r-- | tests/auto/urihandlertest.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/tests/auto/urihandlertest.cpp b/tests/auto/urihandlertest.cpp index c722e87..1ec9792 100644 --- a/tests/auto/urihandlertest.cpp +++ b/tests/auto/urihandlertest.cpp @@ -23,22 +23,10 @@ class UriHandlerTest : public QGstTest { Q_OBJECT private Q_SLOTS: - void castTest(); void interfaceTest(); void makeTest(); }; -void UriHandlerTest::castTest() -{ - QGst::ElementPtr e = QGst::ElementFactory::make("audioconvert"); - QGst::UriHandlerPtr u = e.dynamicCast<QGst::UriHandler>(); - QVERIFY(u.isNull()); - - e = QGst::ElementFactory::make("filesrc"); - u = e.dynamicCast<QGst::UriHandler>(); - QVERIFY(!u.isNull()); -} - void UriHandlerTest::interfaceTest() { QGst::ElementPtr e = QGst::ElementFactory::make("filesrc"); |