1 /** |
|
2 * Copyright (c) 2009 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 View Plugin |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __TESTMPXVIDEOVIEWWRAPPER_H__ |
|
19 #define __TESTMPXVIDEOVIEWWRAPPER_H__ |
|
20 |
|
21 |
|
22 // INCLUDES |
|
23 #include <QtTest/QtTest> |
|
24 |
|
25 class CMPXVideoViewWrapper; |
|
26 class HbVideoBasePlaybackView; |
|
27 |
|
28 class TestMPXVideoViewWrapper : public QObject |
|
29 { |
|
30 Q_OBJECT |
|
31 |
|
32 public: |
|
33 |
|
34 /** |
|
35 * will be called before each testfunction is executed. |
|
36 * |
|
37 */ |
|
38 void init(); |
|
39 |
|
40 /** |
|
41 * will be called after every testfunction. |
|
42 * |
|
43 */ |
|
44 void cleanup(); |
|
45 |
|
46 private slots: |
|
47 // the order in which these testXX methods are declared is important |
|
48 // changing this order will affect the test results |
|
49 void testRequestMedia(); |
|
50 void testIsLive(); |
|
51 void testIsPlaylist(); |
|
52 void testHandleCommand(); |
|
53 void testHandlePluginError(); |
|
54 void testHandlePlaybackMessage(); |
|
55 void testSetProperty(); |
|
56 void testHandleProperty(); |
|
57 void testRetrieveFileNameAndMode(); |
|
58 void testActivateClosePlayerActiveObject(); |
|
59 void testDoClosePlayer(); |
|
60 void testSetAspectRatio(); |
|
61 void testIsAppInFront(); |
|
62 void testClosePlaybackView(); |
|
63 void testHandleVolumeCmd(); |
|
64 void testHandleShortPressBackward(); |
|
65 void testIssueVideoAppForegroundCmd(); |
|
66 void testCreateControls(); |
|
67 void testIsMultiItemPlaylist(); |
|
68 void testUpdateVideoRect(); |
|
69 void testUpdateVideoRectDone(); |
|
70 void testHandleBufferingState(); |
|
71 void testHandleVideoPlaybackMessage(); |
|
72 void testHandlePlaybackCommandComplete(); |
|
73 void testHandleMedia(); |
|
74 |
|
75 signals: |
|
76 void commandSignal(int); |
|
77 |
|
78 private: |
|
79 CMPXVideoViewWrapper *mVideoViewWrapper; |
|
80 HbVideoBasePlaybackView *mBaseVideoView; |
|
81 }; |
|
82 |
|
83 #endif // __TESTMPXVIDEOVIEWWRAPPER_H__ |
|
84 |
|
85 // End of file |
|