changeset 46 | adbe7d5ba2f5 |
parent 28 | c48470be1ba7 |
child 52 | e3cecb93e76a |
28:c48470be1ba7 | 46:adbe7d5ba2f5 |
---|---|
13 * |
13 * |
14 * Description: Videoplayerengine test class implementation. |
14 * Description: Videoplayerengine test class implementation. |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 // Version : %version: da1mmcf#13 % |
18 // Version : %version: 14 % |
19 |
19 |
20 // INCLUDES |
20 // INCLUDES |
21 #include <QtTest/QtTest> |
21 #include <QtTest/QtTest> |
22 #include <qdebug.h> |
22 #include <qdebug.h> |
23 #include "stub/inc/hbinstance.h" |
23 #include "stub/inc/hbinstance.h" |
34 #include "mpxhbvideocommondefs.h" |
34 #include "mpxhbvideocommondefs.h" |
35 #include "testvideoplayerengine.h" |
35 #include "testvideoplayerengine.h" |
36 #include "stub/inc/mpxviewpluginqt.h" |
36 #include "stub/inc/mpxviewpluginqt.h" |
37 #include "stub/inc/videoservices.h" |
37 #include "stub/inc/videoservices.h" |
38 #include "stub/inc/xqpluginloader.h" |
38 #include "stub/inc/xqpluginloader.h" |
39 #include "stub/inc/videoactivitystate.h" |
|
39 #include "../stub/inc/mpxvideoplaybackwrapper.h" |
40 #include "../stub/inc/mpxvideoplaybackwrapper.h" |
40 #include "mpxvideo_debug.h" |
41 #include "mpxvideo_debug.h" |
41 |
42 |
42 #define private public |
43 #define private public |
43 #include "videoplayerengine.h" |
44 #include "videoplayerengine.h" |
77 { |
78 { |
78 MPX_ENTER_EXIT(_L("TestVideoPlayerEngine::~TestVideoPlayerEngine()")); |
79 MPX_ENTER_EXIT(_L("TestVideoPlayerEngine::~TestVideoPlayerEngine()")); |
79 |
80 |
80 XQPluginLoader::cleanup(); |
81 XQPluginLoader::cleanup(); |
81 |
82 |
82 delete mTestObject; |
83 if(!mTestObject.isNull()) |
83 mTestObject = 0; |
84 { |
85 delete mTestObject; |
|
86 } |
|
84 } |
87 } |
85 |
88 |
86 |
89 |
87 void TestVideoPlayerEngine::init( bool isService ) |
90 void TestVideoPlayerEngine::init( bool isService ) |
88 { |
91 { |
114 mPlaybackViewPlugin = 0; |
117 mPlaybackViewPlugin = 0; |
115 mCollectionViewPlugin = 0; |
118 mCollectionViewPlugin = 0; |
116 mFileDetailsViewPlugin = 0; |
119 mFileDetailsViewPlugin = 0; |
117 mVideoServices = 0; |
120 mVideoServices = 0; |
118 |
121 |
119 delete mTestObject; |
122 if(!mTestObject.isNull()) |
120 mTestObject = 0; |
123 { |
124 delete mTestObject; |
|
125 } |
|
121 } |
126 } |
122 |
127 |
123 |
128 |
124 void TestVideoPlayerEngine::testCreateDelete() |
129 void TestVideoPlayerEngine::testCreateDelete() |
125 { |
130 { |
126 MPX_DEBUG(_L("TestVideoServices::testCreateDelete()")); |
131 MPX_DEBUG(_L("TestVideoServices::testCreateDelete()")); |
127 |
132 |
128 //Test object creation and deletion |
133 //Test object creation and deletion |
129 init(); |
134 init(); |
130 |
135 |
131 QVERIFY(mTestObject); |
136 QVERIFY(!mTestObject.isNull()); |
132 |
137 |
133 QVERIFY(mTestObject->mCurrentViewPlugin == 0); |
138 QVERIFY(mTestObject->mCurrentViewPlugin == 0); |
134 QVERIFY(mTestObject->mPlaybackViewPlugin == 0); |
139 QVERIFY(mTestObject->mPlaybackViewPlugin == 0); |
135 QVERIFY(mTestObject->mCollectionViewPlugin == 0); |
140 QVERIFY(mTestObject->mCollectionViewPlugin == 0); |
136 QVERIFY(mTestObject->mFileDetailsViewPlugin == 0); |
141 QVERIFY(mTestObject->mFileDetailsViewPlugin == 0); |
150 MPX_DEBUG(_L("TestVideoServices::testCreateDeleteService()")); |
155 MPX_DEBUG(_L("TestVideoServices::testCreateDeleteService()")); |
151 |
156 |
152 //Test object creation and deletion |
157 //Test object creation and deletion |
153 init(true); |
158 init(true); |
154 |
159 |
155 QVERIFY(mTestObject); |
160 QVERIFY(!mTestObject.isNull()); |
156 |
161 |
157 QVERIFY(mTestObject->mCurrentViewPlugin == 0); |
162 QVERIFY(mTestObject->mCurrentViewPlugin == 0); |
158 QVERIFY(mTestObject->mPlaybackViewPlugin == 0); |
163 QVERIFY(mTestObject->mPlaybackViewPlugin == 0); |
159 QVERIFY(mTestObject->mCollectionViewPlugin == 0); |
164 QVERIFY(mTestObject->mCollectionViewPlugin == 0); |
160 QVERIFY(mTestObject->mFileDetailsViewPlugin == 0); |
165 QVERIFY(mTestObject->mFileDetailsViewPlugin == 0); |
172 { |
177 { |
173 MPX_DEBUG(_L("TestVideoServices::testInitialize()")); |
178 MPX_DEBUG(_L("TestVideoServices::testInitialize()")); |
174 |
179 |
175 init(); |
180 init(); |
176 |
181 |
177 QVERIFY(mTestObject); |
182 QVERIFY(!mTestObject.isNull()); |
178 QVERIFY(mTestObject->mCurrentViewPlugin == 0); |
183 QVERIFY(mTestObject->mCurrentViewPlugin == 0); |
179 QVERIFY(mTestObject->mPlaybackViewPlugin == 0); |
184 QVERIFY(mTestObject->mPlaybackViewPlugin == 0); |
180 QVERIFY(mTestObject->mCollectionViewPlugin == 0); |
185 QVERIFY(mTestObject->mCollectionViewPlugin == 0); |
181 QVERIFY(mTestObject->mFileDetailsViewPlugin == 0); |
186 QVERIFY(mTestObject->mFileDetailsViewPlugin == 0); |
182 QVERIFY(mTestObject->mPlaybackWrapper == 0); |
187 QVERIFY(mTestObject->mPlaybackWrapper == 0); |
207 { |
212 { |
208 MPX_DEBUG(_L("TestVideoServices::testInitializeService()")); |
213 MPX_DEBUG(_L("TestVideoServices::testInitializeService()")); |
209 |
214 |
210 init(true); |
215 init(true); |
211 |
216 |
212 QVERIFY(mTestObject); |
217 QVERIFY(!mTestObject.isNull()); |
213 QVERIFY(mTestObject->mCurrentViewPlugin == 0); |
218 QVERIFY(mTestObject->mCurrentViewPlugin == 0); |
214 QVERIFY(mTestObject->mPlaybackViewPlugin == 0); |
219 QVERIFY(mTestObject->mPlaybackViewPlugin == 0); |
215 QVERIFY(mTestObject->mCollectionViewPlugin == 0); |
220 QVERIFY(mTestObject->mCollectionViewPlugin == 0); |
216 QVERIFY(mTestObject->mFileDetailsViewPlugin == 0); |
221 QVERIFY(mTestObject->mFileDetailsViewPlugin == 0); |
217 QVERIFY(mTestObject->mPlaybackWrapper == 0); |
222 QVERIFY(mTestObject->mPlaybackWrapper == 0); |
241 { |
246 { |
242 MPX_DEBUG(_L("TestVideoServices::testMultipleInitialize()")); |
247 MPX_DEBUG(_L("TestVideoServices::testMultipleInitialize()")); |
243 |
248 |
244 init(); |
249 init(); |
245 |
250 |
246 QVERIFY(mTestObject); |
251 QVERIFY(!mTestObject.isNull()); |
247 QVERIFY(mTestObject->mCurrentViewPlugin == 0); |
252 QVERIFY(mTestObject->mCurrentViewPlugin == 0); |
248 QVERIFY(mTestObject->mPlaybackViewPlugin == 0); |
253 QVERIFY(mTestObject->mPlaybackViewPlugin == 0); |
249 QVERIFY(mTestObject->mCollectionViewPlugin == 0); |
254 QVERIFY(mTestObject->mCollectionViewPlugin == 0); |
250 QVERIFY(mTestObject->mFileDetailsViewPlugin == 0); |
255 QVERIFY(mTestObject->mFileDetailsViewPlugin == 0); |
251 QVERIFY(mTestObject->mVideoServices == 0); |
256 QVERIFY(mTestObject->mVideoServices == 0); |
284 { |
289 { |
285 MPX_DEBUG(_L("TestVideoServices::testMultipleInitializeService()")); |
290 MPX_DEBUG(_L("TestVideoServices::testMultipleInitializeService()")); |
286 |
291 |
287 init(true); |
292 init(true); |
288 |
293 |
289 QVERIFY(mTestObject); |
294 QVERIFY(!mTestObject.isNull()); |
290 QVERIFY(mTestObject->mCurrentViewPlugin == 0); |
295 QVERIFY(mTestObject->mCurrentViewPlugin == 0); |
291 QVERIFY(mTestObject->mPlaybackViewPlugin == 0); |
296 QVERIFY(mTestObject->mPlaybackViewPlugin == 0); |
292 QVERIFY(mTestObject->mCollectionViewPlugin == 0); |
297 QVERIFY(mTestObject->mCollectionViewPlugin == 0); |
293 QVERIFY(mTestObject->mFileDetailsViewPlugin == 0); |
298 QVERIFY(mTestObject->mFileDetailsViewPlugin == 0); |
294 QVERIFY(mTestObject->mVideoServices == 0); |
299 QVERIFY(mTestObject->mVideoServices == 0); |
330 { |
335 { |
331 MPX_DEBUG(_L("TestVideoServices::testHandleCommandPreInit()")); |
336 MPX_DEBUG(_L("TestVideoServices::testHandleCommandPreInit()")); |
332 |
337 |
333 init(); |
338 init(); |
334 |
339 |
335 QVERIFY(mTestObject); |
340 QVERIFY(!mTestObject.isNull()); |
336 |
341 |
337 QVERIFY(mTestObject->mCurrentViewPlugin == 0); |
342 QVERIFY(mTestObject->mCurrentViewPlugin == 0); |
338 QVERIFY(mTestObject->mPlaybackViewPlugin == 0); |
343 QVERIFY(mTestObject->mPlaybackViewPlugin == 0); |
339 QVERIFY(mTestObject->mCollectionViewPlugin == 0); |
344 QVERIFY(mTestObject->mCollectionViewPlugin == 0); |
340 QVERIFY(mTestObject->mFileDetailsViewPlugin == 0); |
345 QVERIFY(mTestObject->mFileDetailsViewPlugin == 0); |
361 { |
366 { |
362 MPX_DEBUG(_L("TestVideoServices::testHandleCommandPostInit()")); |
367 MPX_DEBUG(_L("TestVideoServices::testHandleCommandPostInit()")); |
363 |
368 |
364 init(); |
369 init(); |
365 |
370 |
366 QVERIFY(mTestObject); |
371 QVERIFY(!mTestObject.isNull()); |
367 |
372 |
368 QVERIFY(mTestObject->mCurrentViewPlugin == 0); |
373 QVERIFY(mTestObject->mCurrentViewPlugin == 0); |
369 QVERIFY(mTestObject->mPlaybackViewPlugin == 0); |
374 QVERIFY(mTestObject->mPlaybackViewPlugin == 0); |
370 QVERIFY(mTestObject->mCollectionViewPlugin == 0); |
375 QVERIFY(mTestObject->mCollectionViewPlugin == 0); |
371 QVERIFY(mTestObject->mFileDetailsViewPlugin == 0); |
376 QVERIFY(mTestObject->mFileDetailsViewPlugin == 0); |
443 { |
448 { |
444 MPX_DEBUG(_L("TestVideoServices::testHandleCommandPreAndPostInit()")); |
449 MPX_DEBUG(_L("TestVideoServices::testHandleCommandPreAndPostInit()")); |
445 |
450 |
446 init(); |
451 init(); |
447 |
452 |
448 QVERIFY(mTestObject); |
453 QVERIFY(!mTestObject.isNull()); |
449 |
454 |
450 QVERIFY(mTestObject->mCurrentViewPlugin == 0); |
455 QVERIFY(mTestObject->mCurrentViewPlugin == 0); |
451 QVERIFY(mTestObject->mPlaybackViewPlugin == 0); |
456 QVERIFY(mTestObject->mPlaybackViewPlugin == 0); |
452 QVERIFY(mTestObject->mCollectionViewPlugin == 0); |
457 QVERIFY(mTestObject->mCollectionViewPlugin == 0); |
453 QVERIFY(mTestObject->mFileDetailsViewPlugin == 0); |
458 QVERIFY(mTestObject->mFileDetailsViewPlugin == 0); |
535 { |
540 { |
536 MPX_DEBUG(_L("TestVideoServices::testHandleCommandPluginFail()")); |
541 MPX_DEBUG(_L("TestVideoServices::testHandleCommandPluginFail()")); |
537 |
542 |
538 init(); |
543 init(); |
539 |
544 |
540 QVERIFY(mTestObject); |
545 QVERIFY(!mTestObject.isNull()); |
541 |
546 |
542 QVERIFY(mTestObject->mCurrentViewPlugin == 0); |
547 QVERIFY(mTestObject->mCurrentViewPlugin == 0); |
543 QVERIFY(mTestObject->mPlaybackViewPlugin == 0); |
548 QVERIFY(mTestObject->mPlaybackViewPlugin == 0); |
544 QVERIFY(mTestObject->mCollectionViewPlugin == 0); |
549 QVERIFY(mTestObject->mCollectionViewPlugin == 0); |
545 QVERIFY(mTestObject->mFileDetailsViewPlugin == 0); |
550 QVERIFY(mTestObject->mFileDetailsViewPlugin == 0); |
626 { |
631 { |
627 MPX_DEBUG(_L("TestVideoServices::testHandleCommandPluginFail1()")); |
632 MPX_DEBUG(_L("TestVideoServices::testHandleCommandPluginFail1()")); |
628 |
633 |
629 init(); |
634 init(); |
630 |
635 |
631 QVERIFY(mTestObject); |
636 QVERIFY(!mTestObject.isNull()); |
632 |
637 |
633 QVERIFY(mTestObject->mCurrentViewPlugin == 0); |
638 QVERIFY(mTestObject->mCurrentViewPlugin == 0); |
634 QVERIFY(mTestObject->mPlaybackViewPlugin == 0); |
639 QVERIFY(mTestObject->mPlaybackViewPlugin == 0); |
635 QVERIFY(mTestObject->mCollectionViewPlugin == 0); |
640 QVERIFY(mTestObject->mCollectionViewPlugin == 0); |
636 QVERIFY(mTestObject->mFileDetailsViewPlugin == 0); |
641 QVERIFY(mTestObject->mFileDetailsViewPlugin == 0); |
724 { |
729 { |
725 MPX_DEBUG(_L("TestVideoServices::testHandleCommandPluginFail2()")); |
730 MPX_DEBUG(_L("TestVideoServices::testHandleCommandPluginFail2()")); |
726 |
731 |
727 init(); |
732 init(); |
728 |
733 |
729 QVERIFY(mTestObject); |
734 QVERIFY(!mTestObject.isNull()); |
730 |
735 |
731 QVERIFY(mTestObject->mCurrentViewPlugin == 0); |
736 QVERIFY(mTestObject->mCurrentViewPlugin == 0); |
732 QVERIFY(mTestObject->mPlaybackViewPlugin == 0); |
737 QVERIFY(mTestObject->mPlaybackViewPlugin == 0); |
733 QVERIFY(mTestObject->mCollectionViewPlugin == 0); |
738 QVERIFY(mTestObject->mCollectionViewPlugin == 0); |
734 QVERIFY(mTestObject->mFileDetailsViewPlugin == 0); |
739 QVERIFY(mTestObject->mFileDetailsViewPlugin == 0); |
817 { |
822 { |
818 MPX_DEBUG(_L("TestVideoServices::testPlayMedia()")); |
823 MPX_DEBUG(_L("TestVideoServices::testPlayMedia()")); |
819 |
824 |
820 // 1. test with a string |
825 // 1. test with a string |
821 init(); |
826 init(); |
827 QVERIFY(!mTestObject.isNull()); |
|
828 |
|
822 mTestObject->playMedia( QString("c:\\data\\videos\\test.3gp")); |
829 mTestObject->playMedia( QString("c:\\data\\videos\\test.3gp")); |
823 QVERIFY(mTestObject); |
830 QVERIFY(mTestObject); |
824 cleanup(); |
831 cleanup(); |
825 |
832 |
826 // 2. test with a file handle |
833 // 2. test with a file handle |
827 init(); |
834 init(); |
835 QVERIFY(!mTestObject.isNull()); |
|
836 |
|
828 XQSharableFile sf; |
837 XQSharableFile sf; |
829 if ( sf.open("C:\\data\\videos\\test.3gp") ) |
838 if ( sf.open("C:\\data\\videos\\test.3gp") ) |
830 { |
839 { |
831 RFile rFile; |
840 RFile rFile; |
832 bool handleOK = sf.getHandle( rFile ); |
841 bool handleOK = sf.getHandle( rFile ); |
841 } |
850 } |
842 cleanup(); |
851 cleanup(); |
843 |
852 |
844 // 3. test with a filename |
853 // 3. test with a filename |
845 init(); |
854 init(); |
855 QVERIFY(!mTestObject.isNull()); |
|
856 |
|
846 QFile qfile("C:\\data\\videos\\test.3gp"); |
857 QFile qfile("C:\\data\\videos\\test.3gp"); |
847 mTestObject->playMedia( qfile.fileName() ); |
858 mTestObject->playMedia( qfile.fileName() ); |
848 QVERIFY(mTestObject); |
859 QVERIFY(mTestObject); |
849 cleanup(); |
860 cleanup(); |
850 |
861 |
853 void TestVideoPlayerEngine::testSetEmbedded() |
864 void TestVideoPlayerEngine::testSetEmbedded() |
854 { |
865 { |
855 MPX_DEBUG(_L("TestVideoServices::testSetEmbedded()")); |
866 MPX_DEBUG(_L("TestVideoServices::testSetEmbedded()")); |
856 |
867 |
857 init(); |
868 init(); |
858 QVERIFY(mTestObject); |
869 QVERIFY(!mTestObject.isNull()); |
859 mTestObject->setEmbedded(); |
870 mTestObject->setEmbedded(); |
860 QVERIFY( mTestObject->mEmbedded == true ); |
871 QVERIFY( mTestObject->mEmbedded == true ); |
861 cleanup(); |
872 cleanup(); |
862 } |
873 } |
863 |
874 |
875 void TestVideoPlayerEngine::testInitWithActivityData() |
|
876 { |
|
877 MPX_DEBUG(_L("TestVideoServices::testInitialize()")); |
|
878 |
|
879 init(); |
|
880 QVERIFY(!mTestObject.isNull()); |
|
881 |
|
882 mTestObject->initialize(); |
|
883 |
|
884 // by default, colleciton view plugin is activated |
|
885 QVERIFY(mTestObject); |
|
886 QVERIFY(mTestObject->mCurrentViewPlugin); |
|
887 QVERIFY(mTestObject->mPlaybackViewPlugin == 0); |
|
888 QVERIFY(mTestObject->mCollectionViewPlugin); |
|
889 QVERIFY(mTestObject->mFileDetailsViewPlugin == 0); |
|
890 QVERIFY(mTestObject->mPlaybackWrapper); |
|
891 QVERIFY(mTestObject->mCurrentViewPlugin->activated()); |
|
892 QVERIFY(mTestObject->mCollectionViewPlugin->activated()); |
|
893 |
|
894 cleanup(); |
|
895 init(); |
|
896 QVERIFY(!mTestObject.isNull()); |
|
897 |
|
898 QVariant data = int(MpxHbVideoCommon::PlaybackView); |
|
899 // playback plugin |
|
900 VideoActivityState::instance().setActivityData(data, VideoActivityData::KEY_VIEWPLUGIN_TYPE); |
|
901 mTestObject->initialize(); |
|
902 QVERIFY(mTestObject); |
|
903 QVERIFY(mTestObject->mCurrentViewPlugin); |
|
904 QVERIFY(mTestObject->mPlaybackViewPlugin); |
|
905 QVERIFY(mTestObject->mCollectionViewPlugin == 0); |
|
906 QVERIFY(mTestObject->mFileDetailsViewPlugin == 0); |
|
907 QVERIFY(mTestObject->mPlaybackWrapper); |
|
908 QVERIFY(mTestObject->mCurrentViewPlugin->activated()); |
|
909 QVERIFY(mTestObject->mPlaybackViewPlugin->activated()); |
|
910 |
|
911 cleanup(); |
|
912 init(); |
|
913 QVERIFY(!mTestObject.isNull()); |
|
914 |
|
915 // only collection view and playback view are accepted, so all other cases |
|
916 // ends up into default: collectionview |
|
917 data = int(MpxHbVideoCommon::VideoDetailsView); |
|
918 VideoActivityState::instance().setActivityData(data, VideoActivityData::KEY_VIEWPLUGIN_TYPE); |
|
919 mTestObject->initialize(); |
|
920 QVERIFY(mTestObject); |
|
921 QVERIFY(mTestObject->mCurrentViewPlugin); |
|
922 QVERIFY(mTestObject->mPlaybackViewPlugin == 0); |
|
923 QVERIFY(mTestObject->mCollectionViewPlugin); |
|
924 QVERIFY(mTestObject->mFileDetailsViewPlugin == 0); |
|
925 QVERIFY(mTestObject->mPlaybackWrapper); |
|
926 QVERIFY(mTestObject->mCurrentViewPlugin->activated()); |
|
927 QVERIFY(mTestObject->mCollectionViewPlugin->activated()); |
|
928 |
|
929 cleanup(); |
|
930 |
|
931 } |
|
932 |
|
933 void TestVideoPlayerEngine::testHandleQuitWihtActivityData() |
|
934 { |
|
935 // we make sure that engine saves correct plugin type before exit |
|
936 // using VideoActivityState since value is saved there before actually |
|
937 // being save to activitymanager |
|
938 |
|
939 init(); |
|
940 QVERIFY(!mTestObject.isNull()); |
|
941 connect(this, SIGNAL(aboutToQuit()), mTestObject, SLOT(handleQuit())); |
|
942 |
|
943 mTestObject->initialize(); |
|
944 VideoActivityState::mAllDataGetCount = 0; |
|
945 |
|
946 emit aboutToQuit(); |
|
947 |
|
948 QVariant data = QVariant(); |
|
949 data = VideoActivityState::instance().getActivityData(VideoActivityData::KEY_VIEWPLUGIN_TYPE); |
|
950 QVERIFY(data.isValid()); |
|
951 QVERIFY(data.toInt() == MpxHbVideoCommon::CollectionView); |
|
952 QVERIFY(VideoActivityState::mAllDataGetCount == 1); |
|
953 |
|
954 cleanup(); |
|
955 init(); |
|
956 QVERIFY(!mTestObject.isNull()); |
|
957 connect(this, SIGNAL(aboutToQuit()), mTestObject, SLOT(handleQuit())); |
|
958 |
|
959 data = int(MpxHbVideoCommon::PlaybackView); |
|
960 VideoActivityState::instance().setActivityData(data, VideoActivityData::KEY_VIEWPLUGIN_TYPE); |
|
961 mTestObject->initialize(); |
|
962 VideoActivityState::mAllDataGetCount = 0; |
|
963 |
|
964 emit aboutToQuit(); |
|
965 |
|
966 data = QVariant(); |
|
967 data = VideoActivityState::instance().getActivityData(VideoActivityData::KEY_VIEWPLUGIN_TYPE); |
|
968 QVERIFY(data.isValid()); |
|
969 QVERIFY(data.toInt() == MpxHbVideoCommon::PlaybackView); |
|
970 QVERIFY(VideoActivityState::mAllDataGetCount == 1); |
|
971 |
|
972 cleanup(); |
|
973 init(); |
|
974 QVERIFY(!mTestObject.isNull()); |
|
975 connect(this, SIGNAL(aboutToQuit()), mTestObject, SLOT(handleQuit())); |
|
976 |
|
977 data = int(MpxHbVideoCommon::VideoDetailsView); |
|
978 VideoActivityState::instance().setActivityData(data, VideoActivityData::KEY_VIEWPLUGIN_TYPE); |
|
979 mTestObject->initialize(); |
|
980 VideoActivityState::mAllDataGetCount = 0; |
|
981 |
|
982 emit aboutToQuit(); |
|
983 |
|
984 data = QVariant(); |
|
985 data = VideoActivityState::instance().getActivityData(VideoActivityData::KEY_VIEWPLUGIN_TYPE); |
|
986 QVERIFY(data.isValid()); |
|
987 QVERIFY(data.toInt() == MpxHbVideoCommon::CollectionView); |
|
988 QVERIFY(VideoActivityState::mAllDataGetCount == 1); |
|
989 |
|
990 cleanup(); |
|
991 } |
|
992 |
|
993 |
|
864 void TestVideoPlayerEngine::cleanupTestCase() |
994 void TestVideoPlayerEngine::cleanupTestCase() |
865 { |
995 { |
866 MPX_DEBUG(_L("TestVideoServices::cleanupTestCase()")); |
996 MPX_DEBUG(_L("TestVideoServices::cleanupTestCase()")); |
867 // all common cleanup here |
997 // all common cleanup here |
868 } |
998 } |