mpviewplugins/mpdetailsviewplugin/tsrc/unittest_mpsharedata/inc/unittest_mpsharedata.h
changeset 47 4cc1412daed0
parent 45 612c4815aebe
child 51 560ce2306a17
equal deleted inserted replaced
45:612c4815aebe 47:4cc1412daed0
     1 /*
       
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: Unit test for mpsongdata
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef UNITTEST_MPSHAREDATA_H_
       
    19 #define UNITTEST_MPSHAREDATA_H_
       
    20 
       
    21 #include <QtTest/QtTest>
       
    22 
       
    23 class MpShareData;
       
    24 
       
    25 class TestMpShareData : public QObject
       
    26 {
       
    27     Q_OBJECT
       
    28 
       
    29 public:
       
    30 
       
    31     TestMpShareData();
       
    32     virtual ~TestMpShareData();
       
    33 
       
    34 signals:
       
    35 
       
    36 public slots:
       
    37     void initTestCase();
       
    38     void cleanupTestCase();
       
    39     void init();
       
    40     void cleanup();
       
    41 
       
    42 private slots:
       
    43     void testOwner();
       
    44     void testSongData();
       
    45     void testErrorMessage();
       
    46     void testUserName();
       
    47     void testPassword();
       
    48     void testObjectTypeWithLink();
       
    49     void testObjectTypeWithoutLink();
       
    50     void testObjectContentWithLink();
       
    51     void testObjectContentWithTitleAndArtist();
       
    52     void testObjectContentWithTitleOnly();
       
    53     void testObjectContentWithArtistOnly();
       
    54     void testObjectContentWithoutMetaInfo();
       
    55     void testSongTitle();
       
    56 //    void testSongAlbum();
       
    57     void testSongArtist();
       
    58     void testAlbumArt();
       
    59     void testLanguage();
       
    60 //    void testSongComment();
       
    61 //    void testSongAlbumArt();
       
    62 //    void testSongYear();
       
    63 //    void testSongGenre();
       
    64 //    void testSongComposer();
       
    65 //    void testSongAlbumTrack();
       
    66 //    void testSongLink();
       
    67     void testSongNoInfo();
       
    68 
       
    69 private:
       
    70     MpShareData *mTest;
       
    71 
       
    72 };
       
    73 
       
    74 
       
    75 #endif /* UNITTEST_MPSHAREDATA_H_ */