videoplayback/videoplaybackview/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: 16 % |
18 // Version : %version: 17 % |
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> |
648 // |
648 // |
649 // test foreground |
649 // test foreground |
650 // |
650 // |
651 TRAPD( errIssueVidAppFGCmd, mVideoViewWrapper->IssueVideoAppForegroundCmdL( ETrue, ETrue ) ); |
651 TRAPD( errIssueVidAppFGCmd, mVideoViewWrapper->IssueVideoAppForegroundCmdL( ETrue, ETrue ) ); |
652 QVERIFY( mVideoViewWrapper->iPlaybackUtility->iCommand == EPbCmdHandleForeground ); |
652 QVERIFY( mVideoViewWrapper->iPlaybackUtility->iCommand == EPbCmdHandleForeground ); |
|
653 QVERIFY( mVideoViewWrapper->iControlsController->mReceivedEvent == EControlCmdHandleForegroundEvent ); |
653 QVERIFY( errIssueVidAppFGCmd == KErrNone ); |
654 QVERIFY( errIssueVidAppFGCmd == KErrNone ); |
654 |
655 |
655 // |
656 // |
656 // test background |
657 // test background |
657 // |
658 // |
658 TRAP( errIssueVidAppFGCmd, mVideoViewWrapper->IssueVideoAppForegroundCmdL( EFalse, EFalse ) ); |
659 TRAP( errIssueVidAppFGCmd, mVideoViewWrapper->IssueVideoAppForegroundCmdL( EFalse, EFalse ) ); |
659 QVERIFY( mVideoViewWrapper->iPlaybackUtility->iCommand == EPbCmdHandleBackground ); |
660 QVERIFY( mVideoViewWrapper->iPlaybackUtility->iCommand == EPbCmdHandleBackground ); |
|
661 QVERIFY( mVideoViewWrapper->iControlsController->mReceivedEvent == EControlCmdHandleBackgroundEvent ); |
660 QVERIFY( errIssueVidAppFGCmd == KErrNone ); |
662 QVERIFY( errIssueVidAppFGCmd == KErrNone ); |
661 |
663 |
662 cleanup(); |
664 cleanup(); |
663 } |
665 } |
664 |
666 |