|
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 for ControlConfiguration |
|
15 * |
|
16 */ |
|
17 |
|
18 // Version : %version: 3 % |
|
19 |
|
20 |
|
21 #ifndef __TESTCONTROLCONFIGURATION_H__ |
|
22 #define __TESTCONTROLCONFIGURATION_H__ |
|
23 |
|
24 |
|
25 // INCLUDES |
|
26 #include <QtTest/QtTest> |
|
27 |
|
28 class VideoBasePlaybackView; |
|
29 class CMPXVideoViewWrapper; |
|
30 class VideoPlaybackViewFileDetails; |
|
31 class VideoPlaybackControlsController; |
|
32 class VideoPlaybackControlConfiguration; |
|
33 |
|
34 |
|
35 class TestControlConfiguration : public QObject |
|
36 { |
|
37 Q_OBJECT |
|
38 |
|
39 public: |
|
40 |
|
41 /** |
|
42 * will be called before each testfunction is executed. |
|
43 * |
|
44 */ |
|
45 void init(); |
|
46 |
|
47 /** |
|
48 * will be called after every testfunction. |
|
49 * |
|
50 */ |
|
51 void cleanup(); |
|
52 |
|
53 // test functions for the test framework |
|
54 |
|
55 void setup(); |
|
56 |
|
57 private slots: |
|
58 void testControlList(); |
|
59 void testUpdateControlsWithFileDetails(); |
|
60 void testUpdateControlList(); |
|
61 |
|
62 signals: |
|
63 void commandSignal(int); |
|
64 |
|
65 private: |
|
66 VideoBasePlaybackView* mBaseVideoView; |
|
67 CMPXVideoViewWrapper* mVideoViewWrapper; |
|
68 VideoPlaybackViewFileDetails* mFileDetails; |
|
69 VideoPlaybackControlsController* mControlsController; |
|
70 VideoPlaybackControlConfiguration* mControlConfig; |
|
71 }; |
|
72 |
|
73 |
|
74 #endif // __TESTCONTROLCONFIGURATION_H__ |
|
75 |
|
76 // End of file |