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 testAlbumArtIsNull(); |
|
47 void testAlbumArtNotNull(); |
|
48 void testTitleIsNull(); |
|
49 void testAlbumIsNull(); |
|
50 void testArtistIsNull(); |
|
51 void testCommentIsNull(); |
|
52 void testComposerIsNull(); |
|
53 void testGenreIsNull(); |
|
54 void testAlbumtrackIsNull(); |
|
55 void testLinkIsNull(); |
|
56 void testYearIsNull(); |
|
57 void testSetTitleTrue(); |
|
58 void testSetTitleFalse(); |
|
59 void testsetAlbumTrue(); |
|
60 void testsetAlbumFalse(); |
|
61 void testsetArtistTrue(); |
|
62 void testsetArtistFalse(); |
|
63 void testsetCommentTrue(); |
|
64 void testsetCommentFalse(); |
|
65 void testsetComposerTrue(); |
|
66 void testsetComposerFalse(); |
|
67 void testsetGenreTrue(); |
|
68 void testsetGenreFalse(); |
|
69 void testsetYearTrue(); |
|
70 void testsetYearFalse(); |
|
71 void testsetAlbumTrackTrue(); |
|
72 void testsetAlbumTrackFalse(); |
|
73 void testsetAlbumArtUri(); |
|
74 void testThumbnailReady(); |
|
75 void testCommitPlaybackInfo(); |
|
76 void testCommitSongDetailInfo(); |
|
77 private: |
|
78 MpSongData *mTest; |
|
79 |
|
80 }; |
|
81 |
|
82 |
|
83 #endif /* UNITTEST_MPSONGDATA_H_ */ |
|