|
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_MPSONGDATA_H_ |
|
19 #define UNITTEST_MPSONGDATA_H_ |
|
20 |
|
21 #include <QtTest/QtTest> |
|
22 |
|
23 class MpSongData; |
|
24 |
|
25 class TestMpSongData : public QObject |
|
26 { |
|
27 Q_OBJECT |
|
28 |
|
29 public: |
|
30 |
|
31 TestMpSongData(); |
|
32 virtual ~TestMpSongData(); |
|
33 |
|
34 signals: |
|
35 |
|
36 void thumbnailReady( const QPixmap& pixmap, void *data, int id, int error ); |
|
37 |
|
38 public slots: |
|
39 void initTestCase(); |
|
40 void cleanupTestCase(); |
|
41 void init(); |
|
42 void cleanup(); |
|
43 |
|
44 private slots: |
|
45 void testMemberCleanup(); |
|
46 void testTitle(); |
|
47 void testAlbum(); |
|
48 void testArtist(); |
|
49 void testComment(); |
|
50 void testAlbumArt(); |
|
51 void testYear(); |
|
52 void testGenre(); |
|
53 void testComposer(); |
|
54 void testAlbumtrack(); |
|
55 void testLink(); |
|
56 |
|
57 void testFileName(); |
|
58 void testMimeType(); |
|
59 void testDuration(); |
|
60 void testBitRate(); |
|
61 void testSampleRate(); |
|
62 void testSize(); |
|
63 void testModified(); |
|
64 void testCopyright(); |
|
65 void testMusicURL(); |
|
66 void testIsDrmProtected(); |
|
67 |
|
68 void testSetTitle(); |
|
69 void testSetAlbum(); |
|
70 void testSetArtist(); |
|
71 void testSetComment(); |
|
72 void testSetYear(); |
|
73 void testSetGenre(); |
|
74 void testSetComposer(); |
|
75 void testSetAlbumTrack(); |
|
76 void testSetLink(); |
|
77 |
|
78 void testSetFileName(); |
|
79 void testSetMimeType(); |
|
80 void testSetDuration(); |
|
81 void testSetBitRate(); |
|
82 void testSetSampleRate(); |
|
83 void testSetSize(); |
|
84 void testSetModified(); |
|
85 void testSetCopyright(); |
|
86 void testSetMusicURL(); |
|
87 void testSetDrmProtected(); |
|
88 |
|
89 void testSetAlbumArtUri(); |
|
90 void testThumbnailReady(); |
|
91 void testCommitPlaybackInfo(); |
|
92 void testCommitSongDetailInfo(); |
|
93 private: |
|
94 MpSongData *mTest; |
|
95 |
|
96 }; |
|
97 |
|
98 |
|
99 #endif /* UNITTEST_MPSONGDATA_H_ */ |