|
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 TestMPXVideoPlaybackToolBar |
|
15 * |
|
16 */ |
|
17 |
|
18 // Version : %version: 1 % |
|
19 |
|
20 #ifndef __TESTMPXVIDEOPLAYBACKTOOLBAR_H__ |
|
21 #define __TESTMPXVIDEOPLAYBACKTOOLBAR_H__ |
|
22 |
|
23 |
|
24 // INCLUDES |
|
25 #include <QtTest/QtTest> |
|
26 |
|
27 class QMPXVideoPlaybackToolBar; |
|
28 class QMPXVideoPlaybackControlsController; |
|
29 |
|
30 class TestMPXVideoPlaybackToolBar : 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( bool attachOperation = false ); |
|
41 |
|
42 /** |
|
43 * will be called after every testfunction. |
|
44 * |
|
45 */ |
|
46 void cleanup(); |
|
47 |
|
48 // test functions for the test framework |
|
49 private slots: |
|
50 |
|
51 // the order in which these testXX methods are declared is important |
|
52 // changing this order will affect the test results |
|
53 void testPlay(); |
|
54 void testLongTapOnFF(); |
|
55 void testLongTapOnRW(); |
|
56 void testShortTapOnFF(); |
|
57 void testShortTapOnRW(); |
|
58 void testPause(); |
|
59 void testChangeAspectRatio(); |
|
60 void testUpdateState(); |
|
61 void testAspectRatioChanged(); |
|
62 void testHandleButtonPressed(); |
|
63 void testUpdateWithFileDetails(); |
|
64 void testOpenDetailsView(); |
|
65 void testAttach(); |
|
66 void testSend(); |
|
67 |
|
68 signals: |
|
69 void commandSignal(); |
|
70 |
|
71 private: |
|
72 QMPXVideoPlaybackToolBar* mVideoToolBar; |
|
73 QMPXVideoPlaybackControlsController* mController; |
|
74 }; |
|
75 |
|
76 |
|
77 #endif // __TESTMPXVIDEOPLAYBACKTOOLBAR_H__ |
|
78 |
|
79 // End of file |
|
80 |
|
81 |
|
82 |