44
|
1 |
/**
|
50
|
2 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
44
|
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
|
50
|
15 |
*
|
44
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef __TESTMPXVIDEOVIEWWRAPPER_H__
|
|
19 |
#define __TESTMPXVIDEOVIEWWRAPPER_H__
|
|
20 |
|
|
21 |
|
|
22 |
// INCLUDES
|
|
23 |
#include <QtTest/QtTest>
|
|
24 |
|
|
25 |
class CMPXVideoViewWrapper;
|
|
26 |
class VideoBasePlaybackView;
|
|
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 |
*/
|
50
|
38 |
void init();
|
|
39 |
|
44
|
40 |
/**
|
|
41 |
* will be called after every testfunction.
|
|
42 |
*
|
|
43 |
*/
|
|
44 |
void cleanup();
|
50
|
45 |
|
44
|
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 testClosePlaybackView();
|
|
62 |
void testHandleVolumeCmd();
|
|
63 |
void testHandleShortPressBackward();
|
|
64 |
void testIssueVideoAppForegroundCmd();
|
|
65 |
void testCreateControls();
|
|
66 |
void testIsMultiItemPlaylist();
|
|
67 |
void testUpdateVideoRect();
|
|
68 |
void testUpdateVideoRectDone();
|
|
69 |
void testHandleBufferingState();
|
|
70 |
void testHandleVideoPlaybackMessage();
|
|
71 |
void testHandlePlaybackCommandComplete();
|
|
72 |
void testHandleMedia();
|
50
|
73 |
void testSurfacedAttached();
|
66
|
74 |
void testVolumeSteps();
|
|
75 |
void testSetDefaultAspectRatio();
|
44
|
76 |
|
|
77 |
signals:
|
|
78 |
void commandSignal(int);
|
50
|
79 |
|
44
|
80 |
private:
|
|
81 |
CMPXVideoViewWrapper *mVideoViewWrapper;
|
50
|
82 |
VideoBasePlaybackView *mBaseVideoView;
|
44
|
83 |
};
|
|
84 |
|
|
85 |
#endif // __TESTMPXVIDEOVIEWWRAPPER_H__
|
|
86 |
|
|
87 |
// End of file
|