videoplayer_plat/videoplayer_startup_api/tsrc/src/VideoPlayerStartupApiTestBlocks.cpp
branchRCL_3
changeset 8 ce5ada96ab30
parent 0 96612d01cf9f
equal deleted inserted replaced
6:7d91903f795f 8:ce5ada96ab30
    30 #include <mpxmediacontainerdefs.h>
    30 #include <mpxmediacontainerdefs.h>
    31 #include <mpxmediageneraldefs.h>
    31 #include <mpxmediageneraldefs.h>
    32 
    32 
    33 #include "VideoPlayerStartupApiTest.h"
    33 #include "VideoPlayerStartupApiTest.h"
    34 #include "VCXTestLog.h"
    34 #include "VCXTestLog.h"
    35 #include "VCXTestSmClient.h"
       
    36 #include "VCXTestMyVideosCollectionClient.h"
    35 #include "VCXTestMyVideosCollectionClient.h"
    37 
    36 
    38 // CONSTANTS
    37 // CONSTANTS
    39 const TUid KFusionUid = { 0x200159B2 };
    38 const TUid KFusionUid = { 0x200159B2 };
    40 
    39 
    68 
    67 
    69     static TStifFunctionInfo const KFunctions[] =
    68     static TStifFunctionInfo const KFunctions[] =
    70         {  
    69         {  
    71         // Copy this line for every implemented function.
    70         // Copy this line for every implemented function.
    72         // First string is the function name used in TestScripter script file.
    71         // First string is the function name used in TestScripter script file.
    73         // Second is the actual implementation member function. 
    72         // Second is the actual implementation member function.
    74         ENTRY( "ActivationMessage", CVideoPlayerStartupApiTest::ActivationMessageL ),
    73         ENTRY( "ActivationMessage", CVideoPlayerStartupApiTest::ActivationMessageL ),
    75         ENTRY( "KillFusion", CVideoPlayerStartupApiTest::KillFusionL ),
    74         ENTRY( "KillFusion", CVideoPlayerStartupApiTest::KillFusionL ),
    76         //ADD NEW ENTRY HERE
    75         //ADD NEW ENTRY HERE
    77         // [test cases entries] - Do not remove
    76         // [test cases entries] - Do not remove
    78 
    77 
   116     if( iCollectionError == KErrNone )
   115     if( iCollectionError == KErrNone )
   117         {
   116         {
   118         // Refresh collection.
   117         // Refresh collection.
   119         iMyVideosCollectionClient->RefreshCollectionL();
   118         iMyVideosCollectionClient->RefreshCollectionL();
   120         iMessageWait->AddMessage( EVCXTestVideoListRefreshed );
   119         iMessageWait->AddMessage( EVCXTestVideoListRefreshed );
   121         iMessageWait->WaitForAllL( 10, ETrue );    
   120         iMessageWait->WaitForAllL( 10, ETrue );
   122         }
   121         }
   123     
   122     
   124     if( iCollectionError != KErrNone )
   123     if( iCollectionError != KErrNone )
   125         {
   124         {
   126         VCXLOGLO2("CVideoPlayerStartupApiTest::ActivationMessageL: Something failed with my videos collection plugin, err: %d", iCollectionError);
   125         VCXLOGLO2("CVideoPlayerStartupApiTest::ActivationMessageL: Something failed with my videos collection plugin, err: %d", iCollectionError);
   205             break;
   204             break;
   206             
   205             
   207         case TVideoPlayerActivationMessage::ELaunchServiceById:
   206         case TVideoPlayerActivationMessage::ELaunchServiceById:
   208             {
   207             {
   209             VCXLOGLO1("CVideoPlayerStartupApiTest:: msgType: ELaunchServiceById");
   208             VCXLOGLO1("CVideoPlayerStartupApiTest:: msgType: ELaunchServiceById");
   210             iSmClient->GetAnyServiceIdL( message.iServiceId );
       
   211             }
   209             }
   212             break;
   210             break;
   213             
   211             
   214         case TVideoPlayerActivationMessage::EOpenServiceCatalogue:
   212         case TVideoPlayerActivationMessage::EOpenServiceCatalogue:
   215             {
   213             {