|
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: tester for methods in Video Playback Controls Controller |
|
15 * |
|
16 */ |
|
17 |
|
18 // Version : %version: 1 % |
|
19 |
|
20 #ifndef __TESTMPXVIDEOPLAYBACKCONTROLSCONTROLLER_H__ |
|
21 #define __TESTMPXVIDEOPLAYBACKCONTROLSCONTROLLER_H__ |
|
22 |
|
23 |
|
24 // INCLUDES |
|
25 #include <QtTest/QtTest> |
|
26 #include "mpxvideoplaybackcontrol.hrh" |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class HbVideoBasePlaybackView; |
|
30 class CMPXVideoViewWrapper; |
|
31 class QMPXVideoPlaybackControlsController; |
|
32 class QMPXVideoPlaybackViewFileDetails; |
|
33 |
|
34 class TestMPXVideoPlaybackControlsController : public QObject |
|
35 { |
|
36 Q_OBJECT |
|
37 |
|
38 public: |
|
39 |
|
40 /** |
|
41 * will be called before each testfunction is executed. |
|
42 * |
|
43 */ |
|
44 void init(); |
|
45 |
|
46 /** |
|
47 * will be called after every testfunction. |
|
48 * |
|
49 */ |
|
50 void cleanup(); |
|
51 |
|
52 private: |
|
53 |
|
54 void verifyHandleEventStateChangedResult( int value ); |
|
55 void verifyHandleEventTvOutResult( bool tvOutConnected, bool value ); |
|
56 |
|
57 private slots: |
|
58 |
|
59 // |
|
60 // test addFileDetails() |
|
61 // |
|
62 void testAddFileDetails(); |
|
63 |
|
64 // |
|
65 // test handleEvent() |
|
66 // |
|
67 void testHandleEventSetPosition(); |
|
68 void testHandleEventSetDuration(); |
|
69 void testHandleEventStateChanged(); |
|
70 void testHandleEventSetVolume(); |
|
71 void testHandleEventSetAspectRatio(); |
|
72 void testHandleEventSetDownloadSize(); |
|
73 void testHandleEventDownloadUpdated(); |
|
74 void testHandleEventDownloadComplete(); |
|
75 void testHandleEventSetDownloadPaused(); |
|
76 void testHandleEventClearDownloadPaused(); |
|
77 void testHandleEventTvOutConnected(); |
|
78 void testHandleEventTvOutDisconnected(); |
|
79 void testHandleEventHandleErrors(); |
|
80 void testHandleEventShowVolumeControls(); |
|
81 |
|
82 // |
|
83 // test handleCommand() |
|
84 // |
|
85 void testHandleCommand(); |
|
86 |
|
87 // |
|
88 // test handleTappedOnScreen() |
|
89 // |
|
90 void testHandleTappedOnScreen(); |
|
91 |
|
92 // |
|
93 // test updateVideoRectDone() |
|
94 // |
|
95 void testUpdateVideoRectDone(); |
|
96 |
|
97 // |
|
98 // test private slot skipToNextVideoItem() |
|
99 // |
|
100 void testslot_skipToNextVideoItem(); |
|
101 |
|
102 // |
|
103 // test private slot skipToPreviousVideoItem() |
|
104 // |
|
105 void testslot_skipToPreviousVideoItem(); |
|
106 |
|
107 signals: |
|
108 |
|
109 void commandSignal(); |
|
110 |
|
111 private: |
|
112 |
|
113 HbVideoBasePlaybackView* mBaseVideoView; |
|
114 CMPXVideoViewWrapper* mViewWrapper; |
|
115 QMPXVideoPlaybackControlsController* mController; |
|
116 QMPXVideoPlaybackViewFileDetails* mFileDetails; |
|
117 |
|
118 }; |
|
119 |
|
120 |
|
121 #endif // __TESTMPXVIDEOPLAYBACKCONTROLSCONTROLLER_H__ |
|
122 |
|
123 // End of file |
|
124 |
|
125 |
|
126 |