videoplayback/hbvideoplaybackview/tsrc/testmpxvideoplaybackcontrolpolicy/src/testmpxvideoplaybackcontrolpolicy.cpp
equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: tester for methods in TestMPXVideoPlaybackControlPolicy |
14 * Description: tester for methods in TestMPXVideoPlaybackControlPolicy |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 // Version : %version: 1 % |
18 // Version : %version: 2 % |
19 |
19 |
20 |
20 |
21 #include <qdebug> |
21 #include <qdebug> |
22 |
22 |
23 #include <hbmainwindow.h> |
23 #include <hbmainwindow.h> |
140 |
140 |
141 init(); |
141 init(); |
142 |
142 |
143 TUint properties = 0; |
143 TUint properties = 0; |
144 |
144 |
145 mPolicy->setControlProperties( EMPXButtonBar, properties, mDetails, EDetailsView ); |
145 mPolicy->setControlProperties( EMPXControlBar, properties, mDetails, EDetailsView ); |
146 QVERIFY( properties == 0 ); |
146 QVERIFY( properties == 0 ); |
147 |
147 |
148 mPolicy->setControlProperties( EMPXProgressBar, properties, mDetails, EAudioOnlyView ); |
148 mPolicy->setControlProperties( EMPXControlBar, properties, mDetails, EAudioOnlyView ); |
149 QVERIFY( properties == EMPXAllProperties ); |
149 QVERIFY( properties == EMPXAllProperties ); |
150 |
150 |
151 mPolicy->setControlProperties( EMPXButtonBar, properties, mDetails, EFullScreenView ); |
151 mPolicy->setControlProperties( EMPXControlBar, properties, mDetails, EFullScreenView ); |
152 QVERIFY( properties == ( EMPXShownWhenPlaying | EMPXShownWhenPaused | EMPXShownWhenSeeking ) ); |
152 QVERIFY( properties == ( EMPXShownWhenPlaying | EMPXShownWhenPaused | EMPXShownWhenSeeking ) ); |
153 |
153 |
154 cleanup(); |
154 cleanup(); |
155 } |
155 } |
156 |
156 |