videoplayback/hbvideoplaybackview/tsrc/testdetailsplaybackwindow/src/testdetailsplaybackwindow.cpp
changeset 37 4eb2df7f7cbe
parent 36 8aed59de29f9
child 40 13331705e488
equal deleted inserted replaced
36:8aed59de29f9 37:4eb2df7f7cbe
    13 *
    13 *
    14 * Description:   tester for methods in TestDetailsPlaybackWindow
    14 * Description:   tester for methods in TestDetailsPlaybackWindow
    15 * 
    15 * 
    16 */
    16 */
    17 
    17 
    18 // Version : %version:  3 %
    18 // Version : %version:  6 %
    19 
    19 
    20 
    20 
    21 #include <qdebug>
    21 #include <qdebug>
    22 #include <qgraphicsscenemouseevent>
    22 #include <qgraphicsscenemouseevent>
    23 
    23 
   201     emit commandSignal();     
   201     emit commandSignal();     
   202     
   202     
   203     //
   203     //
   204     // verify the controller attachVideo() slot has been called
   204     // verify the controller attachVideo() slot has been called
   205     //
   205     //
   206     QVERIFY( mController->mCommand == EMPXPbvCmdClose );
       
   207     QVERIFY( mController->mAttachVideoDone == true );
   206     QVERIFY( mController->mAttachVideoDone == true );
   208 
   207 
   209     //
   208     //
   210     // disconnect signal/slot
   209     // disconnect signal/slot
   211     //
   210     //
   216     //
   215     //
   217     cleanup();
   216     cleanup();
   218         
   217         
   219 }
   218 }
   220 
   219 
       
   220 // ---------------------------------------------------------------------------
       
   221 // testSend
       
   222 // ---------------------------------------------------------------------------
       
   223 //
       
   224 void TestDetailsPlaybackWindow::testSend()
       
   225 {
       
   226     MPX_ENTER_EXIT(
       
   227             _L("TestDetailsPlaybackWindow::testSend()"));
       
   228 
       
   229     //
       
   230     // test when 'share' operation is enabled
       
   231     //
       
   232     init( false );
       
   233     
       
   234     //
       
   235     // connect signal/slot
       
   236     //
       
   237     connect( this, SIGNAL( commandSignal() ), mController, SLOT( sendVideo() ) );
       
   238     
       
   239     //
       
   240     // emit signal
       
   241     //
       
   242     emit commandSignal();     
       
   243     
       
   244     //
       
   245     // verify the controller sendVideo() slot has been called
       
   246     //
       
   247     QVERIFY( mController->mCommand == EMPXPbvCmdPause );
       
   248     QVERIFY( mController->mSendVideoDone == true );
       
   249 
       
   250     //
       
   251     // disconnect signal/slot
       
   252     //
       
   253     disconnect( this, SIGNAL( commandSignal() ), mController, SLOT( sendVideo() ) );
       
   254 
       
   255     //
       
   256     // clean up
       
   257     //
       
   258     cleanup();
       
   259         
       
   260 }
   221 
   261 
   222 // End of file
   262 // End of file