|
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 TestVolumeControl |
|
15 * |
|
16 */ |
|
17 |
|
18 // Version : %version: 1 % |
|
19 |
|
20 #ifndef __TESTVOLUMECONTROL_H__ |
|
21 #define __TESTVOLUMECONTROL_H__ |
|
22 |
|
23 |
|
24 // INCLUDES |
|
25 #include <QtTest/QtTest> |
|
26 |
|
27 class VideoPlaybackVolumeControl; |
|
28 class VideoPlaybackControlsController; |
|
29 |
|
30 class TestVolumeControl : public QObject |
|
31 { |
|
32 Q_OBJECT |
|
33 |
|
34 public: |
|
35 |
|
36 /** |
|
37 * will be called before each testfunction is executed. |
|
38 * |
|
39 */ |
|
40 void init(); |
|
41 |
|
42 void setup(); |
|
43 |
|
44 /** |
|
45 * will be called after every testfunction. |
|
46 * |
|
47 */ |
|
48 void cleanup(); |
|
49 |
|
50 // test functions for the test framework |
|
51 private slots: |
|
52 void testVolumeChanged(); |
|
53 void testSetVisible(); |
|
54 void testIsVisible(); |
|
55 void testHandleSliderValueChanged(); |
|
56 void testHandleMuteIconClicked(); |
|
57 void testHandleSliderPressed(); |
|
58 void testHandleSliderReleased(); |
|
59 void testHandleDraggingTimerTimeOut(); |
|
60 |
|
61 signals: |
|
62 void commandSignal(); |
|
63 void commandSignal( int ); |
|
64 |
|
65 private: |
|
66 VideoPlaybackVolumeControl* mVolumeControl; |
|
67 VideoPlaybackControlsController* mController; |
|
68 }; |
|
69 |
|
70 |
|
71 #endif // __TESTVOLUMECONTROL_H__ |
|
72 |
|
73 // End of file |