classicui_pub/notifiers_api/tsrc/src/testsdknotifiersblocks.cpp
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 /*
       
     2 * Copyright (c) 2002 - 2007 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:  Test notifiers_api
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // [INCLUDE FILES]
       
    21 #include <e32svr.h>
       
    22 #include <stifparser.h>
       
    23 #include <stiftestinterface.h>
       
    24 
       
    25 #include "testsdknotifiers.h"
       
    26 
       
    27 // ============================ MEMBER FUNCTIONS ===============================
       
    28 
       
    29 // -----------------------------------------------------------------------------
       
    30 // Ctestsdknotifiers::Delete
       
    31 // Delete here all resources allocated and opened from test methods. 
       
    32 // Called from destructor. 
       
    33 // -----------------------------------------------------------------------------
       
    34 //
       
    35 void CTestSDKNotifiers::Delete() 
       
    36     {
       
    37 
       
    38     }
       
    39 
       
    40 // -----------------------------------------------------------------------------
       
    41 // Ctestsdknotifiers::RunMethodL
       
    42 // Run specified method. Contains also table of test mothods and their names.
       
    43 // -----------------------------------------------------------------------------
       
    44 //
       
    45 TInt CTestSDKNotifiers::RunMethodL( CStifItemParser& aItem ) 
       
    46     {
       
    47 
       
    48     static TStifFunctionInfo const KFunctions[] =
       
    49         {  
       
    50         // First string is the function name used in TestScripter script file.
       
    51         // Second is the actual implementation member function. 
       
    52         //aknglobalconfirmationquery.h
       
    53         ENTRY( "TestNotifiersCFMQueryNewLL", 
       
    54             CTestSDKNotifiers::TestNotifiersCFMQueryNewLL ),
       
    55         ENTRY( "TestNotifiersCFMQueryNewLCL", 
       
    56             CTestSDKNotifiers::TestNotifiersCFMQueryNewLCL ),
       
    57         ENTRY( "TestNotifiersCFMQueryDestructorL", 
       
    58             CTestSDKNotifiers::TestNotifiersCFMQueryDestructorL ),
       
    59         ENTRY( "TestNotifiersCFMQueryShowConfirmationQueryLL", 
       
    60             CTestSDKNotifiers::TestNotifiersCFMQueryShowConfirmationQueryLL ),
       
    61         ENTRY( "TestNotifiersCFMQueryUpdateConfirmationQueryL", 
       
    62             CTestSDKNotifiers::TestNotifiersCFMQueryUpdateConfirmationQueryL ),
       
    63         ENTRY( "TestNotifiersCFMQueryCancelConfirmationQueryL", 
       
    64             CTestSDKNotifiers::TestNotifiersCFMQueryCancelConfirmationQueryL ),
       
    65         ENTRY( "TestNotifiersCFMQuerySetImageSkinIdL", 
       
    66             CTestSDKNotifiers::TestNotifiersCFMQuerySetImageSkinIdL ),
       
    67         ENTRY( "TestNotifiersCFMQuerySetSecondaryDisplayDataL", 
       
    68             CTestSDKNotifiers::TestNotifiersCFMQuerySetSecondaryDisplayDataL ),
       
    69         
       
    70         //AknGlobalListQuery.h
       
    71         ENTRY( "TestNotifiersListQueryNewLL", 
       
    72             CTestSDKNotifiers::TestNotifiersListQueryNewLL ),
       
    73         ENTRY( "TestNotifiersListQueryNewLCL", 
       
    74             CTestSDKNotifiers::TestNotifiersListQueryNewLCL ),
       
    75         ENTRY( "TestNotifiersListQueryDestructorL", 
       
    76             CTestSDKNotifiers::TestNotifiersListQueryDestructorL ),
       
    77         ENTRY( "TestNotifiersListQueryShowListQueryLL", 
       
    78             CTestSDKNotifiers::TestNotifiersListQueryShowListQueryLL ),
       
    79         ENTRY( "TestNotifiersListQueryMoveSelectionUpL", 
       
    80             CTestSDKNotifiers::TestNotifiersListQueryMoveSelectionUpL ),
       
    81         ENTRY( "TestNotifiersListQueryMoveSelectionDownL", 
       
    82             CTestSDKNotifiers::TestNotifiersListQueryMoveSelectionDownL ),
       
    83         ENTRY( "TestNotifiersListQuerySelectItemL", 
       
    84             CTestSDKNotifiers::TestNotifiersListQuerySelectItemL ),
       
    85         ENTRY( "TestNotifiersListQueryCancelListQueryL", 
       
    86             CTestSDKNotifiers::TestNotifiersListQueryCancelListQueryL ),
       
    87         ENTRY( "TestNotifiersListQuerySetHeadingLL", 
       
    88             CTestSDKNotifiers::TestNotifiersListQuerySetHeadingLL ),
       
    89         ENTRY( "TestNotifiersListQuerySetSecondaryDisplayDataL", 
       
    90             CTestSDKNotifiers::TestNotifiersListQuerySetSecondaryDisplayDataL ),
       
    91         
       
    92         //aknglobalmsgquery.h
       
    93         ENTRY( "TestNotifiersMsgQueryNewLL", 
       
    94             CTestSDKNotifiers::TestNotifiersMsgQueryNewLL ),
       
    95         ENTRY( "TestNotifiersMsgQueryNewLCL", 
       
    96             CTestSDKNotifiers::TestNotifiersMsgQueryNewLCL ),
       
    97         ENTRY( "TestNotifiersMsgQueryDestructorL", 
       
    98             CTestSDKNotifiers::TestNotifiersMsgQueryDestructorL ),
       
    99         ENTRY( "TestNotifiersMsgQueryShowMsgQueryLL", 
       
   100             CTestSDKNotifiers::TestNotifiersMsgQueryShowMsgQueryLL ),
       
   101         ENTRY( "TestNotifiersMsgQueryUpdateMsgQueryL", 
       
   102             CTestSDKNotifiers::TestNotifiersMsgQueryUpdateMsgQueryL ),
       
   103         ENTRY( "TestNotifiersMsgQueryCancelMsgQueryL", 
       
   104             CTestSDKNotifiers::TestNotifiersMsgQueryCancelMsgQueryL ),
       
   105         ENTRY( "TestNotifiersMsgQuerySetExitDelayL", 
       
   106             CTestSDKNotifiers::TestNotifiersMsgQuerySetExitDelayL ),
       
   107         ENTRY( "TestNotifiersMsgQuerySetImageSkinIdL", 
       
   108             CTestSDKNotifiers::TestNotifiersMsgQuerySetImageSkinIdL ),
       
   109         ENTRY( "TestNotifiersMsgQuerySetSecondaryDisplayDataL", 
       
   110             CTestSDKNotifiers::TestNotifiersMsgQuerySetSecondaryDisplayDataL ),
       
   111         
       
   112         //AknGlobalNote.h
       
   113         ENTRY( "TestNotifiersNoteNewLL", 
       
   114             CTestSDKNotifiers::TestNotifiersNoteNewLL ),
       
   115         ENTRY( "TestNotifiersNoteNewLCL", 
       
   116             CTestSDKNotifiers::TestNotifiersNoteNewLCL ),
       
   117         ENTRY( "TestNotifiersNoteDestructorL", 
       
   118             CTestSDKNotifiers::TestNotifiersNoteDestructorL ),
       
   119         ENTRY( "TestNotifiersNoteSetTextProcessingL", 
       
   120             CTestSDKNotifiers::TestNotifiersNoteSetTextProcessingL ),
       
   121         ENTRY( "TestNotifiersNoteShowNoteLL", 
       
   122             CTestSDKNotifiers::TestNotifiersNoteShowNoteLL ),
       
   123         ENTRY( "TestNotifiersNoteShowNoteLStatusL", 
       
   124             CTestSDKNotifiers::TestNotifiersNoteShowNoteLStatusL ),
       
   125         ENTRY( "TestNotifiersNoteCancelNoteLL", 
       
   126             CTestSDKNotifiers::TestNotifiersNoteCancelNoteLL ),
       
   127         ENTRY( "TestNotifiersNoteSetPriorityL", 
       
   128             CTestSDKNotifiers::TestNotifiersNoteSetPriorityL ),
       
   129         ENTRY( "TestNotifiersNoteSetSoftkeysL", 
       
   130             CTestSDKNotifiers::TestNotifiersNoteSetSoftkeysL ),
       
   131         ENTRY( "TestNotifiersNoteSetGraphicL", 
       
   132             CTestSDKNotifiers::TestNotifiersNoteSetGraphicL ),
       
   133         ENTRY( "TestNotifiersNoteSetAnimationL", 
       
   134             CTestSDKNotifiers::TestNotifiersNoteSetAnimationL ),
       
   135         ENTRY( "TestNotifiersNoteSetToneL", 
       
   136             CTestSDKNotifiers::TestNotifiersNoteSetToneL ),
       
   137         ENTRY( "TestNotifiersNoteDoGlobaNoteBufferLL", 
       
   138             CTestSDKNotifiers::TestNotifiersNoteDoGlobaNoteBufferLL ),
       
   139         
       
   140         //aknglobalprogressdialog.h
       
   141         ENTRY( "TestNotifiersPGDialogNewLL", 
       
   142             CTestSDKNotifiers::TestNotifiersPGDialogNewLL ),
       
   143         ENTRY( "TestNotifiersPGDialogNewLCL", 
       
   144             CTestSDKNotifiers::TestNotifiersPGDialogNewLCL ),
       
   145         ENTRY( "TestNotifiersPGDialogDestructorL", 
       
   146             CTestSDKNotifiers::TestNotifiersPGDialogDestructorL ),
       
   147         ENTRY( "TestNotifiersPGDialogSetIconLL", 
       
   148             CTestSDKNotifiers::TestNotifiersPGDialogSetIconLL ),
       
   149         ENTRY( "TestNotifiersPGDialogSetImageLL",
       
   150             CTestSDKNotifiers::TestNotifiersPGDialogSetImageLL ),
       
   151         ENTRY( "TestNotifiersPGDialogShowProgressDialogLL", 
       
   152             CTestSDKNotifiers::TestNotifiersPGDialogShowProgressDialogLL ),
       
   153         ENTRY( "TestNotifiersPGDialogUpdateProgressDialogL", 
       
   154             CTestSDKNotifiers::TestNotifiersPGDialogUpdateProgressDialogL ),
       
   155         ENTRY( "TestNotifiersPGDialogProcessFinishedL", 
       
   156             CTestSDKNotifiers::TestNotifiersPGDialogProcessFinishedL ),
       
   157         ENTRY( "TestNotifiersPGDialogCancelProgressDialogL", 
       
   158             CTestSDKNotifiers::TestNotifiersPGDialogCancelProgressDialogL ),
       
   159         ENTRY( "TestNotifiersPGDialogSetImageSkinIdsL", 
       
   160             CTestSDKNotifiers::TestNotifiersPGDialogSetImageSkinIdsL ),
       
   161         ENTRY( "TestNotifiersPGDialogSetSecondaryDisplayDataL", 
       
   162             CTestSDKNotifiers::TestNotifiersPGDialogSetSecondaryDisplayDataL ),
       
   163         
       
   164         //AknNotify.h
       
   165         ENTRY( "TestNotifiersNotifyDestructorL", 
       
   166             CTestSDKNotifiers::TestNotifiersNotifyDestructorL ),
       
   167         ENTRY( "TestNotifiersNotifySetSecondaryDisplayDataL", 
       
   168             CTestSDKNotifiers::TestNotifiersNotifySetSecondaryDisplayDataL ),
       
   169         
       
   170         //AknPopupNotify.h
       
   171         ENTRY( "TestNotifiersPopNotifyNewLL", 
       
   172             CTestSDKNotifiers::TestNotifiersPopNotifyNewLL ),
       
   173         ENTRY( "TestNotifiersPopNotifyNewLCL", 
       
   174             CTestSDKNotifiers::TestNotifiersPopNotifyNewLCL ),
       
   175         ENTRY( "TestNotifiersPopNotifyDestructorL", 
       
   176             CTestSDKNotifiers::TestNotifiersPopNotifyDestructorL ),
       
   177         ENTRY( "TestNotifiersPopNotifyPopupMessageLL", 
       
   178             CTestSDKNotifiers::TestNotifiersPopNotifyPopupMessageLL ),
       
   179             
       
   180         //AknGloballistMsgQuery.h
       
   181         ENTRY( "TestCAknGMsgQueryNewL", 
       
   182             CTestSDKNotifiers::TestCAknGMsgQueryNewL ),
       
   183         ENTRY( "TestCAknGMsgQueryNewLC", 
       
   184             CTestSDKNotifiers::TestCAknGMsgQueryNewLC ),
       
   185         ENTRY( "TestCAknGMsgQueryShowListMsgQueryL", 
       
   186             CTestSDKNotifiers::TestCAknGMsgQueryShowListMsgQueryL ),
       
   187         ENTRY( "TestCAknGMsgQueryMoveSelectionUpL", 
       
   188             CTestSDKNotifiers::TestCAknGMsgQueryMoveSelectionUpL ),
       
   189         ENTRY( "TestCAknGMsgQueryMoveSelectionDownL", 
       
   190             CTestSDKNotifiers::TestCAknGMsgQueryMoveSelectionDownL ),
       
   191         ENTRY( "TestCAknGMsgQuerySelectItemL", 
       
   192             CTestSDKNotifiers::TestCAknGMsgQuerySelectItemL ),
       
   193         ENTRY( "TestCAknGMsgQueryCancelListMsgQueryL", 
       
   194             CTestSDKNotifiers::TestCAknGMsgQueryCancelListMsgQueryL ),
       
   195         ENTRY( "TestCAknGMsgQuerySetSecondaryDisplayDataL", 
       
   196             CTestSDKNotifiers::TestCAknGMsgQuerySetSecondaryDisplayDataL ),
       
   197         ENTRY( "TestCAknGMsgQuerySetImageSkinIdL", 
       
   198             CTestSDKNotifiers::TestCAknGMsgQuerySetImageSkinIdL ),
       
   199         
       
   200         // [test cases entries]
       
   201 
       
   202         };
       
   203 
       
   204     const TInt count = sizeof( KFunctions ) / sizeof( TStifFunctionInfo );
       
   205 
       
   206     return RunInternalL( KFunctions, count, aItem );
       
   207 
       
   208     }
       
   209 
       
   210 //  [End of File]