mpdata/tsrc/unittest_mpsongdata/inc/unittest_mpsongdata.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 18 Aug 2010 09:46:20 +0300
changeset 48 af3740e3753f
parent 29 8192e5b5c935
permissions -rw-r--r--
Revision: 201031 Kit: 201033

/*
* 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 MpSongDataPrivate;

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 testSetMpxMedia();
    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();

private:

    MpSongData          *mTest;
    MpSongDataPrivate   *mTestPrivate;

};


#endif /* UNITTEST_MPSONGDATA_H_ */