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: test module for QMPXVideoPlaybackFullScreenControl |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __TESTFULLSCREENCONTROL_H__ |
|
19 #define __TESTFULLSCREENCONTROL_H__ |
|
20 |
|
21 |
|
22 // INCLUDES |
|
23 #include <QtTest/QtTest> |
|
24 |
|
25 #include "mpxvideoplaybackcontrol.hrh" |
|
26 |
|
27 |
|
28 class QMPXVideoPlaybackControlsController; |
|
29 class QMPXVideoPlaybackFullScreenControl; |
|
30 |
|
31 |
|
32 |
|
33 class TestFullScreenControl : public QObject |
|
34 { |
|
35 Q_OBJECT |
|
36 |
|
37 public: |
|
38 |
|
39 /** |
|
40 * will be called before each testfunction is executed. |
|
41 * |
|
42 */ |
|
43 void init(); |
|
44 |
|
45 /** |
|
46 * will be called after every testfunction. |
|
47 * |
|
48 */ |
|
49 void cleanup(); |
|
50 |
|
51 // test functions for the test framework |
|
52 |
|
53 |
|
54 void setup(TMPXVideoPlaybackControls control); |
|
55 |
|
56 void createControl(TMPXVideoPlaybackControls control); |
|
57 |
|
58 private slots: |
|
59 |
|
60 void testControlIndex(); |
|
61 |
|
62 void testDurationChanged(); |
|
63 |
|
64 void testPositionChanged(); |
|
65 |
|
66 void testAspectRatioChanged(); |
|
67 |
|
68 void testUpdateState(); |
|
69 |
|
70 void testUpdateControlsWithFileDetails(); |
|
71 |
|
72 void testUpdateControlProperties(); |
|
73 |
|
74 signals: |
|
75 |
|
76 void commandSignal(int); |
|
77 |
|
78 private: |
|
79 QMPXVideoPlaybackControlsController* mControlsController; |
|
80 QMPXVideoPlaybackFullScreenControl* mFullScreenControl; |
|
81 |
|
82 }; |
|
83 |
|
84 |
|
85 #endif // __TESTFULLSCREENCONTROL_H__ |
|
86 |
|
87 // End of file |
|