mmappfw_plat/mpx_common_api/tsrc/ui_commontestclass/src/commontestclassblocks.cpp
changeset 0 a2952bb97e68
equal deleted inserted replaced
-1:000000000000 0:a2952bb97e68
       
     1 /*
       
     2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  CCommonTestClass block implemetation for STIF Test Framework TestScripter.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include <e32svr.h>
       
    22 #include <StifParser.h>
       
    23 #include <Stiftestinterface.h>
       
    24 #include <mpxmediaarray.h>
       
    25 #include <mpxcollectionpath.h>
       
    26 #include "commontestclass.h"
       
    27 #include "mpxpluginhandlerbase.h"//add
       
    28 
       
    29 // ============================ MEMBER FUNCTIONS ===============================
       
    30 
       
    31 // -----------------------------------------------------------------------------
       
    32 // CCommonTestClass::Delete
       
    33 // Delete here all resources allocated and opened from test methods. 
       
    34 // Called from destructor. 
       
    35 // -----------------------------------------------------------------------------
       
    36 //
       
    37 void CCommonTestClass::Delete() 
       
    38     {
       
    39     FTRACE(FPrint(_L("CCommonTestClass::Delete")));
       
    40     
       
    41     iExpectedEvents.Close();
       
    42     iOcurredEvents.Close();
       
    43 
       
    44     // mpxpluginmonitor
       
    45     if ( iPluginMonitor != NULL)
       
    46         {
       
    47         delete iPluginMonitor;
       
    48         }    
       
    49     // mpxcentrpwatcher
       
    50     if ( iCenRepWatcher != NULL)
       
    51         {
       
    52         delete iCenRepWatcher;
       
    53         }    
       
    54     
       
    55     // mpxparameter
       
    56     if ( iParameter != NULL)
       
    57         {
       
    58         delete iParameter;
       
    59         }    
       
    60     
       
    61     // mpxcollectiontype
       
    62     if ( iType != NULL)
       
    63         {
       
    64         delete iType;
       
    65         }    
       
    66 
       
    67     // CMPXPSKeyWatcher
       
    68     if ( iPSWatcher != NULL)
       
    69         {
       
    70         delete iPSWatcher;
       
    71         }    
       
    72 
       
    73     // MPXDrmMediaUtility
       
    74     if ( iDrmMediaUtility != NULL)
       
    75         {
       
    76         delete iDrmMediaUtility;
       
    77         }
       
    78     
       
    79     // CMPXMessageQueue
       
    80     if ( iMessageQueue != NULL)
       
    81         {
       
    82         delete iMessageQueue;
       
    83         }
       
    84    
       
    85     // MPX Attribute array
       
    86     iMPXAttArray.Close();
       
    87     // MPXItemId array
       
    88     iMPXItemIdArray.Close();
       
    89     
       
    90     // MPXMediaArray
       
    91     if ( iMPXMediaArray )
       
    92         {
       
    93         iMPXMediaArray->Reset();
       
    94         delete iMPXMediaArray;
       
    95         }
       
    96     // MPXCollectionPath
       
    97     if ( iMPXCollectionPath )
       
    98         {
       
    99         iMPXCollectionPath->Reset();
       
   100         delete iMPXCollectionPath;
       
   101         }
       
   102     
       
   103     // MPXClientList
       
   104     if ( iClientList )
       
   105         {
       
   106         delete iClientList;
       
   107         }
       
   108 
       
   109     // CMPXMessageMonitor
       
   110     if ( iMsgMonitor )
       
   111         {
       
   112         delete iMsgMonitor;
       
   113         iMessageSession.Close();
       
   114         }
       
   115 
       
   116     // CMPXViewPlugin
       
   117     if ( iViewPlugin )
       
   118         {
       
   119         delete iViewPlugin;
       
   120         REComSession::FinalClose();
       
   121         }
       
   122 
       
   123     iLog->Log(_L("Deleting test class..."));
       
   124 	iLog->Log(_L(""));
       
   125 	iLog->Log(_L(""));
       
   126     }
       
   127 
       
   128 // -----------------------------------------------------------------------------
       
   129 // CCommonTestClass::RunMethodL
       
   130 // Run specified method. Contains also table of test mothods and their names.
       
   131 // -----------------------------------------------------------------------------
       
   132 //
       
   133 TInt CCommonTestClass::RunMethodL( CStifItemParser& aItem ) 
       
   134     {
       
   135     TStifFunctionInfo const KFunctions[] =
       
   136         {  
       
   137         // Copy this line for every implemented function.
       
   138         // First string is the function name used in TestScripter script file.
       
   139         // Second is the actual implementation member function. 
       
   140         ENTRY( "CreatePluginMonitorL", CCommonTestClass::CreatePluginMonitorL ),
       
   141         ENTRY( "DeletePluginMonitorL", CCommonTestClass::DeletePluginMonitorL ),
       
   142         // test cases for the header "testcenrepwatcher.h"
       
   143         ENTRY( "CreateCenRepWatcherL", CCommonTestClass::CreateCenRepWatcherL ),
       
   144         ENTRY( "DeleteCenRepWatcherL", CCommonTestClass::DeleteCenRepWatcherL ),
       
   145         ENTRY( "CenRepCurrentValueL", CCommonTestClass::CenRepCurrentValueL ),
       
   146         ENTRY( "CenRepSetValueL", CCommonTestClass::CenRepSetValueL ),
       
   147         // test cases for the header "testmpxparameter.h"
       
   148         ENTRY( "CreateMPXParameter", CCommonTestClass::CreateMPXParameter ),
       
   149         ENTRY( "DeleteMPXParameter", CCommonTestClass::DeleteMPXParameter ),
       
   150         ENTRY( "InternalizeMPXParameterL", CCommonTestClass::InternalizeMPXParameterL ),
       
   151         ENTRY( "ExternalizeMPXParameterL", CCommonTestClass::ExternalizeMPXParameterL ),
       
   152         // test cases for the header "testmpxcollectiontype.h"
       
   153         ENTRY( "CreateMPXCollectionTypeWOParam", CCommonTestClass::CreateMPXCollectionTypeWOParam ),
       
   154         ENTRY( "CreateMPXCollectionType", CCommonTestClass::CreateMPXCollectionType ),
       
   155         ENTRY( "InternalizeMPXCollectionTypeL", CCommonTestClass::InternalizeMPXCollectionTypeL ),
       
   156         ENTRY( "ExternalizeMPXCollectionTypeL", CCommonTestClass::ExternalizeMPXCollectionTypeL ),
       
   157         // test cases for the header "testmpxpskeywatcher.h"
       
   158         ENTRY( "CreateCMPXPSKeyWatcherL", CCommonTestClass::CreateCMPXPSKeyWatcherL ),
       
   159         ENTRY( "DeleteCMPXPSKeyWatcherL", CCommonTestClass::DeleteCMPXPSKeyWatcherL ),
       
   160         ENTRY( "GetTntValue", CCommonTestClass::GetTntValue ),
       
   161         ENTRY( "GetDes8Value", CCommonTestClass::GetDes8Value ),
       
   162         ENTRY( "GetDes16Value", CCommonTestClass::GetDes16Value ),
       
   163         ENTRY( "SetTntValue", CCommonTestClass::SetTntValue ),
       
   164         ENTRY( "SetDes8Value", CCommonTestClass::SetDes8Value ),
       
   165         ENTRY( "SetDes16Value", CCommonTestClass::SetDes16Value ),
       
   166         // test cases for the header "testmpxdrmmediautility.h" 
       
   167         ENTRY( "CreateCMPXDrmMediaUtilityL", CCommonTestClass::CreateCMPXDrmMediaUtilityL ),
       
   168         ENTRY( "CreateCMPXDrmMediaUtilityLC", CCommonTestClass::CreateCMPXDrmMediaUtilityLC ),
       
   169         ENTRY( "DeleteCMPXDrmMediaUtilityL", CCommonTestClass::DeleteCMPXDrmMediaUtilityL ),
       
   170         ENTRY( "InitFileNameL", CCommonTestClass::InitFileNameL ),
       
   171         ENTRY( "InitRFileL", CCommonTestClass::InitRFileL ),
       
   172         ENTRY( "Close", CCommonTestClass::Close ),
       
   173         ENTRY( "GetMediaL", CCommonTestClass::GetMediaL ),
       
   174         ENTRY( "ConsumeL", CCommonTestClass::ConsumeL ),
       
   175         // test cases for the header "testmpxmessage.h" 
       
   176         ENTRY( "TMPXMessage3L", CCommonTestClass::TMPXMessage3L ),
       
   177         ENTRY( "TMPXMessageL", CCommonTestClass::TMPXMessageL ),
       
   178         ENTRY( "TMPXMessage1L", CCommonTestClass::TMPXMessage1L ),
       
   179         ENTRY( "EqualTMPXMessage", CCommonTestClass::EqualTMPXMessage ),
       
   180         ENTRY( "Event", CCommonTestClass::Event ),
       
   181         ENTRY( "Type", CCommonTestClass::Type ),
       
   182         ENTRY( "Data", CCommonTestClass::Data ),
       
   183         // test cases for the header "testmpxmessagequeue.h" 
       
   184         ENTRY( "CreateCMPXMessageQueueL", CCommonTestClass::CreateCMPXMessageQueueL ),
       
   185         ENTRY( "ResetCMPXMessageQueue", CCommonTestClass::ResetCMPXMessageQueue ),
       
   186         ENTRY( "SendNextCMPXMessageQueue", CCommonTestClass::SendNextCMPXMessageQueue ),
       
   187         ENTRY( "AddCMPXMessageQueue", CCommonTestClass::AddCMPXMessageQueue ),
       
   188         ENTRY( "DeleteCMPXMessageQueue", CCommonTestClass::DeleteCMPXMessageQueue ),
       
   189         // test cases for the header "testmpxsession.h" 
       
   190         
       
   191         ENTRY( "CreateRMPXSession", CCommonTestClass::CreateRMPXSession ),
       
   192         ENTRY( "CloseAndDestructRMPXSession", CCommonTestClass::CloseAndDestructRMPXSession ),
       
   193         
       
   194         ENTRY( "VersionRMPXSession", CCommonTestClass::VersionRMPXSession ),
       
   195         ENTRY( "ConnectRMPXSessionL", CCommonTestClass::ConnectRMPXSessionL ),
       
   196         ENTRY( "ReconnectRMPXSessionL", CCommonTestClass::ReconnectRMPXSessionL ),
       
   197         ENTRY( "SendReceiveLRMPXSessionL", CCommonTestClass::SendReceiveLRMPXSessionL ),
       
   198         ENTRY( "SendReceiveStatusRMPXSessionL", CCommonTestClass::SendReceiveStatusRMPXSessionL ),
       
   199         ENTRY( "SendReceiveStatus3RMPXSessionL", CCommonTestClass::SendReceiveStatus3RMPXSessionL ),
       
   200         // test cases for the header "testmpxmessagemonitor.h"
       
   201         ENTRY( "CreateCMPXMessageMonitorL", CCommonTestClass::CreateCMPXMessageMonitorL ),
       
   202         ENTRY( "DeleteCMPXMessageMonitorL", CCommonTestClass::DeleteCMPXMessageMonitorL ),
       
   203         ENTRY( "RunLCMPXMessageMonitorL", CCommonTestClass::RunLCMPXMessageMonitorL ),
       
   204         // test cases for the header "testmpxactivetaskqueue.h"
       
   205         ENTRY( "CreateCMPXActiveTaskQueueL", CCommonTestClass::CreateCMPXActiveTaskQueueL ),
       
   206         ENTRY( "CancelRequestsCMPXActiveTaskQueueL", CCommonTestClass::CancelRequestsCMPXActiveTaskQueueL ),
       
   207         ENTRY( "AddTaskCMPXActiveTaskQueueL", CCommonTestClass::AddTaskCMPXActiveTaskQueueL ),
       
   208         ENTRY( "CompleteTaskCMPXActiveTaskQueueL", CCommonTestClass::CompleteTaskCMPXActiveTaskQueueL ),
       
   209         
       
   210         //added on 2009,2,11
       
   211         ENTRY( "CompleteAllTasksCMPXActiveTaskQueueL", CCommonTestClass::CompleteAllTasksCMPXActiveTaskQueueL ),
       
   212         
       
   213         ENTRY( "IsEmptyCMPXTaskQueueL", CCommonTestClass::IsEmptyCMPXTaskQueueL ),
       
   214         ENTRY( "AddTaskCMPXTaskQueueL", CCommonTestClass::AddTaskCMPXTaskQueueL ),
       
   215         ENTRY( "RemoveTaskCMPXTaskQueueL", CCommonTestClass::RemoveTaskCMPXTaskQueueL ),
       
   216         ENTRY( "RemoveTask2CMPXTaskQueueL", CCommonTestClass::RemoveTask2CMPXTaskQueueL ),
       
   217         ENTRY( "CallbackCMPXTaskQueueL", CCommonTestClass::CallbackCMPXTaskQueueL ),
       
   218         ENTRY( "ParamCMPXTaskQueueL", CCommonTestClass::ParamCMPXTaskQueueL ),
       
   219         ENTRY( "PtrDataCMPXTaskQueueL", CCommonTestClass::PtrDataCMPXTaskQueueL ),
       
   220         ENTRY( "BufDataCMPXTaskQueueL", CCommonTestClass::BufDataCMPXTaskQueueL ),
       
   221         ENTRY( "TaskCMPXTaskQueueL", CCommonTestClass::TaskCMPXTaskQueueL ),
       
   222         // test cases for the header "testmpxuser.h" 
       
   223         ENTRY( "CompareUids", CCommonTestClass::CompareUids ),
       
   224         ENTRY( "IsCallOngoing", CCommonTestClass::IsCallOngoing ),
       
   225         ENTRY( "CompleteWithDllPath", CCommonTestClass::CompleteWithDllPath ),
       
   226         ENTRY( "Alloc8L", CCommonTestClass::Alloc8L ),
       
   227         ENTRY( "AllocL", CCommonTestClass::AllocL ),
       
   228         ENTRY( "Ptr", CCommonTestClass::Ptr ),
       
   229         ENTRY( "Ptr8", CCommonTestClass::Ptr8 ),
       
   230         ENTRY( "CreateBufferLC", CCommonTestClass::CreateBufferLC ),
       
   231         ENTRY( "CreateBufferDesCL", CCommonTestClass::CreateBufferDesCL ),////two
       
   232         ENTRY( "CreateBufferDesCL", CCommonTestClass::CreateBufferDesCL ),
       
   233         ENTRY( "CreateBufferDesCArrayL", CCommonTestClass::CreateBufferDesCArrayL ),
       
   234         
       
   235         ENTRY( "CreateBufferMsgL", CCommonTestClass::CreateBufferMsgL ),//added by 2009,2,10
       
   236                
       
   237         ENTRY( "ExternalizeL", CCommonTestClass::ExternalizeL ),
       
   238         ENTRY( "ExternalizeArrayL", CCommonTestClass::ExternalizeArrayL ),
       
   239         ENTRY( "InternalizeArrayL", CCommonTestClass::InternalizeArrayL ),
       
   240         
       
   241         ENTRY( "InternalizeDesCArrayL", CCommonTestClass::InternalizeDesCArrayL ),//added by 2009,2,11
       
   242         
       
   243         ENTRY( "CopyArrayL", CCommonTestClass::CopyArrayL ),
       
   244         ENTRY( "MergeArray", CCommonTestClass::MergeArray ),
       
   245         ENTRY( "MergeAttributeL", CCommonTestClass::MergeAttributeL ),
       
   246         ENTRY( "ProcessIdL", CCommonTestClass::ProcessIdL ),
       
   247         ENTRY( "CompareOrderedUidArrays", CCommonTestClass::CompareOrderedUidArrays ),       
       
   248         ENTRY( "CreateFromBufferL", CCommonTestClass::CreateFromBufferL ),
       
   249         ENTRY( "CreateCMPXViewPlugin", CCommonTestClass::CreateCMPXViewPlugin ),
       
   250         ENTRY( "DeleteCMPXViewPlugin", CCommonTestClass::DeleteCMPXViewPlugin ),
       
   251         // test cases for the header "mpxattribute.h" 
       
   252         ENTRY( "MpxAttDefaultConst", CCommonTestClass::MpxAttDefaultConst ),
       
   253         ENTRY( "MpxAttConst", CCommonTestClass::MpxAttConst ),
       
   254         ENTRY( "MpxAttCopyConstAtt", CCommonTestClass::MpxAttCopyConstAtt ),
       
   255         ENTRY( "MpxAttCopyConstAttData", CCommonTestClass::MpxAttCopyConstAttData ),
       
   256         ENTRY( "MpxAttOperatorAssignment", CCommonTestClass::MpxAttOperatorAssignment ),
       
   257         ENTRY( "MpxAttOperatorEqual", CCommonTestClass::MpxAttOperatorEqual ),
       
   258         ENTRY( "MpxAttStreamingL", CCommonTestClass::MpxAttStreamingL ),
       
   259         ENTRY( "MpxAttContentId", CCommonTestClass::MpxAttContentId ),
       
   260         ENTRY( "MpxAttAttributeId", CCommonTestClass::MpxAttAttributeId ),
       
   261         ENTRY( "MpxAttMatch", CCommonTestClass::MpxAttMatch ),
       
   262         ENTRY( "MpxAttMatchContentId", CCommonTestClass::MpxAttMatchContentId ),
       
   263         ENTRY( "MpxAttOperatorAndAttData", CCommonTestClass::MpxAttOperatorAndAttData ),
       
   264         ENTRY( "MpxAttOperatorAndData", CCommonTestClass::MpxAttOperatorAndData ),
       
   265         ENTRY( "MpxAttOperatorOr", CCommonTestClass::MpxAttOperatorOr ),
       
   266         // test cases for the header "mpxmedia.h"  
       
   267         ENTRY( "MpxMediaNewL", CCommonTestClass::MpxMediaNewL ),
       
   268         ENTRY( "MpxMediaNewLSupportedIdsL", CCommonTestClass::MpxMediaNewLSupportedIdsL ),
       
   269         ENTRY( "MpxMediaNewLMediaL", CCommonTestClass::MpxMediaNewLMediaL ),
       
   270         ENTRY( "MpxMediaNewLDataHandleL", CCommonTestClass::MpxMediaNewLDataHandleL ),
       
   271         ENTRY( "MpxMediaNewLStreamL", CCommonTestClass::MpxMediaNewLStreamL ),
       
   272         ENTRY( "MpxMediaOperatorAssignment", CCommonTestClass::MpxMediaOperatorAssignment ),
       
   273         ENTRY( "MpxMediaSupportedIds", CCommonTestClass::MpxMediaSupportedIds ),
       
   274         ENTRY( "MpxMediaAttributes", CCommonTestClass::MpxMediaAttributes ),
       
   275         ENTRY( "MpxMediaSetTObjectValueL", CCommonTestClass::MpxMediaSetTObjectValueL ),
       
   276         ENTRY( "MpxMediaSetCObjectValueL", CCommonTestClass::MpxMediaSetCObjectValueL ),
       
   277         ENTRY( "MpxMediaSetNoNewLCObjectL", CCommonTestClass::MpxMediaSetNoNewLCObjectL ),
       
   278         ENTRY( "MpxMediaSetTextValueL", CCommonTestClass::MpxMediaSetTextValueL ),
       
   279         ENTRY( "MpxMediaIsSupported", CCommonTestClass::MpxMediaIsSupported ),
       
   280         ENTRY( "MpxMediaCount", CCommonTestClass::MpxMediaCount ),
       
   281         ENTRY( "MpxMediaAttribute", CCommonTestClass::MpxMediaAttribute ),
       
   282         ENTRY( "MpxMediaAttributesSet", CCommonTestClass::MpxMediaAttributesSet ),
       
   283         ENTRY( "MpxMediaIndex", CCommonTestClass::MpxMediaIndex ),
       
   284         ENTRY( "MpxMediaTypeIndex", CCommonTestClass::MpxMediaTypeIndex ),
       
   285         ENTRY( "MpxMediaTypeAttribute", CCommonTestClass::MpxMediaTypeAttribute ),
       
   286         ENTRY( "MpxMediaReset", CCommonTestClass::MpxMediaReset ),
       
   287         ENTRY( "MpxMediaDeleteAttribute", CCommonTestClass::MpxMediaDeleteAttribute ),
       
   288         ENTRY( "MpxMediaDeleteIndex", CCommonTestClass::MpxMediaDeleteIndex ),
       
   289         ENTRY( "MpxMediaValueText", CCommonTestClass::MpxMediaValueText ),
       
   290         ENTRY( "MpxMediaValue", CCommonTestClass::MpxMediaValue ),
       
   291         ENTRY( "MpxMediaValueTObjectL", CCommonTestClass::MpxMediaValueTObjectL ),
       
   292         ENTRY( "MpxMediaValueCObjectL", CCommonTestClass::MpxMediaValueCObjectL ),
       
   293         ENTRY( "MpxMediaValueNoNewLCObjectL", CCommonTestClass::MpxMediaValueNoNewLCObjectL ),
       
   294         ENTRY( "MpxMediaStreamingL", CCommonTestClass::MpxMediaStreamingL ),
       
   295         // test cases for the header "mpxmediaarray.h"
       
   296         ENTRY( "MpxMediaArrayNewL", CCommonTestClass::MpxMediaArrayNewL ),
       
   297         ENTRY( "MpxMediaArrayNewLMediaArrayL", CCommonTestClass::MpxMediaArrayNewLMediaArrayL ),
       
   298         ENTRY( "MpxMediaArrayCount", CCommonTestClass::MpxMediaArrayCount ),
       
   299         
       
   300         ENTRY( "MpxMediaArrayAtLByIndexL", CCommonTestClass::MpxMediaArrayAtLByIndexL ),//added by on 2009,2,11
       
   301         
       
   302         ENTRY( "MpxMediaArrayAppendLByPtrL", CCommonTestClass::MpxMediaArrayAppendLByPtrL ),
       
   303         ENTRY( "MpxMediaArrayAppendLByRefL", CCommonTestClass::MpxMediaArrayAppendLByRefL ),
       
   304         ENTRY( "MpxMediaArrayReset", CCommonTestClass::MpxMediaArrayReset ),
       
   305         ENTRY( "MpxMediaArrayRemove", CCommonTestClass::MpxMediaArrayRemove ),
       
   306         ENTRY( "MpxMediaArrayInsertByPtr", CCommonTestClass::MpxMediaArrayInsertByPtr ),
       
   307         ENTRY( "MpxMediaArrayInsertByRef", CCommonTestClass::MpxMediaArrayInsertByRef ),
       
   308         ENTRY( "MpxMediaArrayInsertLByPtrL", CCommonTestClass::MpxMediaArrayInsertLByPtrL ),
       
   309         ENTRY( "MpxMediaArrayInsertLByRefL", CCommonTestClass::MpxMediaArrayInsertLByRefL ),
       
   310         ENTRY( "MpxMediaArraySet", CCommonTestClass::MpxMediaArraySet ),
       
   311         ENTRY( "MpxMediaArrayStreamingL", CCommonTestClass::MpxMediaArrayStreamingL ),
       
   312         // test cases for the header "mpxcollectionpath.h"
       
   313         ENTRY( "MpxItemIdConst", CCommonTestClass::MpxItemIdConst ),
       
   314         ENTRY( "MpxItemIdReset", CCommonTestClass::MpxItemIdReset ),
       
   315         ENTRY( "MpxCollPathNewL", CCommonTestClass::MpxCollPathNewL ),
       
   316         ENTRY( "MpxCollPathNewLPathL", CCommonTestClass::MpxCollPathNewLPathL ),
       
   317         ENTRY( "MpxCollPathNewLStreamL", CCommonTestClass::MpxCollPathNewLStreamL ),
       
   318         ENTRY( "MpxCollPathAppendLIdL", CCommonTestClass::MpxCollPathAppendLIdL ),
       
   319         ENTRY( "MpxCollPathAppendLIdsL", CCommonTestClass::MpxCollPathAppendLIdsL ),
       
   320         ENTRY( "MpxCollPathLevels", CCommonTestClass::MpxCollPathLevels ),
       
   321         ENTRY( "MpxCollPathBack", CCommonTestClass::MpxCollPathBack ),
       
   322         ENTRY( "MpxCollPathReset", CCommonTestClass::MpxCollPathReset ),
       
   323         ENTRY( "MpxCollPathIndex", CCommonTestClass::MpxCollPathIndex ),
       
   324         ENTRY( "MpxCollPathOperatorPlus", CCommonTestClass::MpxCollPathOperatorPlus ),
       
   325         ENTRY( "MpxCollPathOperatorMinus", CCommonTestClass::MpxCollPathOperatorMinus ),
       
   326         ENTRY( "MpxCollPathSetToFirst", CCommonTestClass::MpxCollPathSetToFirst ),
       
   327         ENTRY( "MpxCollPathSetToLast", CCommonTestClass::MpxCollPathSetToLast ),
       
   328         ENTRY( "MpxCollPathSetIndex", CCommonTestClass::MpxCollPathSetIndex ),
       
   329         ENTRY( "MpxCollPathSetId", CCommonTestClass::MpxCollPathSetId ),
       
   330         ENTRY( "MpxCollPathSetMode", CCommonTestClass::MpxCollPathSetMode ),
       
   331         ENTRY( "MpxCollPathSetLAttrsL", CCommonTestClass::MpxCollPathSetLAttrsL ),
       
   332         ENTRY( "MpxCollPathOpenNextMode", CCommonTestClass::MpxCollPathOpenNextMode ),
       
   333         ENTRY( "MpxCollPathOpenPreviousMode", CCommonTestClass::MpxCollPathOpenPreviousMode ),
       
   334         ENTRY( "MpxCollPathSelectLIdL", CCommonTestClass::MpxCollPathSelectLIdL ),
       
   335         ENTRY( "MpxCollPathSelectLIndexL", CCommonTestClass::MpxCollPathSelectLIndexL ),
       
   336         ENTRY( "MpxCollPathSelectAllL", CCommonTestClass::MpxCollPathSelectAllL ),
       
   337         ENTRY( "MpxCollPathDeselectId", CCommonTestClass::MpxCollPathDeselectId ),
       
   338         ENTRY( "MpxCollPathDeselectIndex", CCommonTestClass::MpxCollPathDeselectIndex ),
       
   339         ENTRY( "MpxCollPathDeselectAll", CCommonTestClass::MpxCollPathDeselectAll ),
       
   340         ENTRY( "MpxCollPathRemoveId", CCommonTestClass::MpxCollPathRemoveId ),
       
   341         ENTRY( "MpxCollPathRemoveIndex", CCommonTestClass::MpxCollPathRemoveIndex ),
       
   342         ENTRY( "MpxCollPathIsSelectedId", CCommonTestClass::MpxCollPathIsSelectedId ),
       
   343         ENTRY( "MpxCollPathIsSelectedIndex", CCommonTestClass::MpxCollPathIsSelectedIndex ),
       
   344         ENTRY( "MpxCollPathClearSelection", CCommonTestClass::MpxCollPathClearSelection ),
       
   345         ENTRY( "MpxCollPathSelection", CCommonTestClass::MpxCollPathSelection ),
       
   346         ENTRY( "MpxCollPathSelectionL", CCommonTestClass::MpxCollPathSelectionL ),
       
   347         ENTRY( "MpxCollPathId", CCommonTestClass::MpxCollPathId ),
       
   348         ENTRY( "MpxCollPathCount", CCommonTestClass::MpxCollPathCount ),
       
   349         ENTRY( "MpxCollPathIndexOfId", CCommonTestClass::MpxCollPathIndexOfId ),
       
   350         ENTRY( "MpxCollPathIdOfIndex", CCommonTestClass::MpxCollPathIdOfIndex ),
       
   351         ENTRY( "MpxCollPathOpenAttributes", CCommonTestClass::MpxCollPathOpenAttributes ),
       
   352         ENTRY( "MpxCollPathIndexLevel", CCommonTestClass::MpxCollPathIndexLevel ),
       
   353         ENTRY( "MpxCollPathIdLevel", CCommonTestClass::MpxCollPathIdLevel ),
       
   354         ENTRY( "MpxCollPathStreamingL", CCommonTestClass::MpxCollPathStreamingL ),
       
   355         ENTRY( "MpxCollPathHandleChange", CCommonTestClass::MpxCollPathHandleChange ),
       
   356         //ENTRY( "ContainerPathL", CCommonTestClass::ContainerPathL ),
       
   357         // test cases for the header "mpxclientlist.h"
       
   358         //there are so many absent functions
       
   359         ENTRY( "MpxClientListNewL", CCommonTestClass::MpxClientListNewL ),
       
   360         ENTRY( "MpxClientListClientCount", CCommonTestClass::MpxClientListClientCount ),
       
   361         ENTRY( "MpxClientListIsClient", CCommonTestClass::MpxClientListIsClient ),
       
   362         ENTRY( "MpxClientListFindByMsg", CCommonTestClass::MpxClientListFindByMsg ),
       
   363         ENTRY( "MpxClientListFindById", CCommonTestClass::MpxClientListFindById ), //pass
       
   364         //add function to testmpxclientlist.cpp 16,9,2008
       
   365         ENTRY( "MpxClientListDestruction", CCommonTestClass::MpxClientListDestruction ),
       
   366         ENTRY( "MpxClientListAddClientL", CCommonTestClass::MpxClientListAddClientL ),                     //pass added  16,9,2008
       
   367         ENTRY( "MpxClientListAddClientLUsingMode", CCommonTestClass::MpxClientListAddClientLUsingMode ),   //pass added 16,9,2008
       
   368         ENTRY( "MpxClientListRemoveClient", CCommonTestClass::MpxClientListRemoveClient ),                 //pass added 16,9,2008
       
   369         ENTRY( "MpxClientListClientProcessList", CCommonTestClass::MpxClientListClientProcessList ),       //pass added 16,9,2008
       
   370         ENTRY( "DeleteMpxClientList", CCommonTestClass::DeleteMpxClientList ),                             //pass added 16,9,2008
       
   371         ENTRY( "MpxClientListClientMode", CCommonTestClass::MpxClientListClientMode ),                     //pass added 17.9 2008
       
   372         ENTRY( "MpxClientListSendMsg", CCommonTestClass::MpxClientListSendMsg ),                           //Pass added 22.9 2008
       
   373         ENTRY( "MpxClientListSendMsgaIndex", CCommonTestClass::MpxClientListSendMsgaIndex ),               //pass modified 7,10 2008
       
   374         ENTRY( "SendMsgLByMsgCMPXClientList", CCommonTestClass::SendMsgLByMsgCMPXClientList ),             //pass
       
   375         ENTRY( "MPXClientListConvertMsgLC", CCommonTestClass::MPXClientListConvertMsgLC ), 
       
   376         ENTRY( "SendMsgLIndexAndTMPMsgCMPXClientList", CCommonTestClass::SendMsgLIndexAndTMPMsgCMPXClientList ),//pass
       
   377         ENTRY( "MpxClientListAddSubscriptionL", CCommonTestClass::MpxClientListAddSubscriptionL ),  //added 20.10 2008
       
   378         ENTRY( "MpxClientListRemoveSubscriptionL", CCommonTestClass::MpxClientListRemoveSubscriptionL ),  //added 20.10 2008
       
   379         ENTRY( "MpxClientListRemoveAllSubscriptionsL", CCommonTestClass::MpxClientListRemoveAllSubscriptionsL ),  //added 20.10 2008
       
   380         // test cases for the header "mpxpluginhandlerbase.h"
       
   381         //There is absent.
       
   382         ENTRY( "MpxPluginHandlerBaseSelectPluginLIdL", CCommonTestClass::MpxPluginHandlerBaseSelectPluginLIdL ),
       
   383         ENTRY( "MpxPluginHandlerBaseSelectPluginLNameL", CCommonTestClass::MpxPluginHandlerBaseSelectPluginLNameL ),
       
   384         ENTRY( "MpxPluginHandlerBaseSelectPluginLUriL", CCommonTestClass::MpxPluginHandlerBaseSelectPluginLUriL ),
       
   385         ENTRY( "MpxPluginHandlerBaseSelectPluginLTypeL", CCommonTestClass::MpxPluginHandlerBaseSelectPluginLTypeL ),
       
   386         ENTRY( "MpxPluginHandlerBaseClearSelectionCriteria", CCommonTestClass::MpxPluginHandlerBaseClearSelectionCriteria ),
       
   387         ENTRY( "MpxPluginHandlerBasePluginNameType", CCommonTestClass::MpxPluginHandlerBasePluginNameType ),
       
   388         ENTRY( "MpxPluginHandlerBasePluginNamesL", CCommonTestClass::MpxPluginHandlerBasePluginNamesL ),
       
   389         ENTRY( "MpxPluginHandlerBaseSupportedMimeTypesL", CCommonTestClass::MpxPluginHandlerBaseSupportedMimeTypesL ),
       
   390         ENTRY( "MpxPluginHandlerBaseSupportedExtensionsL", CCommonTestClass::MpxPluginHandlerBaseSupportedExtensionsL ),
       
   391         ENTRY( "MpxPluginHandlerBaseSupportedSchemasL", CCommonTestClass::MpxPluginHandlerBaseSupportedSchemasL ),
       
   392         ENTRY( "MpxPluginHandlerBaseSupportedMimeTypesLUidL", CCommonTestClass::MpxPluginHandlerBaseSupportedMimeTypesLUidL ),
       
   393         ENTRY( "MpxPluginHandlerBaseSupportedExtensionsLUidL", CCommonTestClass::MpxPluginHandlerBaseSupportedExtensionsLUidL ),
       
   394         ENTRY( "MpxPluginHandlerBaseGetPluginTypes", CCommonTestClass::MpxPluginHandlerBaseGetPluginTypes ),
       
   395         ENTRY( "MpxPluginHandlerBaseGetPluginUids", CCommonTestClass::MpxPluginHandlerBaseGetPluginUids ),
       
   396         ENTRY( "MpxPluginHandlerBaseGetPluginUidsL", CCommonTestClass::MpxPluginHandlerBaseGetPluginUidsL ),
       
   397         ENTRY( "MpxPluginHandlerBasePluginUid", CCommonTestClass::MpxPluginHandlerBasePluginUid ),
       
   398         ENTRY( "MpxPluginHandlerBaseIndexOf", CCommonTestClass::MpxPluginHandlerBaseIndexOf ),
       
   399         ENTRY( "MpxPluginHandlerBaseCreatePluginListL", CCommonTestClass::MpxPluginHandlerBaseCreatePluginListL ),
       
   400         ENTRY( "MpxPluginHandlerBaseFindPlugin", CCommonTestClass::MpxPluginHandlerBaseFindPlugin ),
       
   401         //added tested functions for protected export functions of CMPXPluginHandlerBase
       
   402         ENTRY( "MpxPluginHBBasePluginsChangedL", CCommonTestClass::MpxPluginHBBasePluginsChangedL), 
       
   403         ENTRY( "MpxPluginHBBaseIsPluginLoaded", CCommonTestClass::MpxPluginHBBaseIsPluginLoaded), 
       
   404         ENTRY( "MpxPluginHBBaseLoadPluginL", CCommonTestClass::MpxPluginHBBaseLoadPluginL), 
       
   405         ENTRY( "MpxPluginHBBaseHandlePluginUnload", CCommonTestClass::MpxPluginHBBaseHandlePluginUnload), 
       
   406         
       
   407         
       
   408         //add function to testmpxuser.cpp 
       
   409         ENTRY( "RecreateBufferL", CCommonTestClass::RecreateBufferL),              //pass  12,9,2008
       
   410         ENTRY( "CompleteWithDllPathOL", CCommonTestClass::CompleteWithDllPathOL),  //pass  12,9,2008
       
   411         ENTRY( "FindWindowGroupIdL", CCommonTestClass::FindWindowGroupIdL),        //pass  12,9,2008
       
   412         ENTRY( "Alloc8ZL", CCommonTestClass::Alloc8ZL),                            //pass  12,9,2008
       
   413         //add function to testmpxmessagemonitor.cpp 16,9,2008
       
   414         ENTRY( "GetNextMessageCMPXMessageMonitorL", CCommonTestClass::GetNextMessageCMPXMessageMonitorL ), //pass
       
   415         ENTRY( "DoCancelCMPXMessageMonitorL", CCommonTestClass::DoCancelCMPXMessageMonitorL ),             //pass
       
   416         ENTRY( "RunErrorCMPXMessageMonitorL", CCommonTestClass::RunErrorCMPXMessageMonitorL ),             //pass    
       
   417         //add function to testmpxcollectionpath.cpp 17,9,2008
       
   418         ENTRY( "MpxCollectionpathContainerPathL", CCommonTestClass::MpxCollectionpathContainerPathL ),   //pass  17,9,2008
       
   419         ENTRY( "MpxCollectionpathInsertL", CCommonTestClass::MpxCollectionpathInsertL ),                 //pass  17,9,2008
       
   420         ENTRY( "MpxCollectionpathItems", CCommonTestClass::MpxCollectionpathItems ),                     //pass  17,9,2008
       
   421         ENTRY( "MpxCollectionpathUpdate", CCommonTestClass::MpxCollectionpathUpdate ),                   //pass  17,9,2008
       
   422         ENTRY( "MpxCollectionpathDelete", CCommonTestClass::MpxCollectionpathDelete ),                   //pass  18,9,2008
       
   423         ENTRY( "MpxCollectionpathCollPathSetAttrsL", CCommonTestClass::MpxCollectionpathCollPathSetAttrsL ),       //pass 18,9,2008
       
   424         //add function to testmpxcollectiontype.cpp 17,9,2008 
       
   425         ENTRY( "TUidMPXCollectionType", CCommonTestClass::TUidMPXCollectionType ),     //pass 17,9,2008                                                                          
       
   426         //add function to testmpxsession.cpp 17,9,2008 
       
   427         ENTRY( "SendReceiveLTIpcArgsRMPXSessionL", CCommonTestClass::SendReceiveLTIpcArgsRMPXSessionL ),  //pass 17,9,2008
       
   428         ENTRY( "CMPXCollectionTypeDelete", CCommonTestClass::CMPXCollectionTypeDelete ),                  //pass(debug )  9/19/2008 1:32                                                                            
       
   429         //add function to testmpxpluginhandlerbase.cpp  18,9,2008 
       
   430         ENTRY( "MpxPluginHandlerBaseSupportUids", CCommonTestClass::MpxPluginHandlerBaseSupportUids ),                   //faile modified 23,9,2008  
       
   431         ENTRY( "MpxPluginHandlerBasePluginNameByUid", CCommonTestClass::MpxPluginHandlerBasePluginNameByUid ),           //crash added 19,9,2008
       
   432         ENTRY( "MpxPluginHandlerBasePluginFlagsL", CCommonTestClass::MpxPluginHandlerBasePluginFlagsL ),                 //crash added 19,9,2008  
       
   433         ENTRY( "MpxPluginHandlerBasePluginType", CCommonTestClass::MpxPluginHandlerBasePluginType ),                     //pass(debug) 19,9,2008
       
   434 	    ENTRY( "MpxPluginHandlerBaseDestruction", CCommonTestClass::MpxPluginHandlerBaseDestruction ),                           //pass modified 23,9,2008
       
   435 	    ENTRY( "MpxPluginHandlerBaseSelectPluginLRFile", CCommonTestClass::MpxPluginHandlerBaseSelectPluginLRFile ),             //pass(debug) modified  24,9,2008
       
   436 	    ENTRY( "MpxPluginHandlerBaseGetSelectionCriteria", CCommonTestClass::MpxPluginHandlerBaseGetSelectionCriteria ),         //pass debug 26,9,2008
       
   437 	    ENTRY( "MpxPluginHandlerBaseUsePluginTUid", CCommonTestClass::MpxPluginHandlerBaseUsePluginTUid ),                       //pass debug 19,9,2008
       
   438 	    ENTRY( "MpxPluginHandlerBaseReleasePluginTUid", CCommonTestClass::MpxPluginHandlerBaseReleasePluginTUid ),               //pass debug 19,9,2008
       
   439 	    ENTRY( "MpxPluginHandlerBaseCreate", CCommonTestClass::MpxPluginHandlerBaseCreate ),                                     // //pass debug 19,9,2008
       
   440 	    //add MpxMediaCopyL to testmpxmedia.cpp  9/18/2008 10:47
       
   441         ENTRY( "MpxMediaCopyL", CCommonTestClass::MpxMediaCopyL ),                       //pass modified 23,9,2008
       
   442         ENTRY( "MpxMediaDeleteL", CCommonTestClass::MpxMediaDeleteL ),                   //pass  18,9,2008
       
   443         ENTRY( "MpxMediaHeapMemoryInfoL", CCommonTestClass::MpxMediaHeapMemoryInfoL ),   //pass  18,9,2008
       
   444         ENTRY( "MpxMediaMergeMediaL", CCommonTestClass::MpxMediaMergeMediaL ),           //pass  18,9,2008
       
   445         ENTRY( "MpxMediaMatchL", CCommonTestClass::MpxMediaMatchL ),                     //modified  24,9,2008
       
   446         ENTRY( "MpxMediaSetErrorL", CCommonTestClass::MpxMediaSetErrorL ),               //pass  6,10,2008
       
   447         ENTRY( "MpxMediaErrorL", CCommonTestClass::MpxMediaErrorL ),                     //pass  6,10,2008
       
   448         ENTRY( "MpxMediaExternalizeL", CCommonTestClass::MpxMediaExternalizeL ),         //pass  18,9,2008
       
   449         ENTRY( "MpxMediaInternalizeL", CCommonTestClass::MpxMediaInternalizeL ),         //pass  18,9,2008   
       
   450         ENTRY( "CreateCMPXTaskQueue", CCommonTestClass::CreateCMPXTaskQueue),            //Pass  22,9,2008
       
   451         ENTRY( "DeleteCMPXTaskQueue", CCommonTestClass::DeleteCMPXTaskQueue),            //Pass  22,9,2008
       
   452         ENTRY( "ScheduleNextTaskCMPXTaskQueue",CCommonTestClass::ScheduleNextTaskCMPXTaskQueue ),//Pass 22,9,2008
       
   453         ENTRY( "ResetCMPXTaskQueue", CCommonTestClass::ResetCMPXTaskQueue ),                     //Pass 22,9,2008
       
   454         ENTRY( "DeleteCMPXActiveTaskQueue",CCommonTestClass::DeleteCMPXActiveTaskQueue ),        //Pass 22,9,2008
       
   455         //test in mpxplugininfo.h  added 10/6/2008 
       
   456         ENTRY( "CMPXPluginInfoDestructor", CCommonTestClass::CMPXPluginInfoDestructor ),//Pass debug
       
   457         ENTRY( "CMPXPluginInfoImplementationUid", CCommonTestClass::CMPXPluginInfoImplementationUid ),//Pass debug
       
   458         ENTRY( "CMPXPluginInfoFlags", CCommonTestClass::CMPXPluginInfoFlags ),//Crash debug
       
   459         //added test functions to test protected export functions
       
   460         ENTRY( "CMPXPluginInfoProcessTaggedDataExL", CCommonTestClass::CMPXPluginInfoProcessTaggedDataExL ),
       
   461         ENTRY( "CMPXPluginInfoExtractIntoArrayL", CCommonTestClass::CMPXPluginInfoExtractIntoArrayL ),
       
   462         
       
   463         
       
   464         //add test functions for CMPXSubscription of mpxsubscription.h 
       
   465         ENTRY( "CMPXSubscriptionNewL", CCommonTestClass::CMPXSubscriptionNewL ),
       
   466         ENTRY( "CMPXSubscriptionNewLWithMediaArrayL", CCommonTestClass::CMPXSubscriptionNewLWithMediaArrayL ),
       
   467         ENTRY( "CMPXSubscriptionAddItemL", CCommonTestClass::CMPXSubscriptionAddItemL ),
       
   468         ENTRY( "CMPXSubscriptionItemsL", CCommonTestClass::CMPXSubscriptionItemsL ),
       
   469         ENTRY( "CMPXSubscriptionIsEqualOperator", CCommonTestClass::CMPXSubscriptionIsEqualOperator ),
       
   470         ENTRY( "MpxPluginHandlerBaseSelectPluginLRFile64", CCommonTestClass::MpxPluginHandlerBaseSelectPluginLRFile64 ),
       
   471         };
       
   472     const TInt count = sizeof( KFunctions ) / 
       
   473                         sizeof( TStifFunctionInfo );
       
   474     return RunInternalL( KFunctions, count, aItem );
       
   475     }
       
   476 //  End of File