videoplayerapp/videoplayerengine/tsrc/testvideoplayerengine/inc/testvideoplayerengine.h
equal
deleted
inserted
replaced
21 // |
21 // |
22 // missing test functions: |
22 // missing test functions: |
23 // - how to setup construction to fail for testing purposes |
23 // - how to setup construction to fail for testing purposes |
24 |
24 |
25 |
25 |
26 // Version : %version: % |
26 // Version : %version: 8 % |
27 |
27 |
28 #ifndef __TESTVIDEOPLAYERENGINE_H__ |
28 #ifndef __TESTVIDEOPLAYERENGINE_H__ |
29 #define __TESTVIDEOPLAYERENGINE_H__ |
29 #define __TESTVIDEOPLAYERENGINE_H__ |
30 |
30 |
31 |
31 |
32 // INCLUDES |
32 // INCLUDES |
33 #include <QtTest/QtTest> |
33 #include <QtTest/QtTest> |
|
34 #include <qpointer.h> |
34 |
35 |
35 class MpxViewPlugin; |
36 class MpxViewPlugin; |
36 class QMpxVideoPlaybackWrapper; |
37 class QMpxVideoPlaybackWrapper; |
37 class QVideoPlayerEngine; |
38 class QVideoPlayerEngine; |
38 class VideoServices; |
39 class VideoServices; |
78 void testHandleCommandPluginFail1(); |
79 void testHandleCommandPluginFail1(); |
79 void testHandleCommandPluginFail2(); |
80 void testHandleCommandPluginFail2(); |
80 |
81 |
81 void testPlayMedia(); |
82 void testPlayMedia(); |
82 void testSetEmbedded(); |
83 void testSetEmbedded(); |
|
84 |
|
85 void testInitWithActivityData(); |
|
86 void testHandleQuitWihtActivityData(); |
83 |
87 |
84 // called after last test case executed |
88 // called after last test case executed |
85 void cleanupTestCase(); |
89 void cleanupTestCase(); |
86 |
90 |
87 signals: |
91 signals: |
89 void aboutToQuit(); |
93 void aboutToQuit(); |
90 void command( int ); |
94 void command( int ); |
91 |
95 |
92 private: |
96 private: |
93 |
97 |
94 QVideoPlayerEngine* mTestObject; |
98 QPointer<QVideoPlayerEngine> mTestObject; |
95 |
99 |
96 MpxViewPlugin* mCurrentViewPlugin; |
100 MpxViewPlugin* mCurrentViewPlugin; |
97 MpxViewPlugin* mPlaybackViewPlugin; |
101 MpxViewPlugin* mPlaybackViewPlugin; |
98 MpxViewPlugin* mCollectionViewPlugin; |
102 MpxViewPlugin* mCollectionViewPlugin; |
99 MpxViewPlugin* mFileDetailsViewPlugin; |
103 MpxViewPlugin* mFileDetailsViewPlugin; |