mpdata/tsrc/unittest_mpsongdata/inc/unittest_mpsongdata.h
changeset 43 0f32e550d9d8
parent 35 fdb31ab341af
equal deleted inserted replaced
38:b93f525c9244 43:0f32e550d9d8
    19 #define UNITTEST_MPSONGDATA_H_
    19 #define UNITTEST_MPSONGDATA_H_
    20 
    20 
    21 #include <QtTest/QtTest>
    21 #include <QtTest/QtTest>
    22 
    22 
    23 class MpSongData;
    23 class MpSongData;
       
    24 class MpSongDataPrivate;
    24 
    25 
    25 class TestMpSongData : public QObject
    26 class TestMpSongData : public QObject
    26 {
    27 {
    27     Q_OBJECT
    28     Q_OBJECT
    28 
    29 
    38 public slots:
    39 public slots:
    39     void initTestCase();
    40     void initTestCase();
    40     void cleanupTestCase();
    41     void cleanupTestCase();
    41     void init();
    42     void init();
    42     void cleanup();
    43     void cleanup();
    43     
    44 
    44 private slots:
    45 private slots:
    45     void testMemberCleanup();
    46     void testMemberCleanup();
    46     void testTitle();
    47     void testTitle();
    47     void testAlbum();
    48     void testAlbum();
    48     void testArtist();
    49     void testArtist();
    51     void testYear();
    52     void testYear();
    52     void testGenre();
    53     void testGenre();
    53     void testComposer();
    54     void testComposer();
    54     void testAlbumtrack();
    55     void testAlbumtrack();
    55     void testLink();
    56     void testLink();
    56     
    57 
    57     void testFileName();
    58     void testFileName();
    58     void testMimeType();
    59     void testMimeType();
    59     void testDuration();
    60     void testDuration();
    60     void testBitRate();
    61     void testBitRate();
    61     void testSampleRate();
    62     void testSampleRate();
    63     void testModified();
    64     void testModified();
    64     void testCopyright();
    65     void testCopyright();
    65     void testMusicURL();
    66     void testMusicURL();
    66     void testIsDrmProtected();
    67     void testIsDrmProtected();
    67 
    68 
    68     void testSetTitle();    
    69     void testSetMpxMedia();
       
    70     void testSetTitle();
    69     void testSetAlbum();
    71     void testSetAlbum();
    70     void testSetArtist();
    72     void testSetArtist();
    71     void testSetComment();
    73     void testSetComment();
    72     void testSetYear();
    74     void testSetYear();
    73     void testSetGenre();
    75     void testSetGenre();
    74     void testSetComposer();    
    76     void testSetComposer();
    75     void testSetAlbumTrack();
    77     void testSetAlbumTrack();
    76     void testSetLink();
    78     void testSetLink();
    77     
    79 
    78     void testSetFileName();
    80     void testSetFileName();
    79     void testSetMimeType();
    81     void testSetMimeType();
    80     void testSetDuration();
    82     void testSetDuration();
    81     void testSetBitRate();
    83     void testSetBitRate();
    82     void testSetSampleRate();
    84     void testSetSampleRate();
    83     void testSetSize();
    85     void testSetSize();
    84     void testSetModified();
    86     void testSetModified();
    85     void testSetCopyright();
    87     void testSetCopyright();
    86     void testSetMusicURL();
    88     void testSetMusicURL();
    87     void testSetDrmProtected();
    89     void testSetDrmProtected();
    88           
    90 
    89     void testSetAlbumArtUri();
    91     void testSetAlbumArtUri();
    90     void testThumbnailReady();
    92     void testThumbnailReady();
    91     void testCommitPlaybackInfo();
    93 
    92     void testCommitSongDetailInfo();
       
    93 private:
    94 private:
    94     MpSongData *mTest;
    95 
    95     
    96     MpSongData          *mTest;
       
    97     MpSongDataPrivate   *mTestPrivate;
       
    98 
    96 };
    99 };
    97 
   100 
    98 
   101 
    99 #endif /* UNITTEST_MPSONGDATA_H_ */
   102 #endif /* UNITTEST_MPSONGDATA_H_ */