mpdata/tsrc/unittest_mpsongdata/inc/unittest_mpsongdata.h
changeset 35 fdb31ab341af
child 43 0f32e550d9d8
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mpdata/tsrc/unittest_mpsongdata/inc/unittest_mpsongdata.h	Fri May 14 18:54:37 2010 -0500
@@ -0,0 +1,99 @@
+/*
+* Copyright (c) 2010 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 mpsongdata
+*
+*/
+
+#ifndef UNITTEST_MPSONGDATA_H_
+#define UNITTEST_MPSONGDATA_H_
+
+#include <QtTest/QtTest>
+
+class MpSongData;
+
+class TestMpSongData : public QObject
+{
+    Q_OBJECT
+
+public:
+
+    TestMpSongData();
+    virtual ~TestMpSongData();
+
+signals:
+
+    void thumbnailReady( const QPixmap& pixmap, void *data, int id, int error );
+
+public slots:
+    void initTestCase();
+    void cleanupTestCase();
+    void init();
+    void cleanup();
+    
+private slots:
+    void testMemberCleanup();
+    void testTitle();
+    void testAlbum();
+    void testArtist();
+    void testComment();
+    void testAlbumArt();
+    void testYear();
+    void testGenre();
+    void testComposer();
+    void testAlbumtrack();
+    void testLink();
+    
+    void testFileName();
+    void testMimeType();
+    void testDuration();
+    void testBitRate();
+    void testSampleRate();
+    void testSize();
+    void testModified();
+    void testCopyright();
+    void testMusicURL();
+    void testIsDrmProtected();
+
+    void testSetTitle();    
+    void testSetAlbum();
+    void testSetArtist();
+    void testSetComment();
+    void testSetYear();
+    void testSetGenre();
+    void testSetComposer();    
+    void testSetAlbumTrack();
+    void testSetLink();
+    
+    void testSetFileName();
+    void testSetMimeType();
+    void testSetDuration();
+    void testSetBitRate();
+    void testSetSampleRate();
+    void testSetSize();
+    void testSetModified();
+    void testSetCopyright();
+    void testSetMusicURL();
+    void testSetDrmProtected();
+          
+    void testSetAlbumArtUri();
+    void testThumbnailReady();
+    void testCommitPlaybackInfo();
+    void testCommitSongDetailInfo();
+private:
+    MpSongData *mTest;
+    
+};
+
+
+#endif /* UNITTEST_MPSONGDATA_H_ */