mpdata/tsrc/unittest_mpcollectionalbumartmanager/inc/unittest_mpcollectionalbumartmanager.h
branchRCL_3
changeset 52 14979e23cb5e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mpdata/tsrc/unittest_mpcollectionalbumartmanager/inc/unittest_mpcollectionalbumartmanager.h	Tue Aug 31 15:12:29 2010 +0300
@@ -0,0 +1,77 @@
+/*
+* 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 mpcollectionalbumartmanager
+*
+*/
+
+#ifndef TESTMPCOLLECTIONALBUMARTMANAGER_H
+#define TESTMPCOLLECTIONALBUMARTMANAGER_H
+
+#include <QtTest/QtTest>
+#include <hbicon.h>
+
+class MpCollectionAlbumArtManager;
+class MpMpxCollectionData;
+
+class TestMpCollectionAlbumArtManager : public QObject
+{
+    Q_OBJECT
+
+public:
+
+    TestMpCollectionAlbumArtManager();
+    virtual ~TestMpCollectionAlbumArtManager();
+
+signals:
+
+    void thumbnailReady( QPixmap pixmap, void *data, int id, int error );
+
+public slots:
+
+    void initTestCase();
+    void cleanupTestCase();
+    void init();
+    void cleanup();
+
+private slots:
+
+    void testMemberCleanup();
+    void testAlbumArtNoCache();
+    void testAlbumArtNoCacheQueue();
+    void testAlbumArtCache();
+    void testAlbumArtNoUri();
+    void testAlbumArtFail();
+    void testCacheFirstScreenEmpty();
+    void testCacheFirstScreen();
+    void testCacheFirstScreenAllCached();
+    void testCancel();
+    void testSetThumbnailSize();
+    void testThumbnailReadyCache();
+    void testThumbnailReadyCacheError();
+    void testThumbnailReadyAlbumArt();
+    void testThumbnailReadyAlbumArtError();
+
+private:
+
+    MpCollectionAlbumArtManager *mTest;
+    MpMpxCollectionData         *mStubData;
+    HbIcon                       mIcon;
+
+};
+
+#endif  // TESTMPCOLLECTIONALBUMARTMANAGER_H
+
+
+
+