|
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 mpplaybackview |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef TESTMPPLAYBACKVIEW_H |
|
19 #define TESTMPPLAYBACKVIEW_H |
|
20 |
|
21 #include <QtTest/QtTest> |
|
22 #include "mpengine.h" |
|
23 #include "mpviewbase.h" |
|
24 #include "mpequalizerwidget.h" |
|
25 |
|
26 |
|
27 class MpPlaybackView; |
|
28 |
|
29 class TestMpPlaybackView: public QObject |
|
30 { |
|
31 Q_OBJECT |
|
32 |
|
33 public: |
|
34 |
|
35 TestMpPlaybackView(); |
|
36 virtual ~TestMpPlaybackView(); |
|
37 |
|
38 signals: |
|
39 |
|
40 public slots: |
|
41 void initTestCase(); |
|
42 void cleanupTestCase(); |
|
43 void init(); |
|
44 void cleanup(); |
|
45 |
|
46 private slots: |
|
47 //Test Cases |
|
48 void testActivateView(); |
|
49 void testDeactivateView(); |
|
50 void testShuffleEnabled(); |
|
51 void testRepeatEnabled(); |
|
52 void testPlaybackStatus(); |
|
53 |
|
54 void testStartSettingsView(); |
|
55 void testBack(); |
|
56 void testExit(); |
|
57 |
|
58 void testPlaybackStateChanged(); |
|
59 void testFlip(); |
|
60 void testShuffle(); |
|
61 void testRepeat(); |
|
62 |
|
63 void testHandleSongSelected(); |
|
64 void testShowEqualizerDialog(); |
|
65 void testCloseEqualizerDialog(); |
|
66 |
|
67 void testSeekForward(); |
|
68 void testSeekRewind(); |
|
69 void testEndRewind(); |
|
70 void testEndForward(); |
|
71 |
|
72 private: |
|
73 MpPlaybackView *mTest; |
|
74 MpPlaybackData *mPlaybackData; |
|
75 MpViewBase *mViewBase; |
|
76 MpEqualizerWidget *mEqualizerWidget; |
|
77 |
|
78 }; |
|
79 |
|
80 #endif // TESTMPPLAYBACKVIEW_H |
|
81 |
|
82 |
|
83 |
|
84 |