uiservicetab/vimpstengine/tsrc/vimpstengine_ut/inc/t_vimpstengine.h
branchRCL_3
changeset 23 9a48e301e94b
parent 0 5e5d6b214f4f
child 24 2b4be3554d30
equal deleted inserted replaced
22:3104fc151679 23:9a48e301e94b
       
     1 /*
       
     2 * Copyright (c) 2009 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: t_vimpstengine.h
       
    15 *
       
    16 */
       
    17 #ifndef _T_VimpstEngine_H_
       
    18 #define _T_VimpstEngine_H_
       
    19 
       
    20 //  EXTERNAL INCLUDES
       
    21 #include <CEUnitTestSuiteClass.h>
       
    22 
       
    23 #include "mvimpstengineservicestateeventobserver.h"
       
    24 
       
    25 //Forward declarations
       
    26 class CVIMPSTEngine;
       
    27 class CVIMPSTEngineServiceTableFetcher;
       
    28 
       
    29 class T_VimpstEngine : public CEUnitTestSuiteClass, public MVIMPSTEngineServiceStateEventObserver
       
    30     {
       
    31     public:
       
    32 
       
    33         static T_VimpstEngine* NewLC();
       
    34         ~T_VimpstEngine();
       
    35 
       
    36     private:
       
    37 
       
    38         void ConstructL();
       
    39         void SetupL();        
       
    40         void Teardown();
       
    41 
       
    42         // From observers
       
    43         void HandleServiceEventL( 
       
    44             TVIMPSTEnums::TVIMPSTRegistrationState aState, 
       
    45             TInt aServiceError);
       
    46         
       
    47         // Help methods
       
    48         TInt CreateSpEntryL( TInt aServiceId );
       
    49 
       
    50         // Test methods
       
    51         void T_NewLL();
       
    52         void T_LoginL();
       
    53         void T_LogoutL();
       
    54         void T_ServiceIdL();
       
    55         void T_ServiceNameL();
       
    56         void T_ServiceStateL();
       
    57         void T_GetBrandInfoLL();
       
    58         void T_IsSubServiceSupportedLL();
       
    59         void T_IsSubServiceEnabledL();
       
    60         void T_ContactStoreIdLL();
       
    61         void T_RegisterServiceSessionObserverLL();
       
    62         void T_UnRegisterServiceSessionObserverLL();
       
    63         void T_IntializeStorageLL();
       
    64         void T_UnIntializeStorageLL();
       
    65         //void T_SetUserNameL();
       
    66         //void T_SetPasswordL();
       
    67     //    void T_UserNameLL();
       
    68     //    void T_PasswordLL();
       
    69         void T_SubServiceL();
       
    70         void T_ExtentionFeaturesL();
       
    71         void T_AddExtentionFeaturesLL();
       
    72         void T_RemoveExtentionFeaturesL();
       
    73         void T_HandleServceConnectionEventLL();
       
    74         void T_ParseGetServiceStateL();
       
    75         void T_HandleContactFetchedLL();
       
    76       //  void T_HandleContactAddedLL();
       
    77       //  void T_HandleContactDeletedLL();
       
    78         void T_CreateExtentionFeaturesLL();
       
    79         void T_SetPassword();
       
    80         void T_EmptySetPassword();
       
    81        // void T_SetUserNameL();
       
    82      //   void T_EmptySetUserNameL();
       
    83      //   void T_WithDomainNameSetUserNameL();
       
    84         void T_BlockNotSupported();
       
    85         void T_BlockSupported();
       
    86         void T_FetchBlockedListL();
       
    87         void T_RegisterBlockedListObserver();
       
    88 		
       
    89     private:
       
    90 
       
    91         T_VimpstEngine() {};
       
    92 
       
    93     private:
       
    94         CVIMPSTEngine* iEngine;
       
    95         CVIMPSTEngineServiceTableFetcher* iServiceTableFetcher;
       
    96         
       
    97         TInt iTestServiceId;
       
    98         
       
    99     	EUNIT_DECLARE_TEST_TABLE;
       
   100     };
       
   101 
       
   102 #endif      //  _T_VimpstEngine_H_
       
   103 
       
   104 // end of file