mpdata/tsrc/unittest_mpmpxcollectiondata/inc/unittest_mpmpxcollectiondata.h
author hgs
Fri, 03 Sep 2010 19:58:01 -0500
changeset 55 f3930dda3342
parent 51 560ce2306a17
permissions -rw-r--r--
201035

/*
* 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>
#include "mpmpxcollectionviewdefs.h"

class MpMpxCollectionData;
class MpMpxCollectionDataPrivate;
class TestHelper;

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();
    void testSetContext();
    void testSetContextMediaWall();
    void testSetAlbumContent();
    void testSetCurrentAlbum();
    void testAlbumSongData();
    void testHasItemProperty();
    void testHasAlbumSongProperty();
    void testSetCorruptValue();
    void testSetReloadAlbumContent();


private:

    MpMpxCollectionData         *mTest;
    MpMpxCollectionDataPrivate  *mTestPrivate;
    TestHelper                  *mHelper;

};

#endif  // TESTMPMPXCOLLECTIONDATA_H

//EOF