mpdata/tsrc/unittest_mpmpxcollectiondata/inc/unittest_mpmpxcollectiondata.h
changeset 22 ecf06a08d4d9
child 29 8192e5b5c935
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mpdata/tsrc/unittest_mpmpxcollectiondata/inc/unittest_mpmpxcollectiondata.h	Mon May 03 12:29:20 2010 +0300
@@ -0,0 +1,66 @@
+/*
+* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: Unit test for MpMpxCollectionData
+*
+*/
+
+#ifndef TESTMPMPXCOLLECTIONDATA_H
+#define TESTMPMPXCOLLECTIONDATA_H
+
+#include <QtTest/QtTest>
+
+class MpMpxCollectionData;
+class MpMpxCollectionDataPrivate;
+
+class TestMpMpxCollectionData : public QObject
+{
+    Q_OBJECT
+
+public:
+    TestMpMpxCollectionData();
+    virtual ~TestMpMpxCollectionData();
+
+
+public slots:
+    void initTestCase();
+    void cleanupTestCase();
+    void init();
+    void cleanup();
+
+private slots:
+    void testConstructor();
+    void testContextRetrieval();
+    void testCount();
+    void testCollectionTitle();
+    void testItemData();
+    void testIsAutoPlaylist();
+    void testIsAutoPlaylistWithIndex();
+    void TestItemCountWithIndex();
+    void testSetCollectionContextL();
+    void testSetMpxMediaAllSongs();
+    void testContainerId();
+    void testItemId();
+    void testRemoveItem();
+    void testTestCachedItem();
+    void testInsertCachedItemItem();
+    
+private:
+    MpMpxCollectionData         *mTest;
+    MpMpxCollectionDataPrivate  *mTestPrivate;
+
+};
+
+#endif  // TESTMPMPXCOLLECTIONDATA_H
+
+//EOF