967 // initialize controlscontroller |
967 // initialize controlscontroller |
968 // |
968 // |
969 init(); |
969 init(); |
970 |
970 |
971 // |
971 // |
|
972 // verify view closePlaybackView() slot is not yet called |
|
973 // |
|
974 QVERIFY( mController->mView->mViewClosed == false ); |
|
975 |
|
976 // |
972 // connect signal with controller attachVideo() slot |
977 // connect signal with controller attachVideo() slot |
973 // |
978 // |
974 bool res = connect( this, SIGNAL( commandSignal() ), mController, SLOT( attachVideo() ) ); |
979 bool res = connect( this, SIGNAL( commandSignal() ), mController, SLOT( attachVideo() ) ); |
975 |
980 |
976 // |
981 // |
977 // emit signal, this will in turns invoke videoservices itemSelected() slot |
982 // emit signal, this will in turns invoke videoservices itemSelected() slot |
978 // |
983 // |
979 emit commandSignal(); |
984 emit commandSignal(); |
980 |
985 |
981 // |
986 // |
|
987 // verify view closePlaybackView() slot is called |
|
988 // |
|
989 QVERIFY( mController->mView->mViewClosed == true ); |
|
990 |
|
991 // |
|
992 // verify videoservices itemSelected() slot is called |
|
993 // |
|
994 QVERIFY( mController->mVideoServices->mItemSelected == true ); |
|
995 |
|
996 // |
|
997 // disconnect signal |
|
998 // |
|
999 disconnect( this, SIGNAL( commandSignal() ), mController, SLOT( attachVideo() ) ); |
|
1000 |
|
1001 // |
|
1002 // clean up |
|
1003 // |
|
1004 cleanup(); |
|
1005 |
|
1006 // |
|
1007 // dereference extraUtil count |
|
1008 // |
|
1009 extraUtil->decreaseReferenceCount(); |
|
1010 |
|
1011 } |
|
1012 |
|
1013 // ------------------------------------------------------------------------------------------------- |
|
1014 // TestMPXVideoPlaybackControlsController::testslot_sendVideo |
|
1015 // ------------------------------------------------------------------------------------------------- |
|
1016 // |
|
1017 void TestMPXVideoPlaybackControlsController::testslot_sendVideo() |
|
1018 { |
|
1019 MPX_DEBUG(_L("TestMPXVideoPlaybackControlsController::testslot_sendVideo()") ); |
|
1020 |
|
1021 // |
|
1022 // initialize controlscontroller |
|
1023 // |
|
1024 init(); |
|
1025 |
|
1026 // |
|
1027 // connect signal with controller sendVideoo() slot |
|
1028 // |
|
1029 bool res = connect( this, SIGNAL( commandSignal() ), mController, SLOT( sendVideo() ) ); |
|
1030 |
|
1031 // |
|
1032 // emit signal, this will in turns invoke mController sendVideo() slot |
|
1033 // |
|
1034 emit commandSignal(); |
|
1035 |
|
1036 // |
982 // verify command EMPXPbvCmdClose has been issued |
1037 // verify command EMPXPbvCmdClose has been issued |
983 // |
1038 // |
984 QVERIFY( mViewWrapper->mCommandId == EMPXPbvCmdClose ); |
1039 QVERIFY( mViewWrapper->mCommandId == EMPXPbvCmdPause ); |
985 |
1040 |
986 // |
|
987 // verify videoservices itemSelected() slot is called |
|
988 // |
|
989 QVERIFY( mController->mVideoServices->mItemSelected == true ); |
|
990 |
|
991 // |
1041 // |
992 // disconnect signal |
1042 // disconnect signal |
993 // |
1043 // |
994 disconnect( this, SIGNAL( commandSignal() ), mController, SLOT( attachVideo() ) ); |
1044 disconnect( this, SIGNAL( commandSignal() ), mController, SLOT( sendVideo() ) ); |
995 |
1045 |
996 // |
1046 // |
997 // clean up |
1047 // clean up |
998 // |
1048 // |
999 cleanup(); |
1049 cleanup(); |
1000 |
|
1001 // |
|
1002 // dereference extraUtil count |
|
1003 // |
|
1004 extraUtil->decreaseReferenceCount(); |
|
1005 |
|
1006 } |
1050 } |
1007 |
1051 |
1008 |
1052 |
1009 // End of file |
1053 // End of file |
1010 |
1054 |