videoplayback/hbvideoplaybackview/tsrc/testmpxvideoviewwrapper/src/testmpxvideoviewwrapper.cpp
equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: tester for methods in VideoSortFilterProxyModel |
14 * Description: tester for methods in VideoSortFilterProxyModel |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 // Version : %version: 7 % |
18 // Version : %version: 8 % |
19 |
19 |
20 #include <e32err.h> |
20 #include <e32err.h> |
21 #include <w32std.h> |
21 #include <w32std.h> |
22 |
22 |
23 #include <hbapplication.h> |
23 #include <hbapplication.h> |
187 QVERIFY( mVideoViewWrapper->iPlaybackUtility->iCommand == EPbCmdStopVideoSeeking ); |
187 QVERIFY( mVideoViewWrapper->iPlaybackUtility->iCommand == EPbCmdStopVideoSeeking ); |
188 |
188 |
189 // |
189 // |
190 // Test 'PlayPause' command |
190 // Test 'PlayPause' command |
191 // |
191 // |
|
192 mVideoViewWrapper->iPlaybackState = EPbStatePlaying; |
192 TRAP( errHdlCmd, mVideoViewWrapper->HandleCommandL( EMPXPbvCmdPlayPause ) ); |
193 TRAP( errHdlCmd, mVideoViewWrapper->HandleCommandL( EMPXPbvCmdPlayPause ) ); |
193 QVERIFY( errHdlCmd == KErrNone ); |
194 QVERIFY( errHdlCmd == KErrNone ); |
194 QVERIFY( mVideoViewWrapper->iPlaybackUtility->iCommand == EPbCmdPlayPause ); |
195 QVERIFY( mVideoViewWrapper->iPlaybackUtility->iCommand == EPbCmdPause ); |
195 |
196 |
|
197 mVideoViewWrapper->iPlaybackState = EPbStatePaused; |
|
198 TRAP( errHdlCmd, mVideoViewWrapper->HandleCommandL( EMPXPbvCmdPlayPause ) ); |
|
199 QVERIFY( errHdlCmd == KErrNone ); |
|
200 QVERIFY( mVideoViewWrapper->iPlaybackUtility->iCommand == EPbCmdPlay ); |
|
201 |
196 // |
202 // |
197 // Test 'Stop' command |
203 // Test 'Stop' command |
198 // |
204 // |
199 TRAP( errHdlCmd, mVideoViewWrapper->HandleCommandL( EMPXPbvCmdStop ) ); |
205 TRAP( errHdlCmd, mVideoViewWrapper->HandleCommandL( EMPXPbvCmdStop ) ); |
200 QVERIFY( errHdlCmd == KErrNone ); |
206 QVERIFY( errHdlCmd == KErrNone ); |