diff options
author | Wolf Bergenheim <ext-wolf.2.bergenheim@nokia.com> | 2010-02-19 17:07:07 +0200 |
---|---|---|
committer | Wolf Bergenheim <ext-wolf.2.bergenheim@nokia.com> | 2010-02-19 17:07:07 +0200 |
commit | 8905010dca02a7e3fa2fb1d11cd67aa13598e8d4 (patch) | |
tree | 6652cc67f7c49234a958bce71775ce8be4fe8be7 /tests/test-resource | |
parent | d6a687cdff25a69b3333a1e490934128b095f0db (diff) |
Updated tests
Diffstat (limited to 'tests/test-resource')
-rw-r--r-- | tests/test-resource/test-resource.cpp | 14 | ||||
-rw-r--r-- | tests/test-resource/test-resource.h | 2 |
2 files changed, 0 insertions, 16 deletions
diff --git a/tests/test-resource/test-resource.cpp b/tests/test-resource/test-resource.cpp index b6879db..44d6c7c 100644 --- a/tests/test-resource/test-resource.cpp +++ b/tests/test-resource/test-resource.cpp @@ -167,18 +167,4 @@ void TestResource::testOptional() QVERIFY(result == expected); } -void TestResource::testClone() -{ - for (quint32 type = AudioPlaybackType; type < NumberOfTypes; type++) { - Resource *resource = resourceFromType((ResourceType)type); - resource->setOptional(); - Resource *copy = resource->clone(); - - QCOMPARE(copy->isOptional(), resource->isOptional()); - QCOMPARE(copy->type(), resource->type()); - delete copy; - } -} - QTEST_MAIN(TestResource) - diff --git a/tests/test-resource/test-resource.h b/tests/test-resource/test-resource.h index 6545d79..2eb1df0 100644 --- a/tests/test-resource/test-resource.h +++ b/tests/test-resource/test-resource.h @@ -42,8 +42,6 @@ private slots: void testOptional_data(); void testOptional(); - - void testClone(); }; #endif |